![]() |
Parrying new formula - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Parrying new formula (/Thread-Parrying-new-formula) |
Parrying new formula - Snaigel - 12-26-2019 07:06 PM ![]() 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 Let's see if some scripters want to contribute with their grain of sand so I can figure out the rest of the script ![]() RE: Parrying new formula - Coruja - 12-27-2019 12:50 PM Usually you just need a simple formula and return 0 (fail) or 1 (success), but @UseQuick is a bit tricky because using return 0/1 will skip skillgain, so you have to use return 2 to proceed with default internal action (skillgain) and deal with ARGN2 (action difficulty) / ARGN3 (force success/fail) Code: ON=@UseQuick RE: Parrying new formula - Snaigel - 12-27-2019 02:49 PM Awesome, thank you very much |