- Joined
- Jul 10, 2011
- Messages
- 562
hey guys...
i found a problem in one of my triggers. it should revive every dead hero after an arena fight but it sometime dont revive one hero (and its not the same...so its not just player 1's hero it could also be player 7's or player 9's) Oo
this is the trigger part reviving the heroes (Temp_Group is (Units in (Entire Map))) :
thanks in advance
greetz claptomanic
i found a problem in one of my triggers. it should revive every dead hero after an arena fight but it sometime dont revive one hero (and its not the same...so its not just player 1's hero it could also be player 7's or player 9's) Oo
this is the trigger part reviving the heroes (Temp_Group is (Units in (Entire Map))) :
-
port back and unpause
-
Events
-
Conditions
-
Actions
-
Do Multiple ActionsFor each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in Temp_Group and do (Actions)
-
Loop - Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
-
(Picked unit) Equal to (==) Arena_Heroes[(Integer A)]
-
-
'THEN'-Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
'IF'-Conditions
-
(Arena_Heroes[(Integer A)] is dead) Equal to (==) True
-
-
'THEN'-Actions
-
Set Temp_Point = (Center of item fuse over rank 2 til rank 4 <gen>)
-
Hero - Instantly revive Arena_Heroes[(Integer A)] at Temp_Point, Hide revival graphics
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
-
'ELSE'-Actions
-
-
Unit - Move (Picked unit) instantly to player_positions[(Player number of (Owner of (Picked unit)))]
-
Set Arena_Heroes[(Integer A)] = No Unit
-
-
'ELSE'-Actions
-
-
-
-
-
-
Set heaven_done = False
-
Set hell_done = False
-
Custom script: call DestroyGroup (udg_Temp_Group)
-
Countdown-Timer - Start arena_timer as a One-Shot timer that will expire in 600.00 seconds
-
Countdown-Timer - Create a timer window for (Last started timer) with title Arena starts in...
-
Set timer_window = (Last created timer window)|
-
-
thanks in advance
greetz claptomanic