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))