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

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