• 🏆 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 Issues

Status
Not open for further replies.
Level 8
Joined
Jun 26, 2019
Messages
318
If whenever game starts after got out of loading screen, you probably accident press any buttons on keyboard, and it will disappear the choose race for custom creating units, how do you fix that? Or, how do you build a trigger that will keep infinite appearing the choose race dialog on screen for until one of races is chosen, and disable the dialog, you know what I am trying to figure out how to fix this? Thanks.
 
Level 6
Joined
Jan 16, 2017
Messages
105
This one should work
  • Initialization
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of DialogRace to (String(TimeLeft))
      • Dialog - Create a dialog button for DialogRace labelled Human
      • Set DialogButtonRace[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for DialogRace labelled Orc
      • Set DialogButtonRace[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for DialogRace labelled Undead
      • Set DialogButtonRace[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for DialogRace labelled Night Elf
      • Set DialogButtonRace[4] = (Last created dialog Button)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Dialog - Show DialogRace for (Picked player)
  • Enable
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set TimeLeft = (TimeLeft - 1)
      • Dialog - Change the title of DialogRace to (String(TimeLeft))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TimeLeft Equal to 0
        • Then - Actions
          • Trigger - Turn off (This trigger)
          • Dialog - Change the title of DialogRace to Choose your race
        • Else - Actions
  • DialogClick
    • Events
      • Dialog - A dialog button is clicked for DialogRace
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TimeLeft Equal to 0
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to DialogButtonRace[1]
            • Then - Actions
              • Game - Display to (All players) the text: ((Name of (Triggering player)) + chose Human.)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to DialogButtonRace[2]
            • Then - Actions
              • Game - Display to (All players) the text: ((Name of (Triggering player)) + chose Orc.)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to DialogButtonRace[3]
            • Then - Actions
              • Game - Display to (All players) the text: ((Name of (Triggering player)) + chose Undead.)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to DialogButtonRace[4]
            • Then - Actions
              • Game - Display to (All players) the text: ((Name of (Triggering player)) + chose Night Elf.)
            • Else - Actions
        • Else - Actions
          • Dialog - Show DialogRace for (Triggering player)

If you have any questions/requests about the system feel free to tell me.
Note: In singleplayer you need to spam enter untill you get the timer to zero.
 

Attachments

  • Dialog.w3x
    17.8 KB · Views: 14
Level 8
Joined
Jun 26, 2019
Messages
318
That's really nice! I like it! Actually, I don't want to get confused myself getting my dialog trigger to have addition of your dialog trigger into it. Can you add it into mine for me? And, I want 3 times, not 5 times. Thanks. Here my dialog trigger.
 

Attachments

  • Dialog 2.w3x
    27.5 KB · Views: 17
Level 6
Joined
Jan 16, 2017
Messages
105
Hey, man. The time remains is not working... it only started at the final click on choose race... here the updated file.
You made some unnecessary changes like duplicate the system. I guess it is because of removing a specific unit so i made a few changes to the older trigger.
  • Variables
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- Replace (Attacked Unit) with units that are supposed to be removed. --------
      • -------- Number in the Array represents number of the Player so 1 = Red, 2 = Blue and so on --------
      • Set RemoveUnit[1] = (Attacked unit)
      • -------- Red ↑↑ --------
      • Set RemoveUnit[2] = (Attacked unit)
      • -------- Blue ↑↑ --------
      • Set RemoveUnit[3] = (Attacked unit)
      • -------- Teal ↑↑ --------
      • Set RemoveUnit[4] = (Attacked unit)
      • Set RemoveUnit[5] = (Attacked unit)
      • Set RemoveUnit[6] = (Attacked unit)
      • Set RemoveUnit[7] = (Attacked unit)
 

Attachments

  • Dialog 5.w3x
    19.7 KB · Views: 14
Status
Not open for further replies.
Top