For example, a variable that follows how 'holy' a character it. Getting blessed at the church or using holy skills adds more to this variable.
Then an enemy uses a skill that inflicts a state called 'curse'.
I want to make the odds of resisting curse to be equal to 100%, minus how many holy points there are.
So if the character has 25 holy points, the chances of being affected by curse would be of 75%. If he has 27 holy points, it'd be 73%. And so on until the character is fully immune to curse at 100 holy points.
I imagine it'll take some coding to do it, and I do know a thing or two about coding, I'm more or less just asking for help with where to start the code, what functions to look for and so on.
Then an enemy uses a skill that inflicts a state called 'curse'.
I want to make the odds of resisting curse to be equal to 100%, minus how many holy points there are.
So if the character has 25 holy points, the chances of being affected by curse would be of 75%. If he has 27 holy points, it'd be 73%. And so on until the character is fully immune to curse at 100 holy points.
I imagine it'll take some coding to do it, and I do know a thing or two about coding, I'm more or less just asking for help with where to start the code, what functions to look for and so on.