First, combat initialisation:
Code:
Combat Begins TPQ2
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacked unit)) Equal to Heigan the Unclean
Actions
Game - Display to (All players) the text: Combat initiated wi...
Trigger - Turn on Combat Ends TPQ2 lose <gen>
Set HeroDies = 0
Trigger - Turn on Plague Mist wave 1 <gen>
Countdown Timer - Start MistTimer as a Repeating timer that will expire in 30.00 seconds
Countdown Timer - Create a timer window for MistTimer with title Plague Mist Phase
Set PlagueWindow = (Last created timer window)
Trigger - Turn off (This trigger)
First plague wave:
Code:
Plague Mist wave 1
Events
Time - MistTimer expires
Conditions
Actions
Trigger - Turn off wave 3 damage <gen>
Environment - Remove PlagueMist[1]
Environment - Remove PlagueMist[2]
Wait 0.01 seconds
Environment - Create at Plague Mist 1 <gen> the weather effect Dungeon Green Fog (Heavy)
Set PlagueMist[1] = (Last created weather effect)
Wait 0.01 seconds
Environment - Create at Plague Mist 3 <gen> the weather effect Dungeon Green Fog (Heavy)
Set PlagueMist[2] = (Last created weather effect)
Wait 3.00 seconds
Trigger - Turn on wave 1 damage <gen>
Trigger - Turn on Plague Mist wave 2 <gen>
Trigger - Turn off (This trigger)
Damage caused by plague waves:
Code:
wave 1 damage
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in Plague Mist 1 <gen> owned by Player 1 (Red)) and do (Unit - Cause No unit to damage (Picked unit), dealing 1000.00 damage of attack type Chaos and damage type Poison)
Unit Group - Pick every unit in (Units in Plague Mist 3 <gen> owned by Player 1 (Red)) and do (Unit - Cause No unit to damage (Picked unit), dealing 1000.00 damage of attack type Chaos and damage type Poison)
Initialisation trigger works, timer window appears, when it expires though, nothing happens like it should.
|||After you create the weather effect, you have to call another function to turn it on.
Code:
Environment - Turn (last created weather effect) On|||I see. But the damage didn't work either and that is not linked to the weather creation, it is a trigger on its own.
I redesigned the encounter to a similar but better sequence anyway, but it would be useful to know why the entire thing just didn't work.
No comments:
Post a Comment