- Joined
- May 11, 2010
- Messages
- 278
Help me out here, Hive.
The game Messages return the correct info, but the "else" part of the second trigger intantly executes, leaving the message and turning it off.
The game Messages return the correct info, but the "else" part of the second trigger intantly executes, leaving the message and turning it off.
-
Sanctuary
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Sanctuary (Kroya)
-
Actions
- Hashtable - Save 4.00 as (Key sanctuaryduration) of (Key (Target unit of ability being cast)) in AbilityTable
- Game - Display to (All players) the text: Sanctuary Cast
- Set unit = (Target unit of ability being cast)
- Unit - Pause unit
- Unit - Make unit Invulnerable
- Game - Display to (All players) the text: ((Proper name of unit) + is targeted.)
- Unit Group - Add (Target unit of ability being cast) to KroyaSanctuaryGroup
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Sanctuary Loop <gen> is on) Equal to False
-
Then - Actions
- Trigger - Turn on Sanctuary Loop <gen>
- Else - Actions
-
If - Conditions
-
Events
-
Sanctuary Loop
-
Events
- Time - Every 0.02 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in KroyaSanctuaryGroup and do (Actions)
-
Loop - Actions
- Set AbilityDuration = (Load (Key sanctuaryduration) of (Key (Picked unit)) from AbilityTable)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- AbilityDuration Greater than 0.00
-
Then - Actions
- Hashtable - Save (AbilityDuration - 0.02) as (Key sanctuaryduration) of (Key (Picked unit)) in AbilityTable
-
Else - Actions
- Game - Display to (All players) the text: (Sanctuary for + ((Proper name of (Picked unit)) + has ended.))
- Unit - Make (Picked unit) Vulnerable
- Unit - Unpause (Picked unit)
- Unit Group - Remove (Picked unit) from KroyaSanctuaryGroup
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in KroyaSanctuaryGroup) Equal to 0
-
Then - Actions
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
-
If - Conditions
-
Loop - Actions
-
Unit Group - Pick every unit in KroyaSanctuaryGroup and do (Actions)
-
Events