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

Set Winning Score

Status
Not open for further replies.
Level 4
Joined
Feb 28, 2009
Messages
73
It would probably be easier to set up a dialog box with a few options for winning score. Set up by:
  • Winning Score
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Dialog - Clear Dialog_Winning_Score
      • Dialog - Change the title of Dialog_Winning_Score to Winning Score
      • Dialog - Create a dialog button for Dialog_Winning_Score labelled 10
      • Set DialogButton[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog_Winning_Score labelled 20
      • Set DialogButton[2] = (Last created dialog Button)
      • Dialog - Show Dialog_Winning_Score for Player 2 (Blue)
Then when the dialog button is clicked:

  • Winning Score
    • Events
      • Dialog - A dialog button is clicked for Dialog_Winning_Score
    • Conditions
    • Actions
      • If ((Clicked dialog button) Equal to DialogButton[1]) then do (Set Integer_Winning_Score = 10) else do (Do nothing)
      • If ((Clicked dialog button) Equal to DialogButton[2]) then do (Set Integer_Winning_Score = 20) else do (Do nothing)
  • Trigger - Turn off (This Trigger)
 
Status
Not open for further replies.
Top