The way I have it set up a dialog shows up for red or yellow to pick who duels, but if yellow or red leave your screwed lol. Id rather not keep nesting ifs because it just gets messy. Anyone have some suggestions? Here are 2 of the triggers. Man i wish the editor had Switch/Case in it
Trigger:
- Brotherhood Duel Dialog Window
- Events
- Time - DuelTimer expires
- Conditions
- Actions
- Dialog - Clear DuelDialog[2]
- Dialog - Change the title of DuelDialog[2] to Pick Who Duels
- Dialog - Create a dialog button for DuelDialog[2] labelled Yellow
- Set DuelDialogButtons[5] = (Last created dialog Button)
- Dialog - Create a dialog button for DuelDialog[2] labelled Orange
- Set DuelDialogButtons[6] = (Last created dialog Button)
- Dialog - Create a dialog button for DuelDialog[2] labelled Green
- Set DuelDialogButtons[7] = (Last created dialog Button)
- Dialog - Create a dialog button for DuelDialog[2] labelled Pink
- Set DuelDialogButtons[8] = (Last created dialog Button)
- Dialog - Show DuelDialog[2] for Player 5 (Yellow)
- Events
Trigger:
- Brotherhood Duel Choices
- Events
- Dialog - A dialog button is clicked for DuelDialog[2]
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Clicked dialog button) Equal to DuelDialogButtons[5]
- (Player 5 (Yellow) slot status) Equal to Is playing
- Then - Actions
- Game - Display to (All players) the text: Yellow Has Chosen H...
- Unit - Reset ability cooldowns for Hero[5]
- Unit - Set mana of Hero[5] to 100.00%
- Unit - Set life of Hero[5] to 100.00%
- Unit - Move Hero[5] instantly to (Center of Duel Spawn 2 <gen>)
- Set Hero[5] = DuelUnit[2]
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Clicked dialog button) Equal to DuelDialogButtons[6]
- (Player 6 (Orange) slot status) Equal to Is playing
- Then - Actions
- Game - Display to (All players) the text: Yellow Has Chosen O...
- Unit - Reset ability cooldowns for Hero[6]
- Unit - Set mana of Hero[6] to 100.00%
- Unit - Set life of Hero[6] to 100.00%
- Unit - Move Hero[6] instantly to (Center of Duel Spawn 2 <gen>)
- Set Hero[6] = DuelUnit[2]
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Clicked dialog button) Equal to DuelDialogButtons[7]
- (Player 7 (Green) slot status) Equal to Is playing
- Then - Actions
- Game - Display to (All players) the text: Yellow Has Chosen G...
- Unit - Reset ability cooldowns for Hero[7]
- Unit - Set mana of Hero[7] to 100.00%
- Unit - Set life of Hero[7] to 100.00%
- Unit - Move Hero[7] instantly to (Center of Duel Spawn 2 <gen>)
- Set Hero[7] = DuelUnit[2]
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Clicked dialog button) Equal to DuelDialogButtons[8]
- (Player 8 (Pink) slot status) Equal to Is playing
- Then - Actions
- Game - Display to (All players) the text: Yellow Has Chosen P...
- Unit - Reset ability cooldowns for Hero[8]
- Unit - Set mana of Hero[8] to 100.00%
- Unit - Set life of Hero[8] to 100.00%
- Unit - Move Hero[8] instantly to (Center of Duel Spawn 2 <gen>)
- Set Hero[8] = DuelUnit[2]
- Else - Actions
- Game - Display to Player Group - Player 5 (Yellow) the text: Please Choose A Pla...
- Dialog - Clear DuelDialog[2]
- Dialog - Change the title of DuelDialog[2] to Pick Who Duels
- Dialog - Create a dialog button for DuelDialog[2] labelled Yellow
- Set DuelDialogButtons[5] = (Last created dialog Button)
- Dialog - Create a dialog button for DuelDialog[2] labelled Orange
- Set DuelDialogButtons[6] = (Last created dialog Button)
- Dialog - Create a dialog button for DuelDialog[2] labelled Green
- Set DuelDialogButtons[7] = (Last created dialog Button)
- Dialog - Create a dialog button for DuelDialog[2] labelled Pink
- Set DuelDialogButtons[8] = (Last created dialog Button)
- Dialog - Show DuelDialog[2] for Player 5 (Yellow)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events