- Joined
- Aug 14, 2006
- Messages
- 7,610
Hey.
I have a simple problem I don't know how to fix. This problem works in the test map but not in the campaign itself.
The problem is that "Heaven's Bless" ability doesn't resurrect a unit. Other things works but not this. I simply don't find anything wrong with my triggers...
Here are the triggers in the campaign:
Here are the triggers in the test map:
Rep and credits for the helpers.
I have a simple problem I don't know how to fix. This problem works in the test map but not in the campaign itself.
The problem is that "Heaven's Bless" ability doesn't resurrect a unit. Other things works but not this. I simply don't find anything wrong with my triggers...
Here are the triggers in the campaign:
-
Heavens Bless I Heal Ability
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Heaven's Bless (Heal Spell)
-
-

Actions
-


Trigger - Turn off (This trigger)
-


Set Heavens_Bless_Unit = (Target unit of ability being cast)
-


Set TempLoc = (Position of (Casting unit))
-


Set TempLoc2 = (Position of (Target unit of ability being cast))
-


Unit - Create 1 Ability Dummy Unit for Player 1 (Red) at TempLoc facing TempLoc2
-


Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-


Unit - Order (Last created unit) to Orc Shaman - Lightning Shield Heavens_Bless_Unit
-


Special Effect - Create a special effect attached to the origin of Heavens_Bless_Unit using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl
-


Special Effect - Destroy (Last created special effect)
-


Special Effect - Create a special effect attached to the origin of Heavens_Bless_Unit using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
-


Special Effect - Destroy (Last created special effect)
-


Custom script: call RemoveLocation(udg_TempLoc)
-


Custom script: call RemoveLocation(udg_TempLoc2)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Target unit of ability being cast) Equal to AAAPhodom
-
-



Then - Actions
-




Countdown Timer - Start GameOver_HEAVENS[1] as a One-shot timer that will expire in 10.00 seconds
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Target unit of ability being cast) Equal to AAAFradz
-
-





Then - Actions
-






Countdown Timer - Start GameOver_HEAVENS[2] as a One-shot timer that will expire in 10.00 seconds
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Target unit of ability being cast) Equal to AAAGaleoth
-
-







Then - Actions
-








Countdown Timer - Start GameOver_HEAVENS[3] as a One-shot timer that will expire in 10.00 seconds
-
-







Else - Actions
-
-
-
-
-
-


For each (Integer HeavensBless_Integer) from 1 to 10, do (Actions)
-



Loop - Actions
-




Unit - Set life of Heavens_Bless_Unit to ((Life of Heavens_Bless_Unit) + (Real(YMultiboard__WARMLIGHT)))
-




Wait 1.00 seconds
-
-
-


Trigger - Turn on (This trigger)
-
-
-
Respawn System
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


Or - Any (Conditions) are true
-



Conditions
-




(Dying unit) Equal to AAAPhodom
-




(Dying unit) Equal to AAAFradz
-




(Dying unit) Equal to AAAGaleoth
-
-
-
-

Actions
-


-------- === CHECK CHARACTER === --------
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Dying unit) Equal to AAAPhodom
-
-



Then - Actions
-




Set AAA_nro = 1
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Dying unit) Equal to AAAFradz
-
-





Then - Actions
-






Set AAA_nro = 2
-
-





Else - Actions
-






Set AAA_nro = 3
-
-
-
-
-


-------- === ADD TIMER === --------
-


Set GameOver_POINT[AAA_nro] = (Position of (Dying unit))
-


Countdown Timer - Start GameOver_TIMER[AAA_nro] as a One-shot timer that will expire in 3.00 seconds
-


-------- === HEAVEN'S BLESS === --------
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Remaining time for GameOver_HEAVENS[AAA_nro]) Greater than 0.00
-
-



Then - Actions
-




Set GameOver_BHEAVENS[AAA_nro] = True
-




Skip remaining actions
-
-



Else - Actions
-
-


-------- === GAME OVER === --------
-


Set GameOver_CHECK = True
-


Unit - Pause all units
-


Animation - Change AAAPhodom's animation speed to 20.00% of its original speed
-


Camera - Lock camera target for Player 1 (Red) to AAAPhodom, offset by (0.00, 0.00) using Default rotation
-


Camera - Set Player 1 (Red)'s camera Distance to target to ((Distance to target of the current camera view) - 500.00) over 5.00 seconds
-


Cinematic - Fade out over 5.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
-


Sound - Set music volume to 90.00%
-


Wait 0.50 seconds
-


Sound - Set music volume to 80.00%
-


Wait 0.50 seconds
-


Sound - Set music volume to 70.00%
-


Wait 0.50 seconds
-


Sound - Set music volume to 60.00%
-


Wait 0.50 seconds
-


Sound - Set music volume to 50.00%
-


Wait 0.50 seconds
-


Sound - Set music volume to 40.00%
-


Wait 0.50 seconds
-


Sound - Set music volume to 30.00%
-


Wait 0.50 seconds
-


Sound - Set music volume to 20.00%
-


Wait 0.50 seconds
-


Sound - Set music volume to 10.00%
-


Wait 0.50 seconds
-


Sound - Stop music Immediately
-


Sound - Clear the music list
-


Wait 4.00 seconds
-


Cinematic - Apply a filter over 2.00 seconds using No blending on texture war3campImported\Game Over512x512.blp, starting with color (0.00%, 0.00%, 0.00%) and 0.00% transparency and ending with color (100.00%, 100.00%, 100.00%) and 100.00% transparency
-


Wait 2.00 seconds
-


Cinematic - Apply a filter over 9999.00 seconds using No blending on texture war3campImported\Game Over512x512.blp, starting with color (100.00%, 100.00%, 100.00%) and 100.00% transparency and ending with color (100.00%, 100.00%, 100.00%) and 100.00% transparency
-


Wait 5.00 seconds
-


Game - Defeat Player 1 (Red) with the message: <Empty String>
-
-
-
Respawner P
-

Events
-


Time - GameOver_TIMER[1] expires
-
-

Conditions
-


GameOver_CHECK Equal to False
-
-

Actions
-


Set TempInteger = 1
-


Set TempUnit = AAAPhodom
-


Hero - Instantly revive TempUnit at GameOver_POINT[TempInteger], Show revival graphics
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




GameOver_BHEAVENS[TempInteger] Equal to True
-
-



Then - Actions
-




Set GameOver_BHEAVENS[TempInteger] = False
-




Set TempReal = (50.00 + ((Real((Level of Heaven's Bless (Heal Spell) for AAAPhodom))) x 2.50))
-




Set TempReal2 = ((Real((Level of Heaven's Bless (Heal Spell) for AAAPhodom))) x 5.00)
-




Unit - Set life of TempUnit to TempReal%
-




Unit - Set mana of TempUnit to TempReal2%
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






GameOver_BRESURRECTION[TempInteger] Equal to True
-
-





Then - Actions
-






Set GameOver_BRESURRECTION[TempInteger] = False
-






Set TempReal = ((Real((Level of Combat King - Resurrection for TempUnit))) x 20.00)
-






Unit - Set mana of TempUnit to TempReal%
-
-





Else - Actions
-
-
-
-
-
-
LOL BUFF
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Inner Fire
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Target unit of ability being cast) Equal to AAAPhodom
-
-



Then - Actions
-




Countdown Timer - Start GameOver_BUFFCD[1] as a One-shot timer that will expire in 10.00 seconds
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Target unit of ability being cast) Equal to AAAFradz
-
-





Then - Actions
-






Countdown Timer - Start GameOver_BUFFCD[2] as a One-shot timer that will expire in 10.00 seconds
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Target unit of ability being cast) Equal to AAAGaleoth
-
-







Then - Actions
-








Countdown Timer - Start GameOver_BUFFCD[3] as a One-shot timer that will expire in 10.00 seconds
-
-







Else - Actions
-
-
-
-
-
-
-
-
Respawn System
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


Or - Any (Conditions) are true
-



Conditions
-




(Dying unit) Equal to AAAPhodom
-




(Dying unit) Equal to AAAFradz
-




(Dying unit) Equal to AAAGaleoth
-
-
-
-

Actions
-


-------- === CHECK CHARACTER === --------
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Dying unit) Equal to AAAPhodom
-
-



Then - Actions
-




Set AAA_nro = 1
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Dying unit) Equal to AAAFradz
-
-





Then - Actions
-






Set AAA_nro = 2
-
-





Else - Actions
-






Set AAA_nro = 3
-
-
-
-
-


-------- === ADD TIMER === --------
-


Set GameOver_POINT[AAA_nro] = (Position of (Dying unit))
-


Countdown Timer - Start GameOver_TIMER[AAA_nro] as a One-shot timer that will expire in 3.00 seconds
-


-------- ==== CHECK DIFFICULTY === --------
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Remaining time for GameOver_BUFFCD[AAA_nro]) Greater than 0.00
-
-



Then - Actions
-




Set GameOver_HEAVEN[AAA_nro] = True
-




Skip remaining actions
-
-



Else - Actions
-
-


-------- === GAME OVER === --------
-


Set GameOver_CHECK = True
-


Unit - Pause all units
-


Animation - Change AAAPhodom's animation speed to 20.00% of its original speed
-


Camera - Lock camera target for Player 1 (Red) to AAAPhodom, offset by (0.00, 0.00) using Default rotation
-


Camera - Set Player 1 (Red)'s camera Distance to target to ((Distance to target of the current camera view) - 500.00) over 5.00 seconds
-


Cinematic - Fade out over 5.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
-


Wait 4.00 seconds
-


Cinematic - Apply a filter over 2.00 seconds using No blending on texture war3campImported\Game Over512x512.blp, starting with color (0.00%, 0.00%, 0.00%) and 0.00% transparency and ending with color (100.00%, 100.00%, 100.00%) and 100.00% transparency
-


Wait 2.00 seconds
-


Cinematic - Apply a filter over 9999.00 seconds using No blending on texture war3campImported\Game Over512x512.blp, starting with color (100.00%, 100.00%, 100.00%) and 100.00% transparency and ending with color (100.00%, 100.00%, 100.00%) and 100.00% transparency
-


Wait 5.00 seconds
-


Game - Defeat Player 1 (Red) with the message: <Empty String>
-
-
-
Respawner P
-

Events
-


Time - GameOver_TIMER[1] expires
-
-

Conditions
-


GameOver_CHECK Equal to False
-
-

Actions
-


Set TempInteger = 1
-


Hero - Instantly revive AAAPhodom at GameOver_POINT[TempInteger], Show revival graphics
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




GameOver_HEAVEN[TempInteger] Equal to True
-
-



Then - Actions
-




Set GameOver_HEAVEN[TempInteger] = False
-




Unit - Set life of AAAPhodom to 50.00%
-




Unit - Set mana of AAAPhodom to 50.00%
-
-



Else - Actions
-
-
-






