Thread: Taunt
View Single Post
  #2  
Old 05-10-2008, 06:00 PM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default

That's saying if always_succeed (probably for a discipline) then it's 100% chance.
Then 'else' (for all other cases), then it breaks it up into what level the person is using it and has a formula for each group. In the last group there should be a maximum of 95% chance that you are successful. The problem could be in the function that's calling tauntchance. It may just not properly be giving the fail message. But who knows.
This is the code for above lvl 15:
Code:
else {
				tauntchance = 50.0;	// minimum
				tauntchance += tauntchance * (float)GetSkill(TAUNT) / 200.0;	// skill modifier
				if (tauntchance > 95.0)
					tauntchance = 95.0;
or
tauntchance = 50 + (50 * (tauntskill / 200))
which isn't the best formula because at 200 taunt skill you'll have 100% chance, which will be 95% since there's a cap.
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote