I am making a GM command to half palyers hp if they have been misbehaving but some players have odd numbers resulting in decimals. Here is the line, how could I round it off?
mob/GM/verb/Bitchslap(mob/M in world)
set category = "Admin"
world <<"{{[M]}} has recieved a quick bitchslap by [usr]"
M.HP /=2
ID:176053
Feb 19 2003, 9:28 am
|
|
Feb 19 2003, 9:37 am
|
|
M.HP = round(M.HP/2)
|
In response to Garthor
|
|
Ah thanks! I was trying other ways but I never thought of it that way. Thanks again.
|