12-26-2019, 07:06 PM
So I want to change the parrying chance to block attacks with my own formula. I'm doing it with the ON=@UseQuick trigger in sphere_skills.scp
And in summary would be:
With shield: 1,5% chance to block an attack for each 10.0 points of parrying, or 0,15% for each 1.0 for a more optimal formula (15% at 100.0 parrying)
Without shield: 0,75% chance to block an attack for each 10.0 points of parrying, (7,5% at 100.0 parrying)
But I don't know how to full make it, this is the only things I think I know how to code:
Let's see if some scripters want to contribute with their grain of sand so I can figure out the rest of the script
And in summary would be:
With shield: 1,5% chance to block an attack for each 10.0 points of parrying, or 0,15% for each 1.0 for a more optimal formula (15% at 100.0 parrying)
Without shield: 0,75% chance to block an attack for each 10.0 points of parrying, (7,5% at 100.0 parrying)
But I don't know how to full make it, this is the only things I think I know how to code:
Quote:IF (rand(100) < 7.5 or 7,5) //chance at 100.0 parrying without shield
<ARGN3> //Parry succesful if rand 7.5%, when you use return 2 you need to use ARGN3 as I readed in the wiki
RETURN 2 //return with skill gain
Let's see if some scripters want to contribute with their grain of sand so I can figure out the rest of the script