• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

game text(MANA OF UNIT) and thatn + .000 why?

Status
Not open for further replies.
Level 13
Joined
Mar 4, 2009
Messages
1,156
game text(MANA OF UNIT) and than + .000 why?

  • Game - Display to (All players) the text: (String((Mana of SHOW GOLD GIVED TO ENEMYES 0036 <gen>)))
Stupid trigger does this
instead 1 mana it shows 1.000
it always shows mana + .000
HOW CAN I FIX THAT?:sad:
 
Last edited:
Level 13
Joined
Mar 4, 2009
Messages
1,156
Because the mana is a real value. Before that action first make a set Integer = (Mana of (Some unit))
If the mana doesn't show up in the integer functions use convert real to integer
THx MAN it workt
  • [Game - Display to (All players) the text: (String((Integer((Mana of (Random unit from (Units owned by (Owner of (Dying unit)) of type SHOW GOLD GIVED TO ENEMYES)))))))
 
Last edited:
Level 4
Joined
Oct 11, 2008
Messages
90
Try this: Game - Display to (All players) the text: (String(Integer(Mana of SHOW GOLD GIVED TO ENEMYES 0036 <gen>))))
 
Status
Not open for further replies.
Top