• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Dialogs problem..

Status
Not open for further replies.
Level 9
Joined
Jul 24, 2007
Messages
308
i have a problem with dialogs, dont know why they are not working, the 1st is displayed, but the second isnt!
  • InitModes
    • Events
      • Time - Elapsed game time is 0.05 seconds
    • Conditions
    • Actions
      • Dialog - Create a dialog button for Dialog[1] labelled Free For All (New A...
      • Set DialogButton[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog[1] labelled Capture The Flag
      • Set DialogButton[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog[1] labelled Free For All
      • Set DialogButton[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog[1] labelled Team Death Match 2 ...
      • Set DialogButton[4] = (Last created dialog Button)
      • Dialog - Change the title of Dialog[1] to Choose Game Mode
      • Dialog - Show Dialog[1] for Player 1 (Red)

and this

  • Free For All Max Score Choice
    • Events
      • Dialog - A dialog button is clicked for Dialog[1]
    • Conditions
      • (Clicked dialog button) Equal to DialogButton[1]
    • Actions
      • Dialog - Create a dialog button for Dialog[2] labelled 10 Maximum Kills
      • Set DialogButton[5] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog[2] labelled 20 Maximum Kills
      • Set DialogButton[6] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog[2] labelled 30 Maximum Kills
      • Set DialogButton[7] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog[2] labelled 50 Maximum Kills
      • Set DialogButton[8] = (Last created dialog Button)
      • Dialog - Change the title of Dialog[2] to Choose Maximum Numb...
      • Dialog - Show Dialog[2] for Player 1 (Red)
 

Lux

Lux

Level 2
Joined
Jan 9, 2008
Messages
20
I don't have my World Editor open right now, so I'm not able to test this in game. However, it seems that you are trying to display two different dialogs simultaneously to a single player. What you're looking for is this:

  • Events
    • Dialog - A dialog button is clicked for Dialog[1]
  • Conditions
    • (Clicked dialog button) Equal to DialogButton[1]
  • Actions
    • Dialog - Hide Dialog[1] for Player 1 (Red)
    • Dialog - Create a dialog button for Dialog[2] labelled 10 Maximum Kills
    • Set DialogButton[5] = (Last created dialog Button)
    • Dialog- Create a dialog button for Dialog[2] labelled 20 Maximum Kills
    • Set DialogButton[6] = (Last created dialog Button)
    • Dialog - Create a dialog button for Dialog[2] labelled 30 Maximum Kills
    • Set DialogButton[7] = (Last created dialog Button)
    • Dialog - Create a dialog button for Dialog[2] labelled 50 Maximum Kills
    • Set DialogButton[8] = (Last created dialog Button)
    • Dialog - Change the title of Dialog[2] to Choose Maximum Number of Kills
    • Dialog - Show Dialog[2] for Player 1 (Red)

In any event, add this action to the second trigger as one of the first actions performed by the map once a Dialog Button click is detected:

  • Dialog - Hide Dialog[1] for Player 1 (Red)

Lux
 
Status
Not open for further replies.
Top