Calling a Common Event faster

I'm working on an input-based magic system, like the Blitz command in Final Fantasy 6. It works pretty well but it has some timing issues.

For that I display an "Incant" command in Battle :

1727003197101.png


Incant is a skill. It does nothing except calling a Common Event "InputListener" that waits for inputs.

My problem is : when "Incant" is selected, there's a whole half-second of delay until InputListener is actually playing. I suppose that's the delay RM needs to find and play InputListener.
But that would cause the game to lose the player's first inputs since visually, it seems to be waiting.

Here's a short video where the InputListener begins with a tint effect, so we can visualize when it's called :

1727004906495.png




I tried different Skills settings, tried to call Incant like a classic magic Skill... it's still too slow.

My goal here would be the tint effect to happen as soon as "Incant" is selected. Is this possible?
I suppose that's the delay RM needs to find and play InputListener.
by default, common events are one of the last things to be processed when using an action. if the skill is calling the common event the normal way, it would be your cause. you might need something like the visustella action sequences plugin to make sure it runs near the start
by default, common events are one of the last things to be processed when using an action. if the skill is calling the common event the normal way, it would be your cause. you might need something like the visustella action sequences plugin to make sure it runs near the start
Thanks for the tip, I'll look into it

After checking, VisuStella's Action sequence doesn't seem to be the answer :
  • the command is mostly used for visual or battle effects
  • since it is called from a Common Event, it is already too late in the sequence
I'm still searching though
Still looking.

I've asked ChatGPT, it mentioned $gameTemp.reserveCommonEvent() to call my InputListener sooner. I gave it a try but it didn't seem to affect anything.

Would anyone know if this is a lead or am I just wasting my time?
I've asked ChatGPT...am I just wasting my time?
Yes. Trying to get correct, technical, coding information from ChatGPT is always wasting your time.

Your post about why Action Sequences doesn't work doesn't make sense to me.
The Action Sequences are called from a plugin command inside a Common Event.

The issue is Common Events are called a bit too late during the battle flow (there's a half second between the moment I hit "Incant" and the moment the Common Event is actually playing.)

If there's another way to call the Sequence I haven't find one in the plugin documentation.

edit : even if I did, I don't see which Action Sequence command would speed the process up.
The Action Sequences are called from a plugin command inside a Common Event.

The issue is Common Events are called a bit too late during the battle flow
Did you actually try it? Because that's not how action sequences work.

Even though their commands are stored within a common event, it does not run when a common event attached to the Effects of a skill would run.

The action sequence event completely replaces the original execution of the skill.

You may also want to browse VisuStella's various battle system plugins, I'm pretty sure they have an existing input combo system to do all of this for you.
I did try it by adding that command at the start of the Event. The delay is the same.

1727720256231.png
Bump. Still looking.

I tried some Action Sequences but I don't understand which one could help in that case.

Someone asked the same question on Reddit but the answer was for MV and the Yanfly Action Sequences sadly.
I did try it by adding that command at the start of the Event. The delay is the same.
I haven't used Visustella myself, but that is the wrong way to go about it.

The common event you want to call that way must not be attached to a skill, but be called by the action sequence plugin command of said skill.

IIrc In the yanfly plugins of MV that were the origin of the Visustella plugins there was an action command that called a common event by ID, you'll have to look how that was implemented in Visustella
Maybe I'm missing something, I don't see how to call an Action Sequence command outside of an event.

Right now the skill looks like this.
1732002953223.png
The common event you want to call that way must not be attached to a skill, but be called by the action sequence plugin command of said skill.
that is how you set them up with Visustella.

instead of notetags in the skill for the action phases like in Yanfly's, you create a common event to structure the skill, use a notetag to tell the game that the skill should refer to the common event inside its effects at execution, and within that common event youre allowed to also place standard event commands.
this is a slightly modiied version of an action sequence provided by the visustella sample project where i just start it with a show text command

1732002638880.png


1732002651891.png


the actual execution doesnt seem immediately begin after selecting the target. theres a few frames of a forced backstep movement and waiting for the UI to finish shifting before it starts performing the action sequence - which is what i believe OP is referring to
VS.gif


EDIT: I posted before reloading the page and didnt see your post @pVial . the delay you mention is still present when you do it the way the help document mentions, right? not using the common event tag?
1732004571444.png
Hi @Robro33, thanks for the detailed explanation! Yes, this is the delay I'm referring to (not the execution order.)

I tried both, calling the Skill in the "Effects" menu and using the NoteTags. Both display similar results.

Original thread: https://forums.rpgmakerweb.com/threads/calling-a-common-event-faster.172076/