• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Dialog Questions

Status
Not open for further replies.
Level 13
Joined
Oct 27, 2008
Messages
1,176
Whats wrong with these?
  • First Question
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of Hero[1] to Are you
      • Dialog - Create a dialog button for Hero[1] labelled Male
      • Set Gender[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Hero[1] labelled Female
      • Set Gender[2] = (Last created dialog Button)
      • Dialog - Show Hero[1] for Player 1 (Red)
      • Dialog - Show Hero[1] for Player 2 (Blue)
      • Dialog - Show Hero[1] for Player 3 (Teal)
      • Dialog - Show Hero[1] for Player 4 (Purple)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Gender[1]
        • Then - Actions
          • Set Question1[(Player number of (Triggering player))] = 1
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Gender[2]
            • Then - Actions
              • Set Question1[(Player number of (Triggering player))] = 2
            • Else - Actions
  • Second Question
    • Events
      • Dialog - A dialog button is clicked for Hero[1]
    • Conditions
    • Actions
      • Dialog - Change the title of Hero[2] to Do you like?
      • Dialog - Create a dialog button for Hero[2] labelled Strenght
      • Set Hero_Str = (Last created dialog Button)
      • Dialog - Create a dialog button for Hero[2] labelled Speed
      • Set Hero_Agl = (Last created dialog Button)
      • Dialog - Create a dialog button for Hero[2] labelled Intelligence
      • Set Hero_Int = (Last created dialog Button)
      • Dialog - Show Hero[2] for Player 1 (Red)
      • Dialog - Show Hero[2] for Player 2 (Blue)
      • Dialog - Show Hero[2] for Player 3 (Teal)
      • Dialog - Show Hero[2] for Player 4 (Purple)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Hero_Str
        • Then - Actions
          • Set Question2[(Player number of (Triggering player))] = 1
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Hero_Agl
            • Then - Actions
              • Set Question2[(Player number of (Triggering player))] = 2
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to Hero_Int
                • Then - Actions
                  • Set Question2[(Player number of (Triggering player))] = 3
                • Else - Actions
  • answered
    • Events
      • Dialog - A dialog button is clicked for Hero[2]
    • Conditions
    • Actions
      • -------- STR --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Question1[(Player number of (Triggering player))] Equal to 1
          • Question2[(Player number of (Triggering player))] Equal to 1
        • Then - Actions
          • Unit - Create 1 Warrior for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Question1[(Player number of (Triggering player))] Equal to 2
              • Question2[(Player number of (Triggering player))] Equal to 1
            • Then - Actions
              • Unit - Create 1 Warrior Female for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
            • Else - Actions
      • -------- AGL --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Question1[(Player number of (Triggering player))] Equal to 1
          • Question2[(Player number of (Triggering player))] Equal to 2
        • Then - Actions
          • Unit - Create 1 Bandit for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Question1[(Player number of (Triggering player))] Equal to 2
              • Question2[(Player number of (Triggering player))] Equal to 2
            • Then - Actions
              • Unit - Create 1 Bandit Female for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
            • Else - Actions
      • -------- INT --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Question1[(Player number of (Triggering player))] Equal to 1
          • Question2[(Player number of (Triggering player))] Equal to 3
        • Then - Actions
          • Unit - Create 1 Caster for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Question1[(Player number of (Triggering player))] Equal to 2
              • Question2[(Player number of (Triggering player))] Equal to 3
            • Then - Actions
              • Unit - Create 1 Caster Female for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
            • Else - Actions
      • Trigger - Run Camera <gen> (checking conditions)
 
1. You are using the if(clicked button) without the event button clicked for... You need another trigger!

2. Same prob... the event referce to a clicked button of the hero [1] but the buttons you asked for with if are in hero[2]...

3. too long... first check the other two then tell if it doesnt work..
 
  • First Question
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of Hero[1] to Are you
      • Dialog - Create a dialog button for Hero[1] labelled Male
      • Set Gender[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Hero[1] labelled Female
      • Set Gender[2] = (Last created dialog Button)
      • Dialog - Show Hero[1] for Player 1 (Red)
      • Dialog - Show Hero[1] for Player 2 (Blue)
      • Dialog - Show Hero[1] for Player 3 (Teal)
      • Dialog - Show Hero[1] for Player 4 (Purple)
  • Second Question
    • Events
      • Dialog - A dialog button is clicked for Hero[1]
    • Conditions
    • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Clicked dialog button) Equal to Gender[1]
      • Then - Actions
        • Set Question1[(Player number of (Triggering player))] = 1
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Clicked dialog button) Equal to Gender[2]
          • Then - Actions
            • Set Question1[(Player number of (Triggering player))] = 2
          • Else - Actions
      • Dialog - Change the title of Hero[2] to Do you like?
      • Dialog - Create a dialog button for Hero[2] labelled Strenght
      • Set Hero_Str = (Last created dialog Button)
      • Dialog - Create a dialog button for Hero[2] labelled Speed
      • Set Hero_Agl = (Last created dialog Button)
      • Dialog - Create a dialog button for Hero[2] labelled Intelligence
      • Set Hero_Int = (Last created dialog Button)
      • Dialog - Show Hero[2] for Player 1 (Red)
      • Dialog - Show Hero[2] for Player 2 (Blue)
      • Dialog - Show Hero[2] for Player 3 (Teal)
      • Dialog - Show Hero[2] for Player 4 (Purple)
  • answered
    • Events
      • Dialog - A dialog button is clicked for Hero[2]
    • Conditions
    • Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Clicked dialog button) Equal to Hero_Str
    • Then - Actions
      • Set Question2[(Player number of (Triggering player))] = 1
    • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Hero_Agl
        • Then - Actions
          • Set Question2[(Player number of (Triggering player))] = 2
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Hero_Int
            • Then - Actions
              • Set Question2[(Player number of (Triggering player))] = 3
            • Else - Actions
    • -------- STR --------
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Question1[(Player number of (Triggering player))] Equal to 1
        • Question2[(Player number of (Triggering player))] Equal to 1
      • Then - Actions
        • Unit - Create 1 Warrior for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Question1[(Player number of (Triggering player))] Equal to 2
            • Question2[(Player number of (Triggering player))] Equal to 1
          • Then - Actions
            • Unit - Create 1 Warrior Female for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
          • Else - Actions
    • -------- AGL --------
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Question1[(Player number of (Triggering player))] Equal to 1
        • Question2[(Player number of (Triggering player))] Equal to 2
      • Then - Actions
        • Unit - Create 1 Bandit for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Question1[(Player number of (Triggering player))] Equal to 2
            • Question2[(Player number of (Triggering player))] Equal to 2
          • Then - Actions
            • Unit - Create 1 Bandit Female for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
          • Else - Actions
    • -------- INT --------
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Question1[(Player number of (Triggering player))] Equal to 1
        • Question2[(Player number of (Triggering player))] Equal to 3
      • Then - Actions
        • Unit - Create 1 Caster for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Question1[(Player number of (Triggering player))] Equal to 2
            • Question2[(Player number of (Triggering player))] Equal to 3
          • Then - Actions
            • Unit - Create 1 Caster Female for (Triggering player) at (Center of Region 000 <gen>) facing Default building facing degrees
          • Else - Actions
    • Trigger - Run Camera <gen> (checking conditions)
You did almost everything right, only you have to move those 2 if/then/else s to the next trigger, then it should work
 
thank you Yixx i'll try it out
Ok it worked but i had to add in a trigger b4 the camera trigger
 
Last edited:
Status
Not open for further replies.
Back
Top