(Extreme Newbie to python)
Topic probably didn't make sense, so i'm just gonna show an example.
Say that a character has an ability that they can use. The ability scales with their magical affinity or whatever.
Don't question the var name.
magicalblahahaha = (character[attackp] * 2 - defensep)
Basically, this attack damage is calculated by subtracting the player defense point(defensep) from the one using the ability attack point(attackp) * 2
to get the damage output.
How do I make it so that Python some how auto replaces the variable character with the user using it? Btw, all of the users are dictionary with values inside like attackp and such.