• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] GUI Duel Help

Status
Not open for further replies.
Level 4
Joined
May 31, 2009
Messages
109
can someone help me make a duel because this trigger doesnt work


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

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 - 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
Trigger - Turn on Duel Off <gen>

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)
Else - Actions

pls help me
 
Status
Not open for further replies.
Top