Howdy all, I've been working on my project for about 3 months now and ever since I started, I've been grappling with what I should I use as my damage formula. Early on, I got it into my head that I should use a formula that divides the user's attack against the target's defense then it would multiple the remainder against the user's attack. Now, I'm not good at math which constantly makes me question why I even bother with any of this and as such this idea has been my bane ever since. However, mama didn't raise a quitter (or teach her child about the Sunk-Cost Fallacy), so I've come to share some formulas that I've brewed up for public review:
1. a.atk * (a.atk/b.def + (a.luk/1000))
The basic and first iteration of the idea, basically as I described above. Adding in the user's luck in was something I cribbed from the Fallout games and was there to give the Luck something to do because it does shockingly little else in the system. I'm still quite fond of it but I fear it might make the numbers a bit too jumpy. That and the numbers in the division part of it could start becoming closer together as the game progress, granting slimmer bonuses and penalties. Which I suppose could be countered by larger number scaling but still.
2. a.atk + (100 * ((a.atk/b.def) + (a.luk/1000))
This iteration was created as a means to counter the 'jumpy' problem, having the remainder be multiplied by a separate static number then adding that on to the attack stat. The only problem with it is that the number is just that: static. It doesn't grow or adjust at any point in the game. Leading into...
3. a.atk + (10 * a.level * ((a.atk/b.def) + (a.luk/1000))
I don't know if using the player's level in the damage formula is novel or stupid. Either way, I needed a number that scaled with player throughout the game so their level seemed like an obvious choice. For the most part it seems to work but my concerns with it are more of the structural set up of the game. The player does not earn EXP but rather a currency they can spend at both shops and to level up (Think Dark Souls). So I fear I might accidentally trap players behind a virtual paywall or encourage excessive grinding. Also, I do know that formula will not work properly for monsters using it since they don't track the player's level with the a.level, I will be using a variable in the actual in-game formula, this is just here for demonstrative purposes.
4. a.atk + ((a.atk/2) * (a.atk/b.def)
This last iteration I'm showing off is another means for a dynamic number: halving the player's attack and then multiplying that by the remainder. It would work since the attack stat is only going to grow throughout the game. However, something feels wrong about referencing the same statistic three times in one equation. I'm not math-savvy to explain why, it's more of a gut feeling.
Well, those are my formulae, I welcome all feedback and criticism. Apart of me feels like I might be overthinking it in some places which my very well be the case. Thank you all and have a good day.
1. a.atk * (a.atk/b.def + (a.luk/1000))
The basic and first iteration of the idea, basically as I described above. Adding in the user's luck in was something I cribbed from the Fallout games and was there to give the Luck something to do because it does shockingly little else in the system. I'm still quite fond of it but I fear it might make the numbers a bit too jumpy. That and the numbers in the division part of it could start becoming closer together as the game progress, granting slimmer bonuses and penalties. Which I suppose could be countered by larger number scaling but still.
2. a.atk + (100 * ((a.atk/b.def) + (a.luk/1000))
This iteration was created as a means to counter the 'jumpy' problem, having the remainder be multiplied by a separate static number then adding that on to the attack stat. The only problem with it is that the number is just that: static. It doesn't grow or adjust at any point in the game. Leading into...
3. a.atk + (10 * a.level * ((a.atk/b.def) + (a.luk/1000))
I don't know if using the player's level in the damage formula is novel or stupid. Either way, I needed a number that scaled with player throughout the game so their level seemed like an obvious choice. For the most part it seems to work but my concerns with it are more of the structural set up of the game. The player does not earn EXP but rather a currency they can spend at both shops and to level up (Think Dark Souls). So I fear I might accidentally trap players behind a virtual paywall or encourage excessive grinding. Also, I do know that formula will not work properly for monsters using it since they don't track the player's level with the a.level, I will be using a variable in the actual in-game formula, this is just here for demonstrative purposes.
4. a.atk + ((a.atk/2) * (a.atk/b.def)
This last iteration I'm showing off is another means for a dynamic number: halving the player's attack and then multiplying that by the remainder. It would work since the attack stat is only going to grow throughout the game. However, something feels wrong about referencing the same statistic three times in one equation. I'm not math-savvy to explain why, it's more of a gut feeling.
Well, those are my formulae, I welcome all feedback and criticism. Apart of me feels like I might be overthinking it in some places which my very well be the case. Thank you all and have a good day.