MV YAN FLY BATTLE PLUGINS How to ADD a Common Event on a skill?

Hi, I am new to the RPG MAKER MV and I am making a game. I used to make my games on RPG MAKER XP but never scripted anything. Today, I only know how to make the plugins work. Or I try....

I am using the free YEP PLUGINS including the battle plugins. I want to add a video before my character casts a spell, and then after the video the character finally casts the spell.

Well, I can't even make a skill call a Common Event with a simple text. Nothing Happens at all, I tried.

I don't know what I might be doing wrong. Can anyone help me with this thread? Thanks in advance it would be such an amazing help for my project.

Wish you all the best!
Have you tried using the default Common Event command in the skill database?
If the default command has the right timing, you don't have to do anything else. However, if you do script several other steps then there might be a conflict between the call and the script.
I mean, I have to write a command on the skill note tag, that calls the common event.
how would I do that?
@DiogoAsgard No, you don't have to do anything with the notetag.

bandicam 2023-07-03 14-35-54-020.png


Just try to see if this does anything.
@DiogoAsgard No, you don't have to do anything with the notetag.

View attachment 268102

Just try to see if this does anything.
Well, we had some progress now thanks to you. but the event is coming after the attack. I wish that the event came before the attack, right on the beggining of the turn of that character.

In other words, doing this way the event is called after the attack is done. I need it to happen before the attack.
In the PLUGIN there are command lines so we can do this, call the event before attack
can anyone tell me how is the right way to put it on the note tag?
1688417173797.png
Well, there you go. You put in
Code:
action common event

and it fires off the Common Event tied to the skill, as noted above. In theory.
action common event
Thanks for the answer but Unfortunately nothing happened. I did this now. It didn't work.
I think it has something to do with <before value> after value or something...:aswt2:
Can you post the whole note?
Just a few things for clarification:

The action sequence command described in post #7 calls the common event attached like in post #5

It is absolutely impossible to call a common event by a javascript command, because such a command does not exist - the only javascript command is to "reserve the common event" for a later execution at a different time when the engine is ready for that.
There you go the notes of the PLUGIN.
On the skill notetag I only put action common event nothing more.

and thanks for trying to help me!

1688421603700.png


1688421632737.png


1688421683246.png


1688421728731.png
Just a few things for clarification:

The action sequence command described in post #7 calls the common event attached like in post #5

It is absolutely impossible to call a common event by a javascript command, because such a command does not exist - the only javascript command is to "reserve the common event" for a later execution at a different time when the engine is ready for that.
So, I can't call a common event right after I select a skill? even before the character attacks?
On THIS THREAD the guy made it on RPG MAKER VX ACE: https://forums.rpgmakerweb.com/index.php?threads/solved-a-video-playing-when-using-skills.15967/

But it's different now. I saw some people that made with YAN PLUGINS that I have
So, I can't call a common event right after I select a skill? even before the character attacks?
you can theoretically - but it needs to be done correctly.

and you were NOT asked for a screenshot of the plugin help.
you were asked for a screenshot of your skill, showing both the notefield of your skill as well as the attached common event and the other database skill info about it.

we cannot find the mistakes you made if you do not show us what you have done.
you can theoretically - but it needs to be done correctly.

and you were NOT asked for a screenshot of the plugin help.
you were asked for a screenshot of your skill, showing both the notefield of your skill as well as the attached common event and the other database skill info about it.

we cannot find the mistakes you made if you do not show us what you have done.
My bad! Here goes my skill at the moment is like this:

1688423193573.png
and it shows both mistakes you made:

1) there is no common event attached, so the plugin does not know which common event to process
2) you did NOT write a correct notetag action sequence
A correct notetag would be for example
<SETUP ACTION>
action common event
</SETUP ACTION>

depending on when you want that common event handled - during setup, during target action or whenever
Go and read the plugin help carefully and follow its instructions. An action sequence doesn't just magically happen because you put a random command in your notebox.

A properly set up action sequence note tag requires
<setup action>
</setup action>

<target action>
</target action>

<finish action>
</finish action>

You can call any common event with the common event: x tag, but you need to set up the syntax correctly for it to work.
Thanks Guys, I will try again with your help and then I'll come back to tell you if I could make it.
Thank you for your time
GUYS! With your help I could make it. Thank you so much for teaching me, for the patience. I see it's basic and I am very happy that you guys helped me with this. And I learned some more.

When my game gets done I'll let you know!
Thanks a lot guys! Sincerely!

SGHarlekin,​

Andar​

Thanks guys you solved the thread!

THE SKILL
1688427547206.png


THE COMMON EVENT
PLay Video,
Force action: skill
erase event
1688427731240.png

Original thread: https://forums.rpgmakerweb.com/threads/yan-fly-battle-plugins-how-to-add-a-common-event-on-a-skill.158924/