Trainer properties (items etc.)
View Single Post
December 16th, 2012 (4:52 PM).
Lead Dev of Pokémon Essentials
When you added code to
to allow for a 16th value, did you add a line saying
? You need to turn it into an integer.
Also, the code you mentioned is wrong. Use this:
if poke > 0 && poke <= 100 pokemon.hp = (pokemon.totalhp * poke / 100).floor end
At least you put it in the right place.
All Animations Project
Follow me on Twitter:
Joined Jan 2008
View Public Profile
Send a private message to Maruno
Find all posts by Maruno
Find threads started by Maruno
Ignore Posts by Maruno