I've been playing around with an idea for an RPG that I've had for a very long time. The thing is, I'm having a bit of trouble wrapping my head around a decent damage formula. I've got a spreadsheet open, so that I can play with the numbers and see how things play out quickly. While I think I have something that works out fairly well, I'm a bit curious as to how the individual stats play their roles.
Okay, I feel that I'm not getting this across all that well, so let me just launch into this and ask for a few second opinions.
ATTACK POWER: Atk*(1+.01(Pow))+(1+.10(Str))+(.10*RandBetween(0,Lck))
Basically, this formula uses the character's Attack stat (Atk), the power of the attack used (Pow), The character's Strength (Str), and the character's Luck (Lck) as a variance amount.
DEFENSE POWER: Def+(1+.10(End))+(.10*RandBetween(0,Lck))
This part of the calculation works the same way, substituting Attack for Defense (Def), and Strength for Endurance (End). Again, Luck is used as a variance amount. Since the attack formula is boosted by the attack's unique power variable (Pow), it should ensure that two characters with similar stats don't get stuck doing nothing but scratch damage. After both formulas are calculated, the two results are subtracted from each other to get the amount of damge dealt.
So far, when I test the formulas against each other with five different-powered attacks (20, 40, 60, 80, 100), I seem to get pretty decent results. However, I'm a bit apprehensive on how the Luck stat is being used. Let's say the player uses boosting items to increase their luck up to something like 100. It seems a bit odd that the luck variable can fluctuate between 0 and 100 on each attack. I tried adding in the percentage bit in there to even it out, but then it seemed like it's not very effective as a variance amount.
Does anybody have any ideas how I can adjust this?