Blockland Forums > Modification Help
A few questions (new question):
otto-san:
1. How would you round to the nearest whole number? :I
2. Is there a way to get the front digit in a bl_id?
3. How do scriptGroups work?
Headcrab Zombie:
mFloor(%num) rounds down, mCeil(%num) rounds up, mFloatLength(%num,0) to round up or down depending on the decimal value
getSubStr(%id,0,1) ?
otto-san:
--- Quote from: Headcrab Zombie on October 08, 2010, 12:24:55 AM ---getSubStr(%id,0,1) ?
--- End quote ---
See, I was thinking that, but I wasn't sure since bl_id is a number
Kalphiter:
--- Quote from: otto-san on October 08, 2010, 07:08:49 PM ---See, I was thinking that, but I wasn't sure since bl_id is a number
--- End quote ---
String <-> integer <-> decimal conversion is automatic
otto-san:
--- Quote from: Kalphiter on October 08, 2010, 07:09:35 PM ---String <-> integer <-> decimal conversion is automatic
--- End quote ---
Okay then.
Half of me was thinking that
the other half was thinking otherwise