Change class with a dialogue trigger

Sakuralein

New Member
Reaction score
0
Okay here is what I want to happen :
Player finished quest and is allowed to change his job into mage, fighter or archer.
Dialogue pops up with 3 choices and player clicks his choice.
Old unit is removed from the game and new unit is set in its old spot on the map.

Here is what happens instead :
Player finished quest and is allowed to change his job into one of the 3 mentioned above.
Dialogue pops up with the 3 choices and player clicks his choice.
... but nothing happens...


130.jpg

Yeah right now its just 1 possible choice there, since I was trying to get it to work first before I add the other two... but for some reason it doesnt ^^'

131.jpg
 

Juggernaut

I don't know what to change it to
Reaction score
33
You need to create another trigger with the event dialog button clicked.

This is how it approximately will look like:
Trigger:
  • Dialog button Clicked
    • Events
      • Dialog - A dialog button is clicked for Dialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Button[1]
        • Then - Actions
          • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Button[2]
        • Then - Actions
          • Unit - Create 2 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Button[3]
        • Then - Actions
          • Unit - Create 3 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions

This is the first trigger. You can merge both the event and the dialog creation into 1.
Trigger:
  • Dialog creation
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Dialog - Create a dialog button for Dialog labelled You chose 1
      • Set Button[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled You chose 2
      • Set Button[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled You chose 3
      • Set Button[3] = (Last created dialog Button)
      • Dialog - Show Dialog for Player 1 (Red)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top