Changing a side mid-scenario

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
Stupidbro
Posts: 14
Joined: March 5th, 2019, 12:08 am

Changing a side mid-scenario

Post by Stupidbro » March 15th, 2019, 1:17 am

So, I've been working on a campaign and I ran into an interesting issue; to make a scenario more difficult, I wanted to give the enemy side more gold and improve it's recruit list, BUT it has to happen at a specific turn event. Ideas?

User avatar
octalot
Code Contributor
Posts: 240
Joined: July 17th, 2010, 7:40 pm

Re: Changing a side mid-scenario

Post by octalot » March 15th, 2019, 2:06 am

Like this:

Code: Select all

  [event]
    name=turn 10
    [allow_recruit]
      side=2
      type="Drake Arbiter,Drake Flare"
    [/allow_recruit]
  [/event]

  [event]
    name=turn 30
    [gold]
      side=2
      amount=200
    [/gold]
    [allow_recruit]
      side=2
      type="Drake Flameheart"
    [/allow_recruit]
    [disallow_recruit]
      side=2
      type="Drake Burner"
    [/disallow_recruit]
  [/event]

Stupidbro
Posts: 14
Joined: March 5th, 2019, 12:08 am

Re: Changing a side mid-scenario

Post by Stupidbro » March 15th, 2019, 12:01 pm

@octalot
Thanks! It looks like it's working!

Post Reply