- Joined
- Oct 23, 2016
- Messages
- 12
- Reaction score
- 5
- First Language
- English
- Primarily Uses
@Dopan
Hi, thanks for all the amazing support work you do on this plugin!
I was wondering if there is a way to detect the range of an attack and program in animations accordingly. I want to do a weapon like a javelin that functions both in ranged and melee, but with different animations. I.E. in melee the character stabs, in ranged, they throw a projectile. I wanted to do this by making a unique skill for that weapon type, putting the code into the skill notes, then using the <srpgWeaponSkill:> note on the weapon. The only thing I can't figure out is how to call and check the range at which an attack is happening.
So is it possible to do something like the following pseudocode for the skill note?
if(attackrange = 1)
{run specified melee animation with Yanfly script}
if (attackrange != 1)
{run specified ranged animation with Yanfly script}
Hi, thanks for all the amazing support work you do on this plugin!
I was wondering if there is a way to detect the range of an attack and program in animations accordingly. I want to do a weapon like a javelin that functions both in ranged and melee, but with different animations. I.E. in melee the character stabs, in ranged, they throw a projectile. I wanted to do this by making a unique skill for that weapon type, putting the code into the skill notes, then using the <srpgWeaponSkill:> note on the weapon. The only thing I can't figure out is how to call and check the range at which an attack is happening.
So is it possible to do something like the following pseudocode for the skill note?
if(attackrange = 1)
{run specified melee animation with Yanfly script}
if (attackrange != 1)
{run specified ranged animation with Yanfly script}
Last edited: