HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Esc Bug?

12-29-2006, 10:00 AM#1
Hemlock
I just noticed today that something is a miss with the escape trigger, or atleast something I am not aware of.

I used the esc trigger to swap from one style to another, but somehow it's not working properly.
The trigger runs good, and the boolean conditions works like it should, but somehow when I swap, it picks the other style, and when I make the trigger active again, it picks the old style again, really odd.

Here is the relevant information of the trigger.

Trigger:
change
Collapse Events
Player - Player 1 (Red) skips a cinematic sequence
Collapse Conditions
W_Active Equal to True
Collapse Actions
Set W_Active = False
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
W_Circulate_Flyoff Equal to False
Collapse Then - Actions
Set W_Circulate_Flyoff = True
Game - Display to (All players) the text: Configuring new set...
Wait 2.00 seconds
Trigger - Turn on Spirits circulate <gen>
Game - Display to (All players) the text: |cFFBBFF00Circulati...
Wait 1.00 seconds
Set W_Active = True
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
W_Circulate_Flyoff Equal to True
Collapse Then - Actions
Set W_Circulate_Flyoff = False
Game - Display to (All players) the text: Configuring new set...
Wait 2.00 seconds
Trigger - Turn on Spirits fly off <gen>
Wait 1.00 seconds
Set W_Active = False
Else - Actions
12-29-2006, 10:11 AM#2
Captain Griffen
Shouldn't at the end it be 'set W_Active = true'?

Also, you could just put the actions for true in the else of the first if/then/else.
12-29-2006, 10:20 AM#3
rulerofiron99
1. Don't use waits in if/then/else
2. The first if/then/else enables the next one, so either way both will run.
12-29-2006, 10:33 AM#4
Hemlock
Captain griffen:
Yeah that did the trick, putting the actions in the else, don't know why though :S.

Rulerofiron99:
1. It's ok to use waits in if/then/else, as long as the trigger doesn't run again in the meantime.
2. The first enables the other, and visa versa, but they will not both run at the same time, thats why there is a second boolean in there ;).
12-29-2006, 11:24 AM#5
Captain Griffen
You were switching W_Circulate_Flyoff to true, meaning when it did the second if/then/else, it had a different value.
12-29-2006, 11:30 AM#6
Hemlock
Thanks for the header Griffen ^_^