• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Game Message

Status
Not open for further replies.
Level 24
Joined
Jul 9, 2009
Messages
4,097
Hello,

In my map I have an integer variable that has a value which is going to increase over time, as the integer approaches 100. I am trying to make it so that whenever the value of said variable increases a game message goes out to all players saying "Progress: value of variable/100". I personally lack the experience to make this message without creating 20 pages worth of "If/Then/Else" triggers.

Is there any kind soul out there who knows how to solve my issue for me because I'm to dumb to handle it mysef?

Thank you in advance.
 
  • Test Integer
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Set VariableSet Integer = (Integer + 1)
      • Game - Display to (All players) for 15.00 seconds the text: (Progress: + ((String(Integer)) + /100))
Does this do what you want? To get the different parts of the Text Message you use concatenate strings.
 
Status
Not open for further replies.
Top