|
deathkitty Apprentice
Joined: 14 Apr 2008 Posts: 105
|
Posted: Thu May 22, 2008 10:45 am
How do I round a number in a variable DOWN? |
trigger:
pattern:
^You are dead
action:
#math energy @energy-(@energy/4)
the idea is that when you die it takes 25% away from the energy
however energy can be between 0 and 100, so you can get some odd numbers sometimes. I need it to round down the result it gets after taking 1/4 away but I can't work out what i need to do that |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu May 22, 2008 11:18 am |
#math energy @energy*3/4
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
deathkitty Apprentice
Joined: 14 Apr 2008 Posts: 105
|
Posted: Thu May 22, 2008 3:57 pm |
thanks!
|
|
|
|
|
|