- Joined
- Dec 29, 2008
- Messages
- 18
Hi
I would like to seek help in some triggers for 3v3 duel where 6 heros fight against each other in 3 different places.Where 2 heros fight in an area.
There are 4 triggers for the duel but,the triggers only randomly selects 4 heros only and places them randomly between the three areas i specified in the trigger.Here are the triggers.
There are 4 triggers for the duel but,the triggers only randomly selects 4 heros only and places them randomly between the three areas i specified in the trigger.Here are the triggers.
-
Duel Timers
-
Events:
-

Time - Elapsed game time is 0.00 seconds
-
-
Conditions:
-
Actions:
-

Countdown Timer - Start Duel_Timer as a One-shot timer that will expire in 300.00 seconds
-

Countdown Timer - Create a timer window for Duel_Timer with title Duel in
-

Countdown Timer - Show (Last created timer window)
-

Countdown Timer - Change the color of the title for (Last created timer window) for (Last created timer window) to (0.00%, 60.00%, 70.00%) with 40.00% transparency
-
-
Duel_Start
-
Events:
-

Time - Duel_Timer expires
-
-
Conditions:
-
Actions:
-

Set Player_Group[1] = (All allies of Player 1 (Red))
-

Set Player_Group[2] = (All allies of Player 7 (Green))
-

Set Duel_Unit_Group[1] = (Random 1 units from (Units owned by (Random player from Player_Group[1] matching (((Matching unit) is A Hero) Equal to True)))
-

Set Duel_Unit[1] = (Random 1 units from Duel_Unit_Group[1])
-

Set Duel_Unit_Group[2] = (Random 1 units from (Units owned by (Random player from Player_Group[1] matching (((Matching unit) is A Hero) Equal to True))) and ((Matching unit) Not equal to Duel_Unit[1]))))
-

Set Duel_Unit[2] = (Random 1 units from Duel_Unit_Group[2])
-

Set Duel_Unit_Group[3] = (Random 1 units from (Units owned by (Random player from Player_Group[1] matching (((Matching unit Not equal to Duel_Unit[2]))(((Matching unit) is A Hero) Equal to True))) and ((Matching unit) Not equal to Duel_Unit[1]))))
-

Set Duel_Unit_Group[4] = (Random 1 units from (Units owned by (Random player from Player_Group[2] matching (((Matching unit) is A Hero) Equal to True)))
-

Set Duel_Unit[3] = (Random unit from Duel_Unit_Group[4])
-

Set Duel_Unit_Group[5] = (Random 1 units from (Units owned by (Random player from Player_Group[2] matching (((Matching unit) is A Hero) Equal to True))) and ((Matching unit) Not Equal to Duel_Unit(3))))
-

Set Duel_Unit[4] = (Random unit from Duel_Unit_Group[5])
-

Set Duel_Unit_Group[6] = (Random 1 units from (Units owned by (Random player from Player_Group[2] matching (((Matching unit) is A Hero) Equal to True))) and ((Matching unit) Not Equal to Duel_Unit(3)))) and ((Matching unit) Not equal to Duel_Unit(4))))
-

Set Duel_Point_Leak[1] = (Center of Duel Region 1 <gen>)
-

Set Duel_Point_Leak[2] = (Center of Duel Region 2 <gen>)
-

Set Duel_Point_Leak[3] = (Center of Duel Region 4 <gen>)
-

Set Duel_Point_Leak[4] = (Center of Duel Region 5 <gen>)
-

Set Duel_Point_Leak[5] = (Center of Duel Region 7 <gen>)
-

Set Duel_Point_Leak[6] = (Center of Duel Region 8 <gen>)
-

Set Duel_Point_Leak[7] = (Center of After Duel 1 <gen>)
-

Set Duel_Point_Leak[8] = (Center of After Duel 2 <gen>)
-

Unit Group - Pick every unit in Duel_Unit_Group[1] and do (Actions)
-


Loop - Actions
-



Unit - Move (Picked unit) instantly to Duel_Point_Leak[1]
-



Unit Group - Add (Picked unit) to Duel_Group[1]
-
-
-

Unit Group - Pick every unit in Duel_Unit_Group[2] and do (Actions)
-


Loop - Actions
-



Move (Picked unit) instantly to Duel_Point_Leak[3]
-



Unit Group - Add (Picked unit) to Duel_Group[1]
-
-
-

Unit Group - Pick every unit in Duel_Unit_Group[3] and do (Actions)
-


Loop - Actions
-



Unit - Move (Picked unit) instantly to Duel_Point_Leak[5]
-



Unit Group - Add (Picked unit) to Duel_Group[1]
-
-
-

Unit Group - Pick every unit in Duel_Unit_Group[4] and do (Actions)
-


Loop - Actions
-



Unit - Move (Picked unit) instantly to Duel_Point_Leak[2]
-



Unit Group - Add (Picked unit) to Duel_Group[2]
-
-
-

Unit Group - Pick every unit in Duel_Unit_Group[5] and do (Actions)
-


Loop - Actions
-



Unit - Move (Picked unit) instantly to Duel_Point_Leak[4]
-



Unit Group - Add (Picked unit) to Duel_Group[2]
-
-
-

Unit Group - Pick every unit in Duel_Unit_Group[6] and do (Actions)
-


Loop - Actions
-



Unit - Move (Picked unit) instantly to Duel_Point_Leak[6]
-



Unit Group - Add (Picked unit) to Duel_Group[2]
-
-
-

Trigger - Turn on Duel End <gen>
-

Custom script: call RemoveLocation( udg_Duel_Point_Leak[1] )
-

Custom script: call RemoveLocation( udg_Duel_Point_Leak[2] )
-

Custom script: call RemoveLocation( udg_Duel_Point_Leak[3] )
-

Custom script: call RemoveLocation( udg_Duel_Point_Leak[4] )
-

Custom script: call RemoveLocation( udg_Duel_Point_Leak[5] )
-

Custom script: call RemoveLocation( udg_Duel_Point_Leak[6] )
-

Custom script: call DestroyGroup( udg_Duel_Unit_Group[1] )
-

Custom script: call DestroyGroup( udg_Duel_Unit_Group[2] )
-

Custom script: call DestroyGroup( udg_Duel_Unit_Group[3] )
-

Custom script: call DestroyGroup( udg_Duel_Unit_Group[4] )
-

Custom script: call DestroyGroup( udg_Duel_Unit_Group[5] )
-

Custom script: call DestroyGroup( udg_Duel_Unit_Group[6] )
-

Custom script: call DestroyForce(udg_Player_Group[1] )
-

Custom script: call DestroyForce(udg_Player_Group[2] )
-

Set Duel_Unit[1] = No unit
-

Set Duel_Unit[2] = No unit
-

Set Duel_Unit[3] = No unit
-

Set Duel_Unit[4] = No unit
-
-
Duel Hero
-
Events:
-

Unit - A unit Dies
-
-
Conditions
-

((Dying unit) is A Hero) Equal to True
-

Or - Any (Conditions) are True
-


Conditions:
-



(Duel Region 3 <gen> contains (Dying unit) Equal to True
-



(Duel Region 6 <gen> contains (Dying unit) Equal to True
-



(Duel Region 9 <gen> contains (Dying unit) Equal to True
-
-
-
-
Actions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-

If - Conditions
-


(Dying unit) belongs to an ally of Player 1 (Red)) Equal to True
-
-

Then - Actions
-


Unit Group - Remove (Dying unit) from Duel_Group[1]
-
-

Else - Ations
-


Unit Group - Remove (Dying unit) from Duel_Group[2]
-
-
-
Duel End (Intially Off)
-
Events:
-

Time - Every 1.00 seconds of game time
-
-
Conditions:
-
Actions:
-

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


If - Conditions
-



Number of units in Duel_Group[2] Less than or equal to 1
-
-


Then - Actions
-



Quest - Display to (All players) the Quest Completed message:Team 1 wins the duel
-



Unit Group - Pick every unit in Duel_Group[1] and do (Actions)
-




Loop - Actions
-





Unit - Move (Picked unit) instantly to Duel_Point_Leak[7])
-
-
-



Custom script: call RemoveLocation(udg_Duel_Point_Leak[7]
-



Unit Group - Remove all units from Duel_Group[1]
-



Unit Group - Remove all units from Duel_Group[2]
-



Countdown Timer - Start Duel_Timer as a One-Shot that will expire in 300.00 seconds
-



Trigger - Turn off (This trigger)
-
-


Else - Actions
-



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




If - Conditions
-




Number of units in Duel_Group[1] Less than or equal to 1
-




Then - Actions
-





Quest - Display to (All players) the Quest Completed message:Team 2 wins the duel
-





Unit Group - Pick every unit in Duel_Group[2] and do (Actions)
-






Loop - Actions
-







Unit - Move (Picked unit) instantly to Duel_Point_Leak[8])
-
-
-





Custom script: call RemoveLocation(udg_Duel_Point_Leak[8]
-





Unit Group - Remove all units from Duel_Group[1]
-





Unit Group - Remove all units from Duel_Group[2]
-





Countdown Timer - Start Duel_Timer as a One-Shot that will expire in 300.00 seconds
-
-
-



Trigger - Turn off (This trigger)
-
-
-

