Trigger 1
Yet I dunno why the Supposed to be revived heroes in my map doesnt revive.. I suppose the Map is the problem.. Not the Trigger..
But I dunno if I am right or wrong..
Anyone please help?
EDIT: I forgot to add the first trigger that activates the second trigger..
My bad XD
-
Exp System
-
Events
- Unit - A unit Dies
-
Conditions
- ((Dying unit) is A Hero) Equal to True
-
Actions
- Set Revive_Value[(Player number of (Owner of (Dying unit)))] = 0
- Unit Group - Add (Dying unit) to Reviving_Group
- Trigger - Turn on Revive System <gen>
- Set TriggeringUnits[2] = (Dying unit)
- Set TriggeringUnits[3] = (Killing unit)
- Set Integers[1] = (250 x (Integer((Real((Hero level of TriggeringUnits[2]))))))
- Set Integers[2] = (100 x (Integer((Real((Hero level of TriggeringUnits[2]))))))
- Set TriggeringPoints[2] = (Center of Revive Point Cosmos <gen>)
- Hero - Add Integers[1] experience to TriggeringUnits[3], Show level-up graphics
- Player - Add Integers[2] to (Owner of TriggeringUnits[3]) Current gold
- Game - Display to (All players) for 15.00 seconds the text: ((Name of (Owner of TriggeringUnits[3])) + ( Has |cFF0000C0Delivered his Final Blow on|r + ((Name of (Owner of TriggeringUnits[2])) + (|cFF0000C0!!|r + (For + ((String(Integers[2])) + |cFF00C0C0 GOLD!!|r))))))
- Floating Text - Create floating text that reads ((String(Integers[1])) + EXP RECEIVED!!!) above TriggeringUnits[3] with Z offset 0.00, using font size 10.00, color (85.00%, 85.00%, 0.00%), and 0.00% transparency
- Set FloatingTexts[1] = (Last created floating text)
- Floating Text - Change the fading age of FloatingTexts[1] to 2.50 seconds
- Floating Text - Change the lifespan of FloatingTexts[1] to 3.00 seconds
- Floating Text - Change FloatingTexts[1]: Disable permanence
- Floating Text - Set the velocity of FloatingTexts[1] to 64.00 towards 90.00 degrees
- Set TriggeringUnits[2] = No unit
- Set TriggeringUnits[3] = No unit
- Set Integers[1] = 0
- Set Integers[2] = 0
-
Events
-
Revive System
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in Reviving_Group and do (Actions)
-
Loop - Actions
- Game - Display to (All players) the text: Trigger Action - Pi...
- Set Revive_Value[(Player number of (Owner of (Picked unit)))] = (Revive_Value[(Player number of (Owner of (Picked unit)))] + 1)
- Game - Display to (All players) the text: Trigger Action - Ch...
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Revive_Value[(Player number of (Owner of (Picked unit)))] Equal to ReviveTimer_Wait
-
Then - Actions
- Game - Display to (All players) the text: Trigger Action - Re...
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an ally of Player 1 (Red)) Equal to True
-
Then - Actions
- Set Temp_Point = (Center of Revive Point Cosmos <gen>)
-
Else - Actions
- Set Temp_Point = (Center of Revive Point Chaos <gen>)
-
If - Conditions
- Unit - Move (Picked unit) instantly to Temp_Point
- Hero - Instantly revive (Picked unit) at Temp_Point, Show revival graphics
- Camera - Pan camera for (Owner of (Picked unit)) to Temp_Point over 0.00 seconds
- Custom script: call RemoveLocation( udg_Temp_Point )
- Set Temp_Point = (Position of (Picked unit))
- Cinematic - Ping minimap for (All allies of (Owner of (Picked unit))) at Temp_Point for 1.00 seconds, using a Simple ping of color (100.00%, 100.00%, 0.00%)
- Custom script: call RemoveLocation( udg_Temp_Point )
- Unit Group - Remove (Picked unit) from Reviving_Group
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in Reviving_Group) Equal to 0
-
Then - Actions
- Trigger - Turn off (This trigger)
- Game - Display to (All players) the text: Trigger Action - Tu...
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
Loop - Actions
- Custom script: call DestroyGroup( GetLastCreatedGroup() )
- Game - Display to (All players) the text: Trigger Action - Gr...
-
Unit Group - Pick every unit in Reviving_Group and do (Actions)
-
Events
Yet I dunno why the Supposed to be revived heroes in my map doesnt revive.. I suppose the Map is the problem.. Not the Trigger..
But I dunno if I am right or wrong..
Anyone please help?
EDIT: I forgot to add the first trigger that activates the second trigger..
My bad XD
Last edited: