- Joined
- Nov 30, 2013
- Messages
- 926
Hello.
While I testing my map using my dialog. When I choose a 1st dialog button (Gold Mode).
It's work fine. But on my 2nd dialog button (Life Mode). The game got error and automatically exited
Here's the trigger I created.
While I testing my map using my dialog. When I choose a 1st dialog button (Gold Mode).
It's work fine. But on my 2nd dialog button (Life Mode). The game got error and automatically exited
Here's the trigger I created.
-
Dialog
-
Events
- Time - Elapsed game time is 5.00 seconds
- Conditions
-
Actions
- Dialog - Clear GameModeDialog
- Dialog - Change the title of GameModeDialog to |cffffff00Choose a ...
- Dialog - Create a dialog button for GameModeDialog labelled |cffffcc33Gold|r + ...
- Set GameModeDialogButton[1] = (Last created dialog Button)
- Dialog - Create a dialog button for GameModeDialog labelled |cffffcc33Gold|r Mo...
- Set GameModeDialogButton[2] = (Last created dialog Button)
- Dialog - Create a dialog button for GameModeDialog labelled |cff00ff00Life|r Mo...
- Set GameModeDialogButton[3] = (Last created dialog Button)
- Dialog - Show GameModeDialog for Player 2 (Blue)
-
Events
-
Gold Mode
-
Events
- Dialog - A dialog button is clicked for GameModeDialog
-
Conditions
- (Clicked dialog button) Equal to GameModeDialogButton[2]
-
Actions
- Game - Display to (All players) the text: ((Name of Player 2 (Blue)) + has chosen |cffffcc33Gold|r Mode)
- Trigger - Run Gold Mode Trigger <gen> (ignoring conditions)
-
Events
-
Life Mode
-
Events
- Dialog - A dialog button is clicked for GameModeDialog
-
Conditions
- (Clicked dialog button) Equal to GameModeDialogButton[3]
-
Actions
- Trigger - Run Life Mode <gen> (ignoring conditions)
- Game - Display to (All players) the text: ((Name of Player 2 (Blue)) + has chosen |cff00ff00Life|r Mode)
-
Events
-
Gold Mode Trigger
- Events
- Conditions
-
Actions
- Set GoldModeString = |cff00ff00Chosen|r
- Set GoldModeBoolean = True
-
Life Mode Trigger
- Events
- Conditions
-
Actions
- Set LifeModeString = |cff00ff00Chosen|r
- Set LifeModeBoolean = True