Common event Priority (Skills)

Hello!

I put a common event in a skill. the common event shows an animation but the game processes the common event as the last thing, so it's a bit weird to see the animation after the damage to the enemy has been done, is there any way to give absolute priority to the common event?
even that wouldn't work because all common events are processed after all the actions in a battleturn by default.

what you need is a battlesystem that allows for action sequences (like yanfly's), and then use the action sequences to specify the time when a common event should be executed.
Ok thank you. But I can't still understand how to set the common event during the middle of an action...
Schermata 2024-06-03 alle 16.19.35.png
there is a command that needs to be placed inside the action sequece.
read through the entire command list instead of only the feature summary
Yep, you can run a common event during an action sequence only via the action sequence plugins by using common event: x wherever you need it.

(If all it does is play an animation tho, I figure you could just use a regular animation x: target command instead.)
But I can't still understand how to set the common event during the middle of an action...
Move your highlighting cursor up - "with proper placing of action sequence tags."

So you'd read the instructions for action sequences.

Or, as @SGHarlekin suggests, if the only thing you're trying to do is add another animation, that's probably much more easily done via a Yanfly's Skill Core notetag instead of using action sequences at all.
Ok, thank you guys
Or, as @SGHarlekin suggests, if the only thing you're trying to do is add another animation, that's probably much more easily done via a Yanfly's Skill Core notetag instead of using action sequences at all.
How can I achieve this? if you don't mind me asking.
It shouldn't be hard. You'd read the instructions for Skill Core to see what the notetags are and which one you want to use; then you Google the script call for playing an animation and put it into that notetag.

If you try something and it doesn't work, post the code here and ask for help.
Mmmh, I tried this but it doesn't work. Any other ideas?

<Pre-Damage Eval>
$data_skills[041].animation_idSKILL_ID
</Pre-Damage Eval>
How did you get that code? That is nothing close to the script call for playing an animation. It's not even particularly close to JavaScript syntax 😛

From the pinned thread of MV script calls:
1717438348784.png


I don't know whether you're trying to play the animation on the attacker or the target, or what the animation ID is, but:
Code:
target.startAnimation(42);
to play animation ID 42 on the target. If it's directional and you want it to be mirrored, you make it 42, true inside of the parentheses.

Your prior line of code...kind of? looks like you're trying to play the animation that's assigned to the skill in the database. I don't understand why you'd want to do that, since it plays automatically when you use the skill.
How did you get that code? That is nothing close to the script call for playing an animation. It's not even particularly close to JavaScript syntax 😛
I'm dump *facepalm*. Thank you I'm gonna try the new script.
I don't understand why you'd want to do that, since it plays automatically when you use the skill.
It's a long story. - It's probably because I'm a bad """programmer""" (I'm using rpg maker mv because it's more accessible) and I did a lot of weird things.
But, you know, I just want to make a video game! But yeah, probably a programmer or someone who knows these things could have made the game waaay better. ¯\_(ツ)_/¯
How did you get that code? That is nothing close to the script call for playing an animation. It's not even particularly close to JavaScript syntax 😛

From the pinned thread of MV script calls:
View attachment 307286

I don't know whether you're trying to play the animation on the attacker or the target, or what the animation ID is, but:
Code:
target.startAnimation(42);
to play animation ID 42 on the target. If it's directional and you want it to be mirrored, you make it 42, true inside of the parentheses.

Your prior line of code...kind of? looks like you're trying to play the animation that's assigned to the skill in the database. I don't understand why you'd want to do that, since it plays automatically when you use the skill.
Okay, I think it works, I can hear the sound of the animation. But I need the script not to be “target.start...” but directly “all enemis”. I tried these, but they don't work :/

enemies.startAnimation(23);
AllenEmies.startAnimation(23);
I tried these, but they don't work :/
Okay...friendliest advice...this is the second time you've done this just inside this thread (I'm not going to go searching through your other threads or anything).

There is no point in guessing with code. Programming languages require specific syntax and spelling to work, so if you don't know what you're doing you should either look it up or ask. Guessing only wastes your time.

AllenEmies.startAnimation(23);
Especially something like this...like, this isn't even words, why would it work?

Code:
$gameTroop.aliveMembers().forEach(enemy => enemy.startAnimation(23));
Okay...friendliest advice...this is the second time you've done this just inside this thread (I'm not going to go searching through your other threads or anything).

There is no point in guessing with code. Programming languages require specific syntax and spelling to work, so if you don't know what you're doing you should either look it up or ask. Guessing only wastes your time.


Especially something like this...like, this isn't even words, why would it work?

Code:
$gameTroop.aliveMembers().forEach(enemy => enemy.startAnimation(23));
ok thank you very much, I'm sorry to have bothered you

AllenEmies.startAnimation(23);
Sorry I meant "AllEnemies.startAnimation(23);", I misspelled.
ok thank you very much, I'm sorry to have bothered you
It's not about bothering me - as I said in my post, you're wasting your own time trying things that can't work. It makes more sense to spend that time either Googling for threads where people have done something similar; or ask the question, wait for a response, and work on something else in the meantime.

Sorry I meant "AllEnemies.startAnimation(23);", I misspelled.
Again - not similar to anything in MV's code 😉 And even if you don't know how to read the code or write JavaScript, there's no way you actually looked up something that said it worked and looked like that.

Anyhow, the code I gave you above should do exactly what you want - good luck with your project.
It's not about bothering me - as I said in my post, you're wasting your own time trying things that can't work. It makes more sense to spend that time either Googling for threads where people have done something similar; or ask the question, wait for a response, and work on something else in the meantime.


Again - not similar to anything in MV's code 😉 And even if you don't know how to read the code or write JavaScript, there's no way you actually looked up something that said it worked and looked like that.

Anyhow, the code I gave you above should do exactly what you want - good luck with your project.
Thank you! :3

Original thread: https://forums.rpgmakerweb.com/threads/common-event-priority-skills.169219/