Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: Shadow Eye31 on March 05, 2013, 09:18:04 pm

Title: [Blizz ABS] Getting Distance Traveled for Projectile
Post by: Shadow Eye31 on March 05, 2013, 09:18:04 pm
Hello.

I was wondering if there is a way to record the distance traveled by a projectile before impact to a variable for use in the attack_effect method. For instance, if the player fires an arrow that travels 3 tiles, variable @distance_traveled is set to 3. Then, in attack_effect, @distance_traveled can be referenced for various things, such as damage multiplier or hit rate. I do not know if this is possible, but if it is, how would I go about recording that distance and referencing it in attack_effect?

Thank you.