This is all I could manage to throw together. I'd be embarrassed to show how inept I am, but there ain't really anything to hide.
When I tested it out the attack just instantly killed the guy... which I don't understand how that even happened. Considering what I put down it should have done zero damage at the least, right?
I just want an item to deal a certain percent of the enemy's health. And I already looked around, I read this whole thread https://forums.rpgmakerweb.com/index.php?threads/damage-formulas-101.81905/ which I'm pretty sure might have explained it, but honestly, I was lost once this was whipped out " (v[10] > 100) { a.atk*4 - b.def*2 } else { a.atk*2 - b.def*2 } "
I know I'm too dumb to do much, but I thought a percentage-based attack wouldn't be complicated. If it is then excuse the question, I'm not trying to do much here, just easy stuff for fun when I'm off work.
When I tested it out the attack just instantly killed the guy... which I don't understand how that even happened. Considering what I put down it should have done zero damage at the least, right?
I just want an item to deal a certain percent of the enemy's health. And I already looked around, I read this whole thread https://forums.rpgmakerweb.com/index.php?threads/damage-formulas-101.81905/ which I'm pretty sure might have explained it, but honestly, I was lost once this was whipped out " (v[10] > 100) { a.atk*4 - b.def*2 } else { a.atk*2 - b.def*2 } "
I know I'm too dumb to do much, but I thought a percentage-based attack wouldn't be complicated. If it is then excuse the question, I'm not trying to do much here, just easy stuff for fun when I'm off work.