• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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)
 
Level 13
Joined
Sep 14, 2008
Messages
1,407
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..
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
  • 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
 
Level 13
Joined
Oct 27, 2008
Messages
1,176
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.
Top