So I'm making a game and want to create an equation for calculating the effect of a stat called armor. The effect is in percent and determines how much damage reduction one has against attacks. The parameters are, 1, Player level and, 2, Armor points. Here's my initial approach:
I created a matrix $A$ that looks like this: $\left[\array{ 1 & 5 & 0.05\\ 30 & 170 & 0.5 }\right]$ I want the effect to be 5% when the player is level 1 and has 5 armor points. And when the player is level 30 and has 170 armor points, the effect should be 50%.
This all works fine, except for two problems:
The solution to that Matrix result in something unsuitable: When a player increases his armor points (without gaining in level) the effect decreases. If you have ever played a rpg, it should increase.
The changes to the effect are happening too fast. If $B$ is the effect when the player is level 25 and has 150 armor points and $C$ is the effect when the player is level 25 and has 151 armor points, $|B-C|$ is too big.
Any suggestions on how to get by problem 1 and 2?
To clarify:
I rowreduce matrix A. That gives me
$\left[\array{ 1 & 0 & 0.3\\ 0 & 1 & -0.05 }\right]$
So the equation I use is $\text{effect} = 0.3\text{ level}-0.05\text{ armor}\;.$
Here's what I would like to happen: 1. I would like the effect to increase as armor increases(and level standing still). 2. I would like the effect to decrease as level increases(and armor standing still).