- Joined
- May 31, 2009
- Messages
- 109
i need someone who can tech me how to fix this duel trigger
-
Timer
-
Events
- Time - Elapsed game time is 0.00 seconds
- Conditions
-
Actions
- Countdown Timer - Create a timer window for (Last started timer) with title Duel Starts
- Countdown Timer - Start (Last started timer) as a Repeating timer that will expire in 240.00 seconds
-
Events
-
Duel On
-
Events
- Time - Every 240.00 seconds of game time
- Conditions
-
Actions
- Set Duel_Group = (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True))
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
- Set TempPoint = (Random point in Duel Area <gen>)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is A Hero) Equal to True
- ((Picked unit) is alive) Equal to True
-
Then - Actions
- Unit - Set life of (Picked unit) to 100.00%
- Unit - Set life of (Picked unit) to 100.00%
- Unit - Set life of (Picked unit) to 100.00%
- Unit - Move (Picked unit) instantly to TempPoint
- Custom script: call RemoveLocation(udg_TempPoint)
- Game - Display to (All players) the text: Duel Time!!!
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is alive) Equal to False
-
Then - Actions
- Hero - Instantly revive (Picked unit) at TempPoint, Hide revival graphics
- Custom script: call RemoveLocation(udg_TempPoint)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Loop - Actions
- Trigger - Turn on Duel Off <gen>
-
Events
-
Duel Off
-
Events
- Unit - A unit Dies
-
Conditions
- (Duel Area <gen> contains (Triggering unit)) Equal to True
-
Actions
- Unit Group - Remove (Triggering unit) from Duel_Group
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in Duel_Group) Equal to 1
-
Then - Actions
-
Unit Group - Pick every unit in Duel_Group and do (Actions)
-
Loop - Actions
- Game - Display to (All players) the text: ((Proper name of (Picked unit)) + has won the duel!)
- Custom script: call DestroyGroup(udg_Duel_Group)
- Unit - Move (Picked unit) instantly to (Center of (Playable map area))
- Trigger - Turn off (This trigger)
-
Loop - Actions
-
Unit Group - Pick every unit in Duel_Group and do (Actions)
- Else - Actions
-
If - Conditions
-
Events