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

Game message displays wrong numbers

Status
Not open for further replies.
So as I'm doing triggers inside my map, I set several game messages that contain strings converted from integers, and they display a wrong number.
For example instead of 1000 it displays 1001, 1002, or 1003 or instead of 5 - 6,7. Why is that? I can't figuire it out. I'm not doing any maths. So it's adding a tiny bit onto the number.

Did anyone had this problem? Any idea how to resolve it?
 
Level 29
Joined
Sep 26, 2009
Messages
2,596
No there is no such issue. If you create a new map and the following trigger works fine there, then the issue is in your map's triggers
  • Test
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Set VariableSet num = 10
      • Game - Display to (All players) the text: (First value: + (String(num)))
      • Game - Display to (All players) the text: (Second value: + (String(20)))
If the above does not work correctly, then I guess you have some faulty installation :D
If it works, then back up your map and then try to delete one of the variables which supposedly has bad value - that should mark a bunch of your triggers with red triangle, showing you where that variable was used. Make sure it was used in triggers you expected.
Optionally, if you also use jass scripts, you could then click the 'Validate Map Triggers' button and the validation should fail if the variable was used in any jass script.
 
Status
Not open for further replies.
Top