• 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!

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"
 
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.
Back
Top