Pre-made (Yanfly's) Action Sequence Sharing and Discussions

Hello,


I was hoping to get some help, with an action sequence:


Hidden Content


this sequence is suppose to check if the user has a bow, and if it doesn't it just goes up to the opponent and attacks. However for some reason if an actor who is not equipped with a weapon at all does it the game crashes. Anyone know how I can correct it?

Try using


if user.attackMotion() !== 'missile'


<insert sequence>


else
Hey guys. Firstly thanks for this thread it's really helpful. But I have a bit of a problem with my "Attack" skill.


As I have a character that has a gun I'd like his attack to work differently to the other actors i have. So basically every moves to the enemy, swings and then moves back. I'd like my gun wielder to just step forward and "swing/shoot" rather than moving to the enemy. Is it possible to set up 1 skill that reacts differently for different characters/weapons?


Any assistance on this matter would be very much appreciated.

(IGNORE)


It sounds like you want the attack sequence Yanfly posted, there's a link to that up top. Otherwise, If you want to use the same skill with different effects for each actor using it (this is what you said at the bottom) then an if/else statement is the way to go. From what I understand, it would look something like this:


if user() === character x


<sequence>


else


(incorrect)
I'm not sure if someone's already posted a thing like this, but I built a dual wield skill that swings both weapons, independent of one another's attack power. It attacks once with each weapon.

Code:
<target action>
EVAL: user._weap1 = user.equips()[0];
EVAL: user._weap2 = user.equips()[1];
EVAL: user.forceChangeEquip(1, null);

MOTION ATTACK: user
MOTION WAIT: user
action animation
wait for animation
action effect

EVAL: user.forceChangeEquip(0, user._weap2);

MOTION ATTACK: user
MOTION WAIT: user
action animation
wait for animation
action effect

EVAL: user.forceChangeEquip(0,  user._weap1);
EVAL: user.forceChangeEquip(1, user._weap2);
</target action>

Easy to use it as a weapon unleash for dual-wieldable weapons.
Try using


if user.attackMotion() !== 'missile'


<insert sequence>


else

That worked! Thank you! <3 <3 <3
When the attack ends my character, I get this.


I need help please

paraayudaYEP.png
<setup action>


immortal: targets true


animation 120: user


camera focus: user, center, 5


zoom: 125%, 5


wait for zoom


wait for animation


reset zoom: 5


reset camera: 5


wait for zoom


wait for camera


</setup action>


<Target Action>


move user: target, front head, 4


animation 9: target


wait for animation


death break


wait for movement


face user: target


motion swing: user


action animation


action effect


wait: 3


move user: target, back base, 4


animation 9: target


wait for animation


death break


wait for movement


face user: target


motion swing: user


action effect


wait: 3


move user: target, back center, 1


animation 9: target


wait for animation


death break


wait for movement


face user: target


move user: target, front head, 4


animation 9: target


wait for animation


wait for movement


face user: target


motion swing: user


action effect


wait: 3


move user: target, back head, 1


animation 9: target


wait for animation


wait for movement


face user: target


move user: target, front base, 4


animation 9: target


wait for animation


wait for movement


face user: target


motion swing: user


action effect


wait: 3


move user: target, back center, 4


animation 9: target


wait for animation


wait for movement


face user: target


motion swing: user


action effect


wait: 3


move user: target, front center, 1


animation 9: target


wait for animation


wait for movement


face user: target


wait: 10


move user: target, back center, 4


animation 9: target


wait for animation


wait for movement


face user: target


action effect


wait: 5


</Target Action>


I have this sequence, but does not change the next enemy to die, still banging anything


I can do that at death an enemy but you keep hitting another living enemy?
Here is an interesting one.

Is it possible to use this script to determine whether attack will be successful or not?


Here's what I'd like. For Floating enemies I want my Gunner to be super effective at hitting it, but all other Melee characters (With the exception of Magic use which is 100% hit rate) only have a 50% chance at actually hitting the enemy... Because it's flying!


It this possible or would I need another script for this? If so any suggestions?
Here is an interesting one.

Is it possible to use this script to determine whether attack will be successful or not?


Here's what I'd like. For Floating enemies I want my Gunner to be super effective at hitting it, but all other Melee characters (With the exception of Magic use which is 100% hit rate) only have a 50% chance at actually hitting the enemy... Because it's flying!


It this possible or would I need another script for this? If so any suggestions?



If you're using fixed 50% or 100% chance, you can just give enemies that's flying a 'Float' state. Then in your action sequence, you can use if...else...end to check for the state and hit with 50% chance/100% chance (using the randomInt function).
If you're using fixed 50% or 100% chance, you can just give enemies that's flying a 'Float' state. Then in your action sequence, you can use if...else...end to check for the state and hit with 50% chance/100% chance (using the randomInt function).

Thanks @Riff,


Any chance anyone could give me an example of the notetag i'd use?


<setup action>
display action
immortal: targets, true
</setup action>

<target action>
if user.attackMotion() !== 'missile'
move user: targets, front, 20
else
perform start
if (targets.isStateAffected(31)) // Float State!
//Hit Rate = 95% - How do I reference Hit Rate?
else
//Hit Rate = 45%
end
end
wait for movement
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
</target action>


I'm not sure if this is set up correctly. If Statements are confusing to me!
Hi Guys,


im using this as an guard replacement


<setup action>   <---- thx for that i did not see that ^^'


perform start


move user: FORWARD, 48, 12


wait: 5


</setup action>


<target action>


MOTION THRUST: user, NO WEAPON


wait: 30


action effect


animation 1: target


wait: 5


<\target action>


<finish action>


move user: HOME, 12


face user: FORWARD


wait: 5


perform finish


</finish action>


and my problem is that the weapon is showen due to "no weapon" command.


And the actors don't step forward as the usually do, anyone ideas? 
Thanks @Riff,


Any chance anyone could give me an example of the notetag i'd use?



<setup action>
display action
immortal: targets, true
</setup action>

<target action>
if user.attackMotion() !== 'missile'
move user: targets, front, 20
else
perform start
if (targets.isStateAffected(31)) // Float State!
//Hit Rate = 95% - How do I reference Hit Rate?
else
//Hit Rate = 45%
end
end
wait for movement
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
</target action>


I'm not sure if this is set up correctly. If Statements are confusing to me!



Ok so after a bit of help from a guy via private messaging I've come up with this, no error, but doesn't give the result either.


<setup action>
display action
immortal: targets, true
</setup action>

<target action>
if user.attackMotion() !== 'missile'
move user: targets, front, 20
if (target.isStateAffected(31))
{ actor.setHit(0.00000001); }
else { actor.setHit(1.00); }
else if (target.isStateAffected(31))
{ actor.setHit(0.00000001); }
else { actor.setHit(0.95); }
perform start
end
wait for movement
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
death break
immortal: targets, false
</target action>


Can anyone see where i'm going wrong? (I don't actually want figures to be that low, I just set them that low for an extreme case so i know for sure if it's working or not). I am using Yanfly's ExtraParamFormula script.
Does anyone know how to animate the skill that starts at 3:32? I have tried, and tried, but don't know how to do so.
After much time with my good old friends "Trial and Error" trying to get my Attack skill to recognise an enemy as "Floating" and then have everyone's hit rate lowered by 50% except for my gunner who will remain at 95% Hit rate on them... I think I finally figured it out. Here it is, in the hope that it will help someone out:


<setup action>
display action
immortal: targets, true
</setup action>

<target action>
if user.attackMotion() !== 'missile'
move user: targets, front, 20
if target.isStateAffected(31)
add state 33: user
else
end
wait for movement
motion attack: user
wait: 10
attack animation: target
wait for animation
action effect
death break
immortal: targets, false
remove state 33: user
</target action>


State 33 in my database is called "Vs Floating" which is a state that inflicts "Hit Rate -50%". It is added to your actor if they are not using a missile and if the enemy is floating. This formula also maintains the action of melee attacks moving to the target to perform their attack.


Hope this helps //rmwforums.s3.amazonaws.com/emoticons/default_smile.gif 
Does anyone know how to animate the skill that starts at 3:32? I have tried, and tried, but don't know how to do so.



your own request also would serve to me !!!
your own request also would serve to me !!!




Does anyone know how to animate the skill that starts at 3:32? I have tried, and tried, but don't know how to do so.


<target action>


CAMERA CLAMP OFF


move user: target, front base, 12


camera focus: user


zoom: 150%


tint screen: 150, 50, 150, 0, 30


wait: 30


opacity all allies: 0%


wait for movement


wait: 30


action animation: target


wait: 10


action effect


wait: 30


action effect


wait: 30


action effect


wait: 30


action effect


wait for effect


opacity all allies: 100%


tint screen: normal, 30


jump user: 100%


reset camera


reset zoom


CAMERA CLAMP ON


<\target action>



Ok this should work, the only thing I couldn't get right was the jump at the end so you are free to remove it.


Well the color is also off but that's because I don't know wich color Yanlfy used so //rmwforums.s3.amazonaws.com/emoticons/default_tongue.gif
Does this plugin not work with front view battle system? I can't seem to get it to work, all I want it to do is zoom in on player attacks. This is the note tag I've been using


<setup action>


CAMERA FOCUS: target, CENTER, 40


zoom: 150%, 30


</setup action>
How would I go about having an action's damage/etc performed before the animation plays?
How would I go about having an action's damage/etc performed before the animation plays?

In the sequence, have these lines in his order:


action effect


action animation


Put those lines where you want them in the sequence.
Ne question guys. Hope someone can help with it.


I wont show the animation 122 on target when the skill misses. How can i do that?


<setup action>


display action


perform start


move user: FORWARD, 48, 12


wait: 5


</setup action>


<target action>


MOTION ATTACK: user


wait: 30


action effect


animation 122: target


wait: 5


<\target action>


<finish action>


move user: HOME, 12


face user: FORWARD


clear battle log


wait: 5


perform finish


</finish action>
I've spent a lot of time trying to figure out something pretty simple with no luck.


All I want is a skill to show a certain weapon and attack stance. Nothing fancy. I've found a few scripts in this thread that are supposed to do this. No matter what I try the actor performing the skill will do casting stance and animation then do the attack twice. On the second attack the actor holds the correct weapon but has the wrong stance. I can't figure out why the attack gets performed twice and in different ways.


I assume the first attack with the casting animation is how it should look by default and the second is my scripted attack. I don't know how to void the original attack and just use the scripted one. I figured such a simple script would be easier to find or maybe I'm just missing something.


Basically I want a skill attack to look just like a normal attack where the actor shows their weapon, attacks and moves back. I don't want the casting animation.

Original thread: https://forums.rpgmakerweb.com/threads/pre-made-yanflys-action-sequence-sharing-and-discussions.46691/