Original Post
I've been searching around to try to find good articles that discuss the math behind a strategy game. I'm not talking about visual math, but more about how do stats like ATK and DEF react to each other? While it seems like this tends to be more difficult to make generic due to the massive amount of differences in each strategy game, I get the sense that there are some common elements between these games that can create some base algorithms for calculations.
The core example I'm trying to figure out is, given an Attack Strength for an attacker and a Defense Strength for a defender, what would be the actual damage caused by the attacker? I'm hoping to find a solution that will prevent a certain DEF from overpowering an ATK, but should be more appropriately based on their differences, and ideally won't be based on random chance (though it could be included for a CRITICAL type of modifer). This wouldn't take into account the actual attack speed, since that would determine the rate at which this algorithm runs.
Some articles I have found thus far:
http://na.leagueofle...5201&highlight=
http://serenesforest.../fe10/calc.html
http://en.wikipedia....ing_mathematics
TL;DR - Does anyone have any thoughts as to some simple algorithms that can take statistics of Attack and Defense and calculate the damage that would be done by an attacker? Any suggested reading is welcomed as well!
The core example I'm trying to figure out is, given an Attack Strength for an attacker and a Defense Strength for a defender, what would be the actual damage caused by the attacker? I'm hoping to find a solution that will prevent a certain DEF from overpowering an ATK, but should be more appropriately based on their differences, and ideally won't be based on random chance (though it could be included for a CRITICAL type of modifer). This wouldn't take into account the actual attack speed, since that would determine the rate at which this algorithm runs.
Some articles I have found thus far:
http://na.leagueofle...5201&highlight=
http://serenesforest.../fe10/calc.html
http://en.wikipedia....ing_mathematics
TL;DR - Does anyone have any thoughts as to some simple algorithms that can take statistics of Attack and Defense and calculate the damage that would be done by an attacker? Any suggested reading is welcomed as well!