Dialog Box

Status
Not open for further replies.
D

Daved0208

Guest
Ok...so i made two dialog boxes...one for builders and one for killers..both of them show up for the right people and all, but when i click on any of the killer buttons the units dont show up or spawn....here is the trigggers im using

Show dialog

Events
Time - Elapsed game time is 15.00 seconds
Actions
-------- Setup for Dialog 2 --------
Dialog - Clear KillerDialog1
Dialog - Change the title of KillerDialog1 to Choose a Killer
Dialog - Create a dialog button for KillerDialog1 labelled Corrupted Polar Bear
Set DialogButtons[1] = (Last created dialog Button)
Dialog - Create a dialog button for KillerDialog1 labelled Ice Revenant
Set DialogButtons[2] = (Last created dialog Button)
Dialog - Create a dialog button for KillerDialog1 labelled Wraith
Set DialogButtons[3] = (Last created dialog Button)
Dialog - Create a dialog button for KillerDialog1 labelled Nerubian Queen
-------- Showing the dialog to killers only --------
Player Group - Pick every player in (All allies of Player 12 (Brown)) and do (Dialog - Show KillerDialog1 for Player 12 (Brown))
Player Group - Pick every player in (All allies of Player 12 (Brown)) and do (Dialog - Show KillerDialog1 for Player 11 (Dark Green))

Do dialog

Events
Dialog - A dialog button is clicked for KillerDialog1

Actions
-------- Switch to page 1 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to DialogButtons2[4]
Then - Actions
Dialog - Change the title of KillerDialog1 to Choose a Killer
Dialog - Show KillerDialog1 for Player 12 (Brown)
Skip remaining actions
Else - Actions
-------- Create the chosen Killer --------
For each (Integer A) from 1 to 4, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to DialogButtons2[(Integer A)]
Then - Actions
Unit - Create 1 Corrupted Polar Bear for (Triggering player) at ((Triggering player) start location) facing Default building facing (270.0) degrees
Game - Display to (All allies of Player 12 (Brown)) the text: (Name of (Last created unit))
Else - Actions




PLEASE HELP! I have no idea what im doing wrong..except that i only want one eprson to come out, but all four do...help...if needed..i can send you the map and just have you do it for me?
 

Akatsuki

New Member
Reaction score
24
Can you copy the trigger from the worldedit? Go to the trigger editor and right click the title of the trigger above event and then press copy as text. Then go on the forums. Paste by putting code tags around them. I say this because on your first trigger you didn't set DialogButton[4] equal the last created dialog. So rather you copied it yourself and missed that line. Or you just didn't put it in. But if you did forget to put it in then you might have forgotten to add other lines as well.

Never mind. I see that you made another topic of nearly the same thing which I didn't see before I posted.
 
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top