I'm developing an RPG and am stuck trying to create a formula for attack speed, using four stats and a base speed.
Basically, I'm trying to get an outcome where the encumbrance (basically weight and ease of handling in a single stat) of armor and weapon along with the players´ strength and agility will effect the attack speed.
So - for example: A player with a heavy armor and a 2-handed maul might end up with 0.35 attacks per second, while an unarmored dagger-wielding player should have around 2.5 or even 3 (which would be the maximum speed).
Weapons and armor have an encumbrance stat. Players have agility and strength.
In order to make it more realistic, I'm trying to integrate the following into the formula:
- The penalty from the total
encumbranceof all items should have a smaller impact on the attack speed than theencumbranceof the weapon - The penalty from the weapon
encumbranceshould depend on both agility and strength - There should be a maximum attack speed (around 3 attacks per second)
- Higher
agilityshould result in higher attack speed - Higher
strengthshould lessen the overallencumbrancepenalty
I'm not yet sure if the ranges or min/max stats are needed for the formula, but currently player stats will range between 1-10 and encumbrance (per item) from 1-10 as well.
I've given this a couple of hours of thought but I feel that my math skills might simply not be up to par.
Here's the current state of my attempt (non-functional): https://docs.google.com/spreadsheets/d/1S_NOsJp-FegY7ruR6EZTqWRxuP6gDnZJr9LYw8ETZKQ/edit#gid=0