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

How to make the "Continue" button actually let you continue

Status
Not open for further replies.
Level 7
Joined
Aug 16, 2019
Messages
61
At the end of my map when the game ends in Victory or Defeat, you get the "Continue" or "Quit Game" options, but... They do the same thing. For the record I'm using the "Victory" and "Defeat" triggers to end the game.

So this isn't really a huge issue per say, since it only affects the cases where you might want to keep playing after winning/losing, but I'm wondering if there's a way to change it so you actually can continue.
 
Level 28
Joined
Feb 18, 2014
Messages
3,577
Create your own victory dialog, it's very simple :
  • Victory Dialog
    • Events
    • Conditions
    • Actions
      • Dialog - Clear VictoryDialog
      • Dialog - Change the title of VictoryDialog to Victory !
      • Dialog - Create a dialog button for VictoryDialog labelled Continue
      • Set VariableSet VictoryContinue = (Last created dialog Button)
      • Dialog - Create a dialog button for VictoryDialog labelled Quit Game
      • Set VariableSet VictoryQuit = (Last created dialog Button)
      • Dialog - Show VictoryDialog for (Triggering player)
  • Victory Check
    • Events
      • Dialog - A dialog button is clicked for VictoryDialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to VictoryContinue
        • Then - Actions
          • -------- Do nothing here --------
        • Else - Actions
          • Game - Victory (Triggering player) (Show dialogs, Show scores)
 
Status
Not open for further replies.
Top