I have a question (probably really simple to fix)
atm I'm working on a script and in the configure I have for example how much exp an actor needs to lose.
now in a script I have this part:
def remove_exp
if Jackolas_GameOver::LoseExp
if Jackolas_GameOver::ExpAmount >=1
for actor in $game_party.actors
explose = Jackolas_GameOver::ExpAmount
end
else
for actor in $game_party.actors
explose = actor.exp * Jackolas_GameOver::ExpAmount
end
end
for actor in $game_party.actors
actor.exp -= explose
end
end
end
if I fill in like 0.5 in the config it works like a dream. no errors and 50% is removed.
only problem is that he puts now 1 number behind the "." in the number, like 10.0 exp (if you know what I mean)
my question is how can I round that up/down so its a whole number again?
or prevent it from happening.
(yes I know I still need to build in a safety check so it won't try to remove exp below 0)