• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Dialog Problem

Status
Not open for further replies.
Level 12
Joined
Dec 10, 2008
Messages
850
Ok, so I've been working on a dialog system that leads to another dialog that alows you to pick a unit. It works fine, until I try to add a title to it. I've tried setting them in the init trigger, I've tryed setting them when they're made, but nothing is working unless I remove the titles, but then it isn't noob-friendly.


Note that the buttons arn't properly labed yet.
  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set SpawnAmount = 30
      • Dialog - Change the title of PDialog1 to Class Type's
      • Dialog - Create a dialog button for PDialog1 labelled Mage's
      • Set PDialogBtn[0] = (Last created dialog Button)
      • Dialog - Create a dialog button for PDialog1 labelled Melee
      • Set PDialogBtn[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for PDialog1 labelled Ranger's
      • Set PDialogBtn[2] = (Last created dialog Button)
      • Dialog - Change the title of PDialog2 to Melee Units
      • Dialog - Change the title of PDialog3 to Mage Type
      • Dialog - Change the title of PDialog4 to Ranger Type
      • Dialog - Create a dialog button for PDialog3 labelled Fire
      • Set PDialogBtn[6] = (Last created dialog Button)
      • Dialog - Create a dialog button for PDialog3 labelled Water
      • Set PDialogBtn[7] = (Last created dialog Button)
      • Dialog - Create a dialog button for PDialog3 labelled Lightning
      • Set PDialogBtn[8] = (Last created dialog Button)
      • Dialog - Create a dialog button for PDialog2 labelled Warrior
      • Set PDialogBtn[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for PDialog2 labelled Tank
      • Set PDialogBtn[4] = (Last created dialog Button)
      • Dialog - Create a dialog button for PDialog2 labelled Defense
      • Set PDialogBtn[5] = (Last created dialog Button)
      • Dialog - Create a dialog button for PDialog2 labelled Tank
      • Set PDialogBtn[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for PDialog2 labelled Tank
      • Set PDialogBtn[4] = (Last created dialog Button)
      • Dialog - Create a dialog button for PDialog2 labelled Tank
      • Set PDialogBtn[5] = (Last created dialog Button)
  • Picking Main
    • Events
      • Time - Elapsed game time is 10.00 seconds
    • Conditions
    • Actions
      • Dialog - Create a dialog button for PDialog1 labelled Mage's
      • Set PDialogBtn[0] = (Last created dialog Button)
      • Dialog - Create a dialog button for PDialog1 labelled Melee
      • Set PDialogBtn[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for PDialog1 labelled Ranger's
      • Set PDialogBtn[2] = (Last created dialog Button)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Dialog - Show PDialog1 for (Picked player)
  • PickingClass
    • Events
      • Dialog - A dialog button is clicked for PDialog1
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to PDialogBtn[1]
        • Then - Actions
          • Dialog - Show PDialog2 for (Triggering player)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to PDialogBtn[0]
            • Then - Actions
              • Dialog - Show PDialog3 for (Triggering player)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to PDialogBtn[2]
                • Then - Actions
                  • Dialog - Show PDialog4 for (Triggering player)
                • Else - Actions
The other ones will look the same as this
  • PickingMelee
    • Events
      • Dialog - A dialog button is clicked for PDialog2
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to PDialogBtn[4]
        • Then - Actions
          • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
        • Else - Actions
Any insite as to why these don't work is accepted. But dont just say "OMG INEFFECTIVE!!!!!1111oneone"
 
Level 5
Joined
Jun 5, 2007
Messages
99
Everytime I've done If/Then/Else, they never work unless Else has "Do Nothing", or at least something active in there if necessary.
 
Status
Not open for further replies.
Top