Help - Search - Members - Calendar
Full Version: weird enemy/player damage
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Discussion
bc gy
I recently notice that (in the game Im creating) when im hitting the enemy they show the damage but the substraction isnt right

E.x.
Player attack enemyA
deal 234 damage

but enemy A lost 265 instead of 234


I want to know if there a way to correct that or not Thank you

p.s. Sorry if my english is not that good.
poisonshift
Go into the script editor, find Game_Battler and change line 643 from this:
damage = attacker.atk * 4 - self.def * 2

to this:
damage = attacker.atk / 2 - self.def / 4.



Special thanks to Guyver's Bane on that one.
bc gy
QUOTE (poisonshift @ Mar 19 2010, 09:38 PM) *
Go into the script editor, find Game_Battler and change line 643 from this:
damage = attacker.atk * 4 - self.def * 2

to this:
damage = attacker.atk / 2 - self.def / 4.



Special thanks to Guyver's Bane on that one.


Thanks poison, but how come did rpg made such a mistake
i wonder ermm.gif ermm.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.