1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Game Message

Discussion in 'World Editor Help Zone' started by Razosh, May 28, 2020.

  1. Razosh

    Razosh

    Joined:
    Jul 9, 2009
    Messages:
    3,860
    Resources:
    0
    Resources:
    0
    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.
     
  2. Footman16

    Footman16

    Joined:
    Jul 14, 2012
    Messages:
    2,177
    Resources:
    9
    Packs:
    1
    Maps:
    7
    Reforged HD Models:
    1
    Resources:
    9
    • 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.
     
  3. Razosh

    Razosh

    Joined:
    Jul 9, 2009
    Messages:
    3,860
    Resources:
    0
    Resources:
    0
    Wow, that went fast, thank you so much Footman16. <3
     
  4. Footman16

    Footman16

    Joined:
    Jul 14, 2012
    Messages:
    2,177
    Resources:
    9
    Packs:
    1
    Maps:
    7
    Reforged HD Models:
    1
    Resources:
    9
    Lockdown has it's perks lol
     
  5. Razosh

    Razosh

    Joined:
    Jul 9, 2009
    Messages:
    3,860
    Resources:
    0
    Resources:
    0
    I can imagine, fortunatly I'm Swedish so no lockdowns for me. ^^