YanFly Action Sequence RpgmakerMV

MrHeimer

Veteran
Veteran
Joined
Jul 16, 2020
Messages
44
Reaction score
3
First Language
Français
Primarily Uses
RMMV
Hi all.

I am using this pluggin for make the heros and ennemies moove berfore hit, i just would like to add a condition, because when my heroes are confused, and they attack another hero, the animation gone wrong, i just would like to add something to desactivate it only when the attacker is confused, ( the 0008 effects x on my database).

Here 's the command i use in the note tag attack basic :

<setup action>



display action



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



camera focus: target

zoom: 110%, 20



camera offset: right, 50





else



camera focus: user

zoom: 150%, 20

wait: 20

camera focus: target

zoom: 150%, 20

camera offset: right, 50



end



immortal: targets, true

</setup action>



<target action>



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

move user: targets, front, 20

else

perform start

end





wait for movement

motion attack: user

wait: 10

attack animation: target

wait for animation



action effect

wait for animation

wait for movement

wait: 5



</target action>

Maybe someone know what i have to do to when the attacker 's confused, it desactive that animation and just attack normaly? ( without moove before hit)

Thank's^^
 

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,143
Reaction score
526
First Language
English
Primarily Uses
RMMV
For your if else statement you need to add a condition as to whether the user is confused or not.

user.isStateAffected(Id)

where Id is your confusion state
 

MrHeimer

Veteran
Veteran
Joined
Jul 16, 2020
Messages
44
Reaction score
3
First Language
Français
Primarily Uses
RMMV
For your if else statement you need to add a condition as to whether the user is confused or not.

user.isStateAffected(Id)

where Id is your confusion state
Thank's for your fast answer but i am a noob i havnt wrote this i have found it on internet, where and what i have to write do to add the condition please ? user.isStateAffected(0008)
To told it if the user is user.isStateAffected(0008) so only do a normal attack no mooving before hit? (without mooving just the animation for hit ^^)

Thank's^^
 
Last edited:

MrHeimer

Veteran
Veteran
Joined
Jul 16, 2020
Messages
44
Reaction score
3
First Language
Français
Primarily Uses
RMMV
Someone know about that please ?
 
Last edited:

MrHeimer

Veteran
Veteran
Joined
Jul 16, 2020
Messages
44
Reaction score
3
First Language
Français
Primarily Uses
RMMV
i have tried a lot of stuff since yesterday with user.isStateAffected(0008) but i still didnt arrive to do what i want, it make me crash the game, this is starting to make me crazy :LZSgrin: :/
 
Last edited:

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,143
Reaction score
526
First Language
English
Primarily Uses
RMMV
You would write it like this:


Code:
if user.isStateAffected(8)
do stuff
else
do different stuff
end
it doesn’t read (0008)
It reads (8)
 

MrHeimer

Veteran
Veteran
Joined
Jul 16, 2020
Messages
44
Reaction score
3
First Language
Français
Primarily Uses
RMMV
You would write it like this:


Code:
if user.isStateAffected(8)
do stuff
else
do different stuff
end
Thank's again for your time, but when i put this but it change nothing the animation's still played :/

I just would like to told to the game something like that:
Code:
if user.isStateAffected(8)
do a simply attack
end

else
play the full sequence
end
 
Last edited:

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,143
Reaction score
526
First Language
English
Primarily Uses
RMMV
Thank's again for your time, but when i put this but it change nothing the animation's still played :/

I just would like to told to the game something like that:
Code:
if user.isStateAffected(8)
do a simply attack
end

else
play the full sequence
end
Why don’t you post exactly what’s in the note tag, maybe you’ve got an error
 

MrHeimer

Veteran
Veteran
Joined
Jul 16, 2020
Messages
44
Reaction score
3
First Language
Français
Primarily Uses
RMMV
<setup action>

if user.isStateAffected(8)

action effect

end

</target action>

else



display action





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



camera focus: target

zoom: 110%, 20



camera offset: right, 50





else



camera focus: user

zoom: 150%, 20

wait: 20

camera focus: target

zoom: 150%, 20

camera offset: right, 50



end



immortal: targets, true

</setup action>



<target action>



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

move user: targets, front, 20

else

perform start

end





wait for movement

motion attack: user

wait: 10

attack animation: target

wait for animation



action effect

wait for animation

wait for movement

wait: 5



</target action>



But they are still mooving before attack if they are confuse state :/
 
Last edited:

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,380
Reaction score
1,562
First Language
English
Primarily Uses
RMMV
The only place you're checking for the confusion state is in the setup action, so they are always going to move. You need to check for confusion in the part with the "move user" line.

Also you have a </target action> in the middle of your setup action, which is invalid syntax.
 

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,143
Reaction score
526
First Language
English
Primarily Uses
RMMV
You need to make sure that the if statement goes into the correct place.

<target action>
if user.isStateAffected(8)
put what you would like to happen here if they are confused
else
put what you would like to happen here if they are not confused
end
put what happens either way here, such as playing an animation or action effect
</target action>

You can use more than one if statement by using this:

else if condition

I would suggest watching the tutorial videos on the Yanfly website if you have not already, as well as playing around with the demo project to see exactly what the things in the skill notetags look like during gameplay. There is also this action sequence editor here that you could practice with and see what you're action sequences will look like without having to test play your project a lot. It's pretty good for basic movements.
 

MrHeimer

Veteran
Veteran
Joined
Jul 16, 2020
Messages
44
Reaction score
3
First Language
Français
Primarily Uses
RMMV
Yeahhh it work thank's all,

it work with :


<setup action>







display action







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







camera focus: target



zoom: 110%, 20







camera offset: right, 50











else







camera focus: user



zoom: 150%, 20



wait: 20



camera focus: target



zoom: 150%, 20



camera offset: right, 50







end







immortal: targets, true



</setup action>







<target action>





if user.isStateAffected(8)





else







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



move user: targets, front, 20



else



perform start



end











wait for movement



motion attack: user



wait: 10



attack animation: target



wait for animation







action effect



wait for animation



wait for movement



wait: 5







</target action>


Thank's again now when they are confuse stat they don't moove :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

One 3-day jam and a Game Awards... this month is moving... \o/
Maker-ing has been being the best thing that happened to me this year so far. it is so good to rescue some old skills fo creativity and the people I have met are really incredible. I love my coffelanders and tocudos buddies. Maybe one day I will reach other countries folks too. S2
Well... My game plays better at 1920x1080, so I guess that's the new resolution. Still runs at 60FPS. :LZSexcite: Also... I really want a boss to be able to build new maps around the player... Mostly because it's visually spectacular! I'm er... not quite sure yet how I can do that without making MV explode.... But I'll find a way, anything in service to the "sparkles"! :kaopride:
How to change your netbooks screen resolution

Forum statistics

Threads
100,791
Messages
979,570
Members
132,433
Latest member
as00
Top