Yanfly Engine. Ranged Attack

Hello there,

I'm struggeling for a few hours now with a part of the Yanfly Engine. I'm trying to learn everything on my own for a few weeks now how his plugins works but i actually reached a point i'm stuck. So i signed up here in hope to find someone who is willing to help me ^^"

I'm using the Yanfly Core/Battle Core Plugin as well as the Action Sequences Packs and i want to split the normal Ranged Attack and the normal melee attack.

For now, every character use the #1 Skill for his Basic Attack, how can i change it my Characters will use the #2 skill for example?

The reason i want to split those attacks is because of the camera movement i use for the Regular Attack Animation. It doesn't fit for ranged weapons. If the character doesn't move towards the enemy, it looks odd.

I'm grateful for every tips i can get.
Thank you,

Nuel

I've moved this thread to Plugin Support. Thank you.


Just wanted to get you in the right section to get the best help.
I`m really sorry i posted in the wrong section. I`ll be watch out that i`ll post in the right section next time.

For my personal Problem....i found a solution who work now. I use the standard attack for both now but i still would like to know if it`s possible to split those attacks somehow.

if anyone know this i would love to know this as well. this really bugs me ^^" lol
There is a plugin called WeaponSkill included by default in a new project: it lets you set different attacks for different weapons. 😮‍💨

Alternatively Yanfly's Weapon Unleash plugin can also do this. 🙂

...or, if the only difference is in the action sequence, you can use an "if" in your Attack skill's sequence:
Code:
if user.attackMotion() === 'missile'
  ranged_actions_go_here
else
  melee_actions_go_here
end
Spoiler: Example: move to target if not ranged attack
Code:
<target action>
wait for movement
if user.attackMotion() !== 'missile'
  move user: target, front base, 20
  wait for movement
end
motion attack: user
motion wait: user
action animation: target
action effect: target
wait: 10
</target action>
Thank you very much for you reply.

I'm using Yanfly's Weapon Unleash Plugin now and it works!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-engine-ranged-attack.109747/