Formatting Real Numbers when in string

inevit4ble

Well-Known Member
Reaction score
38
Hi every1,


Code:
Quest - Display to (Player group((Owner of (Triggering unit)))) the Warning message: (Your Strength Modifier is =  + (String(StrMod[((Player number of (Owner of (Triggering unit))) - 1)], 1, 0)))

It still prints x.0 and I don't want the decimal at all.
What wrong with the line?
 

KJP

New Member
Reaction score
5
Not sure what it is exactly that you mean, but im getting the impression you want the modifier to be displayed as an integer. If this is the case, then where you convert StrMod to a formatted real string, convert it from real to integer then into the string
 

luorax

Invasion in Duskwood
Reaction score
67
Convert the real to integer then convert the integer to string. That's all.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top