• 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 text(MANA OF UNIT) and thatn + .000 why?

Status
Not open for further replies.
Level 14
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 14
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