Jump to content
Tsukihime

Effect: Recoil Damage

Recommended Posts

This effect is activated when an attack is successfully made.

The user will take some amount of damage according to the effect.

 

effect_recoildamage.jpg

 

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 by Tsukihime
  • Like 1

Share this post


Link to post
Share on other sites

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

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 by Tsukihime

Share this post


Link to post
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted