I need help with RPG Stats. Offense, Defense, All that fancy stuff. If someone can help me, I’ll put your name in my new game credits!
Heres a rough draft:
You can have the characters start out with a pre-determined stat array, stats increasing by 1 every level.
The formula for damage itself is based on the damage formula of the first few Pokemon games:
where:
Level is the level of the attacker
Critical is 2 for a critical hit, 1 otherwise
A is your attack, D is the opponents defense
Power is the power of the move (or in this case weapon maybe)
Random, i dont know what it does exactly in the original games or how its calculated tbh
you can have a random modifier or not
Well thats my idea, let me know if it works for your project (and if it works for your project)
You could also have speed determine turn order or dodge chance
maybe
Thank you so much! How do I implement dodging into the calculation with the speed?
Heres my idea, the numbers might need some tuning and it really depends on how high your speed can go up to.
Essentially whenever youre attacked you have a chance equal to a third of your speed to dodge the attack. this assumes you use functions to do the battles, but this should serve well enough as proof of concept
is it ok if I use this code?
I mean… There’s nothing really stopping you…