HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialog issues

11-21-2004, 03:51 PM#1
BuRnInSpartan
idk what's wrong b/c i can usually get dialogs to work but this doesn't... the dialog never pops up

Elf
Events
Player - Player 1 (Red) types a chat message containing -123456789 as An exact match
Player - Player 2 (Blue) types a chat message containing -123456789 as An exact match
Player - Player 3 (Teal) types a chat message containing -123456789 as An exact match
Player - Player 4 (Purple) types a chat message containing -123456789 as An exact match
Player - Player 5 (Yellow) types a chat message containing -123456789 as An exact match
Player - Player 6 (Orange) types a chat message containing -123456789 as An exact match
Player - Player 7 (Green) types a chat message containing -123456789 as An exact match
Player - Player 8 (Pink) types a chat message containing -123456789 as An exact match
Player - Player 9 (Gray) types a chat message containing -123456789 as An exact match
Player - Player 10 (Light Blue) types a chat message containing -123456789 as An exact match
Player - Player 11 (Dark Green) types a chat message containing -123456789 as An exact match
Player - Player 12 (Brown) types a chat message containing -123456789 as An exact match
Conditions
Actions
Set ElfPlayer = (Triggering player)
Dialog - Create a dialog button for ElfPicker labelled ElfBladesman
Set ElfBladesman = (Last created dialog Button)
Trigger - Turn on Elf Turn On <gen>
Trigger - Turn off (This trigger)

Elf Turn On
Events
Map initialization
Conditions
Actions
Dialog - Show ElfPicker for ElfPlayer

Elf Picker
Events
Dialog - A dialog button is clicked for ElfPicker
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to ElfBladesman
Then - Actions
Unit - Create 1 Trigun for ElfPlayer at (Center of Hero Spawn <gen>) facing Default building facing (270.0) degrees
Dialog - Hide ElfPicker for ElfPlayer
Else - Actions
Do nothing
11-21-2004, 04:06 PM#2
oNdizZ
Quote:
Originally Posted by BuRnInSpartan
idk what's wrong b/c i can usually get dialogs to work but this doesn't... the dialog never pops up

Elf
Events
Player - Player 1 (Red) types a chat message containing -123456789 as An exact match
Player - Player 2 (Blue) types a chat message containing -123456789 as An exact match
Player - Player 3 (Teal) types a chat message containing -123456789 as An exact match
Player - Player 4 (Purple) types a chat message containing -123456789 as An exact match
Player - Player 5 (Yellow) types a chat message containing -123456789 as An exact match
Player - Player 6 (Orange) types a chat message containing -123456789 as An exact match
Player - Player 7 (Green) types a chat message containing -123456789 as An exact match
Player - Player 8 (Pink) types a chat message containing -123456789 as An exact match
Player - Player 9 (Gray) types a chat message containing -123456789 as An exact match
Player - Player 10 (Light Blue) types a chat message containing -123456789 as An exact match
Player - Player 11 (Dark Green) types a chat message containing -123456789 as An exact match
Player - Player 12 (Brown) types a chat message containing -123456789 as An exact match
Conditions
Actions
Set ElfPlayer = (Triggering player)
Dialog - Create a dialog button for ElfPicker labelled ElfBladesman
Set ElfBladesman = (Last created dialog Button)
Trigger - Turn on Elf Turn On <gen>
Trigger - Turn off (This trigger)

Elf Turn On
Events
Map initialization
Conditions
Actions
Dialog - Show ElfPicker for ElfPlayer


Elf Picker
Events
Dialog - A dialog button is clicked for ElfPicker
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to ElfBladesman
Then - Actions
Unit - Create 1 Trigun for ElfPlayer at (Center of Hero Spawn <gen>) facing Default building facing (270.0) degrees
Dialog - Hide ElfPicker for ElfPlayer
Else - Actions
Do nothing



Thats the wrong spot, you can't use that event in the marked green section, or that Turn On -trigger thing either, use run trigger instead and it will work...
11-21-2004, 07:16 PM#3
BuRnInSpartan
what's run trigger?
11-21-2004, 07:40 PM#4
Guest
Just make the function he sais another trigger and use the action -run trigger in the genereal section. Am I right?
11-21-2004, 08:21 PM#5
Miningjrk
Use trigger - run instead of trigger turn on is what they are saying....

Also I dont see a dialogue box being created there. Just the buttons....
11-21-2004, 08:45 PM#6
BuRnInSpartan
there is no create a dialog box
11-21-2004, 11:13 PM#7
Guest
make your dialog (not the buttons) a dialog variable and use the action

Dialog - Show dialog
11-21-2004, 11:16 PM#8
BuRnInSpartan
uh thanks anyways but i got it already