To minimize code and make it easier to read the mathematical function itself will be a stock function.
So before we had this:
Global Vars
In program:Code:new Float:IronBaseChance = 0.05; new Float:IronChanceMult = 0.01;
Now we have this:Code:if(Math_GetRandomFloat(0.0,1.0)<=IronBaseChance + (skill_level*IronChanceMult))
Global Function
In ProgramCode:public Float:IronChance(currentLevel) { return AbilityValue(0.05, 0.25, RaceLevels, currentLevel); }
Code:if(Math_GetRandomFloat(0.0,1.0)<=IronChance(skill_level))
Sure! I'm about to pass out but let me see if I can do it before that happens.
- - - Updated - - -
Actually I can't tonight. GF is sleepin and the files are on my desktop. I'll have her send them up and change it for you tomorrow! Sorry about the delay.
What: my life skills use meat
“Let us be thankful for the fools. But for them the rest of us could not succeed. ” -Mark Twain