Tsukihime 1,489 Posted May 14, 2013 (edited) This effect is activated when an attack is successfully made. The user will take some amount of damage according to the effect. Download Get it at Hime Works! Installation Place this script below Effect Manager and above Main. Usage Tag effect objects with <eff: recoil_damage formula> Where the formula is any valid ruby statement that evaluates to a number Edited March 31, 2015 by Tsukihime 1 Share this post Link to post Share on other sites
AJNR 156 Posted May 15, 2013 My Formula fits in to the Damage Formula, with the Recoil Method. But this script makes it's more easy to use the Recoil Formula. How would I change 'formula' into something that deals 25% of Damage dealt to the Enemy, onto the User. I know for the Damage Formula (with 25% Recoil) it's: r = a.atk * 4 - b.def * 2; a.hp-=r/4; r But my Damage Formula's different, would that make any difference? Original: ((2 * a.luk + 10) / 100.to_f) * (a.atk / b.def.to_f) * 100.to_f + 2 With Recoil r = ((2 * a.luk + 10) / 100.to_f) * (a.atk / b.def.to_f) * 100.to_f + 2; a.hp-=r/4; r Share this post Link to post Share on other sites
Xypher 176 Posted May 15, 2013 @result.hp_damage * 0.25 Share this post Link to post Share on other sites
Tsukihime 1,489 Posted May 15, 2013 (edited) Make sure there are no spaces in your formula since my note-tag does not accept spaces. @result.hp_damage*0.25 Well, you might figure that out after wondering why the recoil damage is doing full damage instead of a quarter Edited May 15, 2013 by Tsukihime Share this post Link to post Share on other sites
Maliki 33 Posted May 15, 2013 Just for the sake of asking, if you had the recoil dam formula set to a negative number, would it heal the user? If so, could it also be set to heal/drain MP/TP? Share this post Link to post Share on other sites
Tsukihime 1,489 Posted May 15, 2013 It should, since I do not explicitly prevent you from working with damage values less than 0. Share this post Link to post Share on other sites
HelloProLover 0 Posted February 7, 2021 On 5/15/2013 at 4:53 AM, AJNR said: My Formula fits in to the Damage Formula, with the Recoil Method. But this script makes it's more easy to use the Recoil Formula. How would I change 'formula' into something that deals 25% of Damage dealt to the Enemy, onto the User. I know for the Damage Formula (with 25% Recoil) it's: r = a.atk * 4 - b.def * 2; a.hp-=r/4; r But my Damage Formula's different, would that make any difference? Original: ((2 * a.luk + 10) / 100.to_f) * (a.atk / b.def.to_f) * 100.to_f + 2 With Recoil r = ((2 * a.luk + 10) / 100.to_f) * (a.atk / b.def.to_f) * 100.to_f + 2; a.hp-=r/4; r I have tried out these to no luck :( I want to do a recoil damaging move but I can't seem to make it work... please help! Share this post Link to post Share on other sites