HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can someone tell me what's wrong?

09-02-2008, 10:18 AM#1
Zero
So, in the Arena on my map I have a dueling section and it's not working right and it's driving me crazy... It's works only some times and it makes no sense. Can someone look over these and tell me if you can see something I'm doing wrong?

This is the setup trigger:
Trigger:
Arena Setup
Collapse Events
Time - Elapsed game time is 10.00 seconds
Conditions
Collapse Actions
Set Arena_Duel_On = False
Unit - Move Arena Misc. Items Vendor 0182 <gen> instantly to (Center of Arena Item Vendor Move 2 <gen>)
Unit - Move Arena Magic Items Vendor 0184 <gen> instantly to (Center of Arena Item Vendor Move <gen>)
Unit - Move Dueling Referee 0097 <gen> instantly to (Center of Arena Duel Referee <gen>)
Dialog - Create a dialog button for Arena_Duel_Accept labelled |c00008000Yes
Set Arena_Duel_Yes = (Last created dialog Button)
Dialog - Create a dialog button for Arena_Duel_Accept labelled |c00ea0000No
Set Arena_Duel_No = (Last created dialog Button)
Wait 5.00 seconds
Collapse For each (Integer A) from 1 to 6, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Players[(Integer A)] slot status) Equal to Is playing
(Players[(Integer A)] controller) Equal to User
Collapse Then - Actions
Dialog - Create a dialog button for Arena_Duel labelled ((|c00FF0303 + (Name of Players[(Integer A)])) + (( |c00f9f900( + |c00f9f900Lv ) + (|c00FF0303 + ((String((Hero level of Players_Current_Hero[(Integer A)]))) + ( |c00afafd8 + ((Name of Players_Current_Hero[(Integer A)]) + |c00f9f900)))))))
Set Arena_Duel_Players[(Integer A)] = (Last created dialog Button)
Dialog - Change the title of Arena_Duel_Accept to ((Duel + (|c00FF0303 + (Name of Arena_Duel_PlayerDeclaringDuel))) + ( |c00f9f900: + ((|c00afafd8 + (Name of Arena_Duel_HeroDeclaringDuel)) + (( |c00f9f900( + (|c00f9f900 + Lv )) + ((|c00ff2020 + (String((Hero level of Arena_Duel_HeroDeclaringDuel)))) + (|c0
Else - Actions
Trigger - Destroy (This trigger)

This is the trigger of the person initiating the duel:

Trigger:
Use Duel Item
Collapse Events
Unit - A unit Acquires an item
Collapse Conditions
Arena_Duel_On Equal to False
(Item-type of (Item being manipulated)) Equal to Duel
Collapse Actions
Set Arena_Duel_On = True
Set Arena_Duel_PlayerClickedButton = False
Set Arena_Duel_PlayerDeclaringDuel = (Owner of (Hero manipulating item))
Set Arena_Duel_HeroDeclaringDuel = (Hero manipulating item)
Dialog - Clear Arena_Duel
Dialog - Clear Arena_Duel_Accept
Dialog - Change the title of Arena_Duel to Duel Which Player?
Collapse For each (Integer A) from 1 to 6, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Players[(Integer A)] slot status) Equal to Is playing
(Players[(Integer A)] controller) Equal to User
Collapse Then - Actions
Dialog - Create a dialog button for Arena_Duel labelled ((|c00FF0303 + (Name of Players[(Integer A)])) + (( |c00f9f900( + |c00f9f900Lv ) + (|c00FF0303 + ((String((Hero level of Players_Current_Hero[(Integer A)]))) + ( |c00afafd8 + ((Name of Players_Current_Hero[(Integer A)]) + |c00f9f900)))))))
Set Arena_Duel_Players[(Integer A)] = (Last created dialog Button)
Dialog - Change the title of Arena_Duel_Accept to ((Duel + (|c00FF0303 + (Name of Arena_Duel_PlayerDeclaringDuel))) + ( |c00f9f900: + ((|c00afafd8 + (Name of Arena_Duel_HeroDeclaringDuel)) + (( |c00f9f900( + (|c00f9f900 + Lv )) + ((|c00ff2020 + (String((Hero level of Arena_Duel_HeroDeclaringDuel)))) + (|c0
Else - Actions
Dialog - Create a dialog button for Arena_Duel_Accept labelled |c00008000Yes
Set Arena_Duel_Yes = (Last created dialog Button)
Dialog - Create a dialog button for Arena_Duel_Accept labelled |c00ea0000No
Set Arena_Duel_No = (Last created dialog Button)
Dialog - Show Arena_Duel for (Owner of (Hero manipulating item))

This is the trigger for player that got the request:

Trigger:
Duel Players
Collapse Events
Dialog - A dialog button is clicked for Arena_Duel
Collapse Conditions
Arena_Duel_On Equal to True
Collapse Actions
Collapse For each (Integer A) from 1 to 6, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Triggering player) Not equal to Arena_Duel_PlayerDeclaringDuel
(Clicked dialog button) Equal to Arena_Duel_Players[(Integer A)]
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Quests_Cleric_Active[(Integer A)] Equal to False
Quests_Druid_Active[(Integer A)] Equal to False
Quests_Ranger_Active[(Integer A)] Equal to False
Quests_Sorcerer_Active[(Integer A)] Equal to False
Quests_Thief_Active[(Integer A)] Equal to False
Quests_Warrior_Active[(Integer A)] Equal to False
Quests_Cleric_Active[(Player number of (Triggering player))] Equal to False
Quests_Druid_Active[(Player number of (Triggering player))] Equal to False
Quests_Ranger_Active[(Player number of (Triggering player))] Equal to False
Quests_Sorcerer_Active[(Player number of (Triggering player))] Equal to False
Quests_Thief_Active[(Player number of (Triggering player))] Equal to False
Quests_Warrior_Active[(Player number of (Triggering player))] Equal to False
Collapse Then - Actions
Collapse Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Picked unit)) Equal to Players[(Integer A)]
((Picked unit) is A Hero) Equal to True
Collapse Then - Actions
Set Arena_Duel_HeroAcceptingDuel = Players_Current_Hero[(Player number of (Owner of (Picked unit)))]
Unit - Make (Picked unit) Invulnerable
Dialog - Show Arena_Duel_Accept for (Owner of (Picked unit))
Game - Display to Arena_Duel_PlayerDeclaringDuel, at offset (0.00, 0.00) for 5.00 seconds the text: |c0096ecf5Sending r...
Trigger - Run Is Player Idle <gen> (checking conditions)
Else - Actions
Collapse Else - Actions
Game - Display to (Triggering player), at offset (0.00, 0.00) for 5.00 seconds the text: |c0096ecf5Either yo...
Set Arena_Duel_On = False
Collapse Else - Actions
Game - Display to (Triggering player), at offset (0.00, 0.00) for 5.00 seconds the text: |c0096ecf5You can't...
Set Arena_Duel_On = False

Is the player Idle:

Trigger:
Is Player Idle
Events
Collapse Conditions
Arena_Duel_On Equal to True
Collapse Actions
Wait 10.00 seconds
Collapse For each (Integer A) from 1 to 6, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of Arena_Duel_HeroAcceptingDuel) Equal to Players[(Integer A)]
Arena_Duel_PlayerClickedButton Equal to False
Collapse Then - Actions
Set Arena_Duel_On = False
Set Arena_Duel_PlayersIdle[(Player number of Arena_Duel_PlayerAcceptingDuel)] = True
Game - Display to Arena_Duel_PlayerDeclaringDuel, at offset (0.00, 0.00) for 5.00 seconds the text: |c0096ecf5Player di...
Else - Actions

This is the trigger for what button accepting player clicks

Trigger:
Players Answer
Collapse Events
Dialog - A dialog button is clicked for Arena_Duel_Accept
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Arena_Duel_On Equal to True
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Arena_Duel_Yes
Collapse Then - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Arena_Duel_PlayersIdle[(Player number of (Triggering player))] Equal to False
Collapse Then - Actions
Set Arena_Duel_PlayerClickedButton = True
Set Arena_Duel_PlayerAcceptingDuel = (Triggering player)
Set Disable_Teleport_Spell[(Player number of (Triggering player))] = True
Collapse Unit Group - Pick every unit in (Units in Arena Duel Area <gen>) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Picked unit)) Not equal to Player 11 (Dark Green)
(Owner of (Picked unit)) Not equal to Neutral Passive
(Owner of (Picked unit)) Not equal to Arena_Duel_PlayerDeclaringDuel
Collapse Then - Actions
Unit - Move (Picked unit) instantly to (Center of Arena Duel Move Players Here <gen>)
Collapse Else - Actions
Set Disable_Teleport_Spell[(Player number of (Owner of (Picked unit)))] = True
Camera - Lock camera target for (Triggering player) to Shade 0120 <gen>, offset by (0.00, 0.00) using Default rotation
Camera - Lock camera target for Arena_Duel_PlayerDeclaringDuel to Shade 0120 <gen>, offset by (0.00, 0.00) using Default rotation
Item - Remove (Item carried by Arena_Duel_HeroAcceptingDuel of type Boots of Speed (Testing Only))
Item - Remove (Item carried by Arena_Duel_HeroDeclaringDuel of type Boots of Speed (Testing Only))
Unit - Move Arena_Duel_HeroDeclaringDuel instantly to (Center of Arena Duel Area Left Side <gen>), facing (Center of Arena Duel Area Right Side <gen>)
Unit - Move Arena_Duel_HeroAcceptingDuel instantly to (Center of Arena Duel Area Right Side <gen>), facing (Center of Arena Duel Area Left Side <gen>)
Unit - Set life of Arena_Duel_HeroDeclaringDuel to 100.00%
Unit - Set mana of Arena_Duel_HeroDeclaringDuel to 100.00%
Unit - Set life of Arena_Duel_HeroAcceptingDuel to 100.00%
Unit - Set mana of Arena_Duel_HeroAcceptingDuel to 100.00%
Game - Display to Arena_Duel_PlayerAcceptingDuel, at offset (0.00, 0.00) for 1.00 seconds the text: ...
Game - Display to Arena_Duel_PlayerDeclaringDuel, at offset (0.00, 0.00) for 1.00 seconds the text: ...
Wait 1.00 seconds
Game - Display to Arena_Duel_PlayerAcceptingDuel, at offset (0.00, 0.00) for 1.00 seconds the text: ...
Game - Display to Arena_Duel_PlayerDeclaringDuel, at offset (0.00, 0.00) for 1.00 seconds the text: ...
Wait 1.00 seconds
Game - Display to Arena_Duel_PlayerAcceptingDuel, at offset (0.00, 0.00) for 1.00 seconds the text: ...
Game - Display to Arena_Duel_PlayerDeclaringDuel, at offset (0.00, 0.00) for 1.00 seconds the text: ...
Player - Make Arena_Duel_PlayerAcceptingDuel treat Arena_Duel_PlayerDeclaringDuel as an Enemy
Player - Make Arena_Duel_PlayerDeclaringDuel treat Arena_Duel_PlayerAcceptingDuel as an Enemy
Unit - Make Arena_Duel_HeroAcceptingDuel Vulnerable
Unit - Make Arena_Duel_HeroDeclaringDuel Vulnerable
Unit - Remove classification of An Ancient from Arena_Duel_HeroDeclaringDuel
Unit - Remove classification of An Ancient from Arena_Duel_HeroAcceptingDuel
Unit - Order Arena_Duel_HeroAcceptingDuel to Attack Arena_Duel_HeroDeclaringDuel
Unit - Order Arena_Duel_HeroDeclaringDuel to Attack Arena_Duel_HeroAcceptingDuel
Collapse Else - Actions
Set Arena_Duel_PlayersIdle[(Player number of (Triggering player))] = False
Unit - Make Arena_Duel_HeroAcceptingDuel Vulnerable
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Arena_Duel_No
Collapse Then - Actions
Set Arena_Duel_PlayerClickedButton = True
Set Arena_Duel_On = False
Game - Display to Arena_Duel_PlayerDeclaringDuel, at offset (0.00, 0.00) for 5.00 seconds the text: |c0096ecf5This play...
Unit - Make Arena_Duel_HeroAcceptingDuel Vulnerable
Unit - Make Arena_Duel_HeroDeclaringDuel Vulnerable
Else - Actions
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Arena_Duel_Yes
Arena_Duel_PlayersIdle[(Player number of (Triggering player))] Equal to True
Collapse Then - Actions
Set Arena_Duel_PlayersIdle[(Player number of (Triggering player))] = False
Collapse Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Picked unit) is A Hero) Equal to True
(Owner of (Picked unit)) Equal to (Triggering player)
Collapse Then - Actions
Unit - Make (Picked unit) Vulnerable
Else - Actions
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Arena_Duel_No
Arena_Duel_PlayersIdle[(Player number of (Triggering player))] Equal to True
Collapse Then - Actions
Set Arena_Duel_PlayersIdle[(Player number of (Triggering player))] = False
Collapse Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Picked unit) is A Hero) Equal to True
(Owner of (Picked unit)) Equal to (Triggering player)
Collapse Then - Actions
Unit - Make (Picked unit) Vulnerable
Else - Actions
Else - Actions

And finally this is the trigger if one player wins:

Trigger:
Players Dies While Dueling
Collapse Events
Unit - A unit Dies
Collapse Conditions
Arena_Duel_On Equal to True
Collapse Actions
Set Arena_Duel_On = False
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Dying unit) Equal to Arena_Duel_HeroAcceptingDuel
Collapse Then - Actions
Unit - Move Arena_Duel_HeroDeclaringDuel instantly to (Center of Arena Duel Area Enter Return <gen>)
Collapse Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Picked unit)) Equal to Arena_Duel_PlayerAcceptingDuel
Collapse Then - Actions
Set Disable_Teleport_Spell[(Player number of (Owner of (Picked unit)))] = True
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Picked unit)) Equal to Arena_Duel_PlayerDeclaringDuel
Collapse Then - Actions
Set Disable_Teleport_Spell[(Player number of (Owner of (Picked unit)))] = True
Else - Actions
Unit - Set life of Arena_Duel_HeroDeclaringDuel to 100.00%
Unit - Set mana of Arena_Duel_HeroDeclaringDuel to 100.00%
Camera - Reset camera for Arena_Duel_PlayerDeclaringDuel to standard game-view over 0.00 seconds
Camera - Pan camera for Arena_Duel_PlayerDeclaringDuel to (Center of Arena Duel Area Enter Return <gen>) over 0.00 seconds
Unit - Add classification of An Ancient to Arena_Duel_HeroAcceptingDuel
Unit - Add classification of An Ancient to Arena_Duel_HeroDeclaringDuel
Player - Make Arena_Duel_PlayerAcceptingDuel treat Arena_Duel_PlayerDeclaringDuel as an Ally with shared vision
Player - Make Arena_Duel_PlayerDeclaringDuel treat Arena_Duel_PlayerAcceptingDuel as an Ally with shared vision
Collapse Unit Group - Pick every unit in (Units in Arena Duel Area Duel Zone <gen>) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Picked unit)) Not equal to Neutral Passive
(Owner of (Picked unit)) Not equal to Player 11 (Dark Green)
(Unit-type of (Picked unit)) Not equal to Faerie Dragon
((Picked unit) is A Hero) Equal to False
Collapse Then - Actions
Unit - Kill (Picked unit)
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Dying unit)) Equal to Player 1 (Red)
Collapse Then - Actions
Game - Display to (All players) for 5.00 seconds the text: (|c00f9f900Dueling Referee:|r + ((|c00FF0303 + (Name of Arena_Duel_PlayerDeclaringDuel)) + |c0096ecf5Has won the duel!!))
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Dying unit)) Equal to Player 2 (Blue)
Collapse Then - Actions
Game - Display to (All players) for 5.00 seconds the text: (|c00f9f900Dueling Referee:|r + ((|c000042FF + (Name of Arena_Duel_PlayerDeclaringDuel)) + |c0096ecf5Has won the duel!!))
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Dying unit)) Equal to Player 3 (Teal)
Collapse Then - Actions
Game - Display to (All players) for 5.00 seconds the text: (|c00f9f900Dueling Referee:|r + ((|c001CE6B9 + (Name of Arena_Duel_PlayerDeclaringDuel)) + |c0096ecf5Has won the duel!!))
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Dying unit)) Equal to Player 4 (Purple)
Collapse Then - Actions
Game - Display to (All players) for 5.00 seconds the text: (|c00f9f900Dueling Referee:|r + ((|c00540081 + (Name of Arena_Duel_PlayerDeclaringDuel)) + |c0096ecf5Has won the duel!!))
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Dying unit)) Equal to Player 5 (Yellow)
Collapse Then - Actions
Game - Display to (All players) for 5.00 seconds the text: (|c00f9f900Dueling Referee:|r + ((|c00FFFC01 + (Name of Arena_Duel_PlayerDeclaringDuel)) + |c0096ecf5Has won the duel!!))
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Dying unit)) Equal to Player 6 (Orange)
Collapse Then - Actions
Game - Display to (All players) for 5.00 seconds the text: (|c00f9f900Dueling Referee:|r + ((|c00fEBA0E + (Name of Arena_Duel_PlayerDeclaringDuel)) + |c0096ecf5Has won the duel!!))
Else - Actions
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Dying unit) Equal to Arena_Duel_HeroDeclaringDuel
Collapse Then - Actions
Unit - Move Arena_Duel_HeroAcceptingDuel instantly to (Center of Arena Duel Area Enter Return <gen>)
Collapse Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Picked unit)) Equal to Arena_Duel_PlayerAcceptingDuel
Collapse Then - Actions
Set Disable_Teleport_Spell[(Player number of (Owner of (Picked unit)))] = True
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Picked unit)) Equal to Arena_Duel_PlayerDeclaringDuel
Collapse Then - Actions
Set Disable_Teleport_Spell[(Player number of (Owner of (Picked unit)))] = True
Else - Actions
Unit - Set life of Arena_Duel_HeroAcceptingDuel to 100.00%
Unit - Set mana of Arena_Duel_HeroAcceptingDuel to 100.00%
Camera - Reset camera for Arena_Duel_PlayerAcceptingDuel to standard game-view over 0.00 seconds
Camera - Pan camera for Arena_Duel_PlayerAcceptingDuel to (Center of Arena Duel Area Enter Return <gen>) over 0.00 seconds
Unit - Add classification of An Ancient to Arena_Duel_HeroAcceptingDuel
Unit - Add classification of An Ancient to Arena_Duel_HeroDeclaringDuel
Player - Make Arena_Duel_PlayerAcceptingDuel treat Arena_Duel_PlayerDeclaringDuel as an Ally with shared vision
Player - Make Arena_Duel_PlayerDeclaringDuel treat Arena_Duel_PlayerAcceptingDuel as an Ally with shared vision
Collapse Unit Group - Pick every unit in (Units in Arena Duel Area Duel Zone <gen>) and do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Picked unit)) Not equal to Neutral Passive
(Owner of (Picked unit)) Not equal to Player 11 (Dark Green)
(Unit-type of (Picked unit)) Not equal to Faerie Dragon
((Picked unit) is A Hero) Equal to False
Collapse Then - Actions
Unit - Kill (Picked unit)
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Dying unit)) Equal to Player 1 (Red)
Collapse Then - Actions
Game - Display to (All players) for 5.00 seconds the text: (|c00f9f900Dueling Referee:|r + ((|c00FF0303 + (Name of Arena_Duel_PlayerAcceptingDuel)) + |c0096ecf5Has won the duel!!))
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Dying unit)) Equal to Player 2 (Blue)
Collapse Then - Actions
Game - Display to (All players) for 5.00 seconds the text: (|c00f9f900Dueling Referee:|r + ((|c000042FF + (Name of Arena_Duel_PlayerAcceptingDuel)) + |c0096ecf5Has won the duel!!))
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Dying unit)) Equal to Player 3 (Teal)
Collapse Then - Actions
Game - Display to (All players) for 5.00 seconds the text: (|c00f9f900Dueling Referee:|r + ((|c001CE6B9 + (Name of Arena_Duel_PlayerAcceptingDuel)) + |c0096ecf5Has won the duel!!))
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Dying unit)) Equal to Player 4 (Purple)
Collapse Then - Actions
Game - Display to (All players) for 5.00 seconds the text: (|c00f9f900Dueling Referee:|r + ((|c00540081 + (Name of Arena_Duel_PlayerAcceptingDuel)) + |c0096ecf5Has won the duel!!))
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Dying unit)) Equal to Player 5 (Yellow)
Collapse Then - Actions
Game - Display to (All players) for 5.00 seconds the text: (|c00f9f900Dueling Referee:|r + ((|c00FFFC01 + (Name of Arena_Duel_PlayerAcceptingDuel)) + |c0096ecf5Has won the duel!!))
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Owner of (Dying unit)) Equal to Player 6 (Orange)
Collapse Then - Actions
Game - Display to (All players) for 5.00 seconds the text: (|c00f9f900Dueling Referee:|r + ((|c00fEBA0E + (Name of Arena_Duel_PlayerAcceptingDuel)) + |c0096ecf5Has won the duel!!))
Else - Actions
Else - Actions

Ok... SO:
  • Sometimes what happens is when you click a button it pauses you and does nothing @ all when your the one declaring the duel. Which doesn't make any sense @ all.
  • Also, sometimes it will freeze both units and pause them and do nothing else. Sometimes after it get's both players into the duel, after 1 player wins the winner trigger doesn't fire and the player is stuck in the dueling pit. Also, if player gets out by other player killing him players remain enemies and don't have Ancient classification anymore.
  • Sometimes also after being frozen (you can use teleport to unfreeze yourself) and the hero's armor will be invulnerable.

Can anyone see where I went wrong cause it's driving me crazy
09-02-2008, 02:55 PM#2
rulerofiron99
How many duels can take place simultaneously?
09-02-2008, 06:41 PM#3
Zero
Only 1 at a time

-Update-
I simplified everything, haven't tested if it works yet, but hopefully!