Hello! I'm trying to add an arrow animation for my custom attack. I read the help file but I'm not sure what to add to each action sequence. If you can help, that would be great.
MV How to do action sequence with Yanfly's Action Sequence Pack 1?
Javascript/Plugin SupportMoved to: Plugin Support
First of all, there is online Action Sequence Editor online, so you can play around and make something interesting, but since you are using action sequences by Yanfly's and projectile animations are not default MV's feature then you can "pretend" it's archery. I did Action Sequence for my archer's attack like this:
Not much elegant solution, but serves it's purpose to my game design.
Explanation:
Archer goes to front of party, shots an arrow (dummy), delay of 8 frames (wait: 8) imitates flying arrow, after that it hits target with piercing animation, then archer returns to it's original position
Code:
<setup action>
wait: 24
motion chant: user
wait for animation
wait: 10
motion idle: user
move user: point, 720, 333, 50
wait for movement
</setup action>
<target action>
MOTION ATTACK: user
wait for animation
animation 31: target
motion damage: target
wait: 8
action effect
wait for animation
</target action>
<follow action>
wait: 30
perform finish
</follow action>
Not much elegant solution, but serves it's purpose to my game design.
Explanation:
Archer goes to front of party, shots an arrow (dummy), delay of 8 frames (wait: 8) imitates flying arrow, after that it hits target with piercing animation, then archer returns to it's original position
The post I told you about in the thread I told you about has Yanfly's action sequence for a default attack. Presuming you're requiring your character to be equipping a bow weapon to use their Arrow skill, that should do exactly what you want.
You'll just need to enter line returns at the appropriate places, as the formatting is messed up.
You'll just need to enter line returns at the appropriate places, as the formatting is messed up.
That does help but how do I give my character a bow to use in with the arrow attack? If that's possible
Thats the thing, I don't know how to get my character to pull out a bow.
I did what soulrender put down, give or a take a couple of things. How do I get my character to pull out the bow?
I don't know what else to tell you. I told you what to look for, then I linked you to the specific post that has the entire action sequence written out. If your actor has a bow equipped as their weapon, then the command
motion attack: user will show them shooting it.I have
motion attack: user in my set up and my character does have the bow equipped but still won't show my character with a bow. I don't know what's wrong... Is there something I should try or should I ask the forum about this issue?I mean, you are asking the forum. You could start by posting your action sequence and saying what it does show. You've been saying you don't see the bow, but you've never said what's happening instead.
To pull out a bow, your actor must have be able to equip a bow:
and your weapons must be setup in database:
and finally, actor must have equipped bow!
it Must work, because works fine for me:
and your weapons must be setup in database:
and finally, actor must have equipped bow!
it Must work, because works fine for me:
This is my code thus far. what happens is that my character will freeze in her battle stance while the battle animation happens and inflicts the damage.
There are a number of problems with that. Why is there a motion missile in the setup action? Why do you have a motion idle in the setup action?
That doesn't match the attack sequence written by Yanfly that I linked you to...why don't you simply use that?
That doesn't match the attack sequence written by Yanfly that I linked you to...why don't you simply use that?
I did not see that code setup at first, I'm so sorry! I added in the code to my skill but my character still won't do anything, she still stays in her battle stance. And now my animation isn't playing as well, where should I put the
play animation 1code at?Here is my code :
You need to put a new line after "else". But I have no idea otherwise. You should start troubleshooting your plugins, make sure all the Yanfly stuff is in the correct order, turn off all plugins other than what you need for this, etc., because "motion attack" should show them shooting their bow if that's their equipped weapon.
...wherever you want the animation to be displayed? You should, at this point, be able to follow the action sequence line by line and reference the commands with the documentation to see what each step is doing.
If I were to hazard a guess, you might want to replace "attack animation: target", which shows the hit animation defined by the actor's weapon, with "action animation" if animation 1 is what you have defined in the skill. Or call animation 1 directly with the appropriate command.
I added in the animation so thats fixed, plugins are turned off except for the ones that i'm using and the same thing keeps happening. I assume I need to have BattleEngine.js over the action sequence which has been there. I don't know what's not making it work, I added in the the new line for else in case that was what was making it not work.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-do-action-sequence-with-yanflys-action-sequence-pack-1.143147/