If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: What's wrong with this script

Re: What's wrong with this script

Originally Posted by YourMaster

What's the problem you're having?

player0 summons imp, timer starts
some time passes
game turn is >200
that triggers the timer condition, quick info with debug timer comes up. that is correct. Player_good has 0 creatures so the flag1 is set to 1.
game turn is approx>201
flag1 is set to 1 so I should see the other condition fulfill bringing up quick info about flag condition ok. But it wont show up, in fact, only the second time the timer is over (when it is restarted and game turn is >400), but even then, it stops there and won't spawn the parties and won't bring quick info about debug <25.
After the timer is triggered the third time - after being restarted twice, then it starts working as expected.

Re: What's wrong with this script

The game will handle 1 line of script per game turn, and will cycle through the script from top to bottom. So you've got to make sure that everything you want to happen under a condition is finished before you remove the condition.