MV Custom Timing Effects doesn't work

Hello everyone,

I try to run a common event after one battler's turn. I used the plugin Yanfly buffs&state core and put this code in the notetag :


<No Breathing>

<Custom Turn End Effect>
interpreter._params = [14];
interpreter.command117();
</Custom Turn End Effect>


But it doesn't work. The battler doesn't breathe, so the first line worked. I tried other things to put in the box for Custom Turn End Effect but none of them worked. I obviously checked if my plugin was active and yes it was.

What should I do ? Thank you so much for your answers.
first, the custom turn end is wrong as second, it doesn't breathe
because of the notetag you set on top which says "NO BREATHING"
so any effect to it will be ignored.
there is no "Interpreter" within the scope of that notetag.
try
Code:
<Custom Turn End Effect>
$gameTemp.reserveCommonEvent(14);
</Custom Turn End Effect>
instead
Thank you for your answers !
first, the custom turn end is wrong as second, it doesn't breathe
because of the notetag you set on top which says "NO BREATHING"
so any effect to it will be ignored.
I tried without, it doesn't work either.
there is no "Interpreter" within the scope of that notetag.
try
Code:
<Custom Turn End Effect>
$gameTemp.reserveCommonEvent(14);
</Custom Turn End Effect>
instead
Already tried also, doesn't work.
Already tried also, doesn't work.
just making sure. you saved the project and youre not loading an old save when your testing this, right? plugin and notebox changes arent saved until you save the project and should not be tested on old saves.

what is the common event supposed to do?
just making sure. you saved the project and youre not loading an old save when your testing this, right? plugin and notebox changes arent saved until you save the project and should not be tested on old saves.

what is the common event supposed to do?
Yes I saved the project !

For now, the event should remove states, but to debug I made it also show a text "a". The text doesn't show and the states are not removed so I assumed it wasn't working.
can you provide a screenshot of your plugin manager? ive confirmed that it works on my end.

also
For now, the event should remove states
if state removal is all it should do, you could just use the script call to remove the states.
can you provide a screenshot of your plugin manager? ive confirmed that it works on my end.

also

if state removal is all it should do, you could just use the script call to remove the states.

For the confirmation that the plugin is active
rprnQt6.png

And it's a little bit complicated to remove the states with the script because there are a LOT of conditional branches :
KijgRe7.png

(sorry, it's in french)
For the confirmation that the plugin is active
the reason i asked was to confirm the plugin load order. Yanfly's plugins produce unexpected problems when theyre loaded in a bad order. organize them in the same order as they appear here, save the project, and test the state once more

the reason i asked was to confirm the plugin load order. Yanfly's plugins produce unexpected problems when theyre loaded in a bad order. organize them in the same order as they appear here, save the project, and test the state once more

I finished organizing them, saved the game, test the code again and it still doesn't work

Now it looks like this :

Capture d’écran 2024-11-16 180246.png
two things to confirm then before anything else then.
is the battle engine's battle system parameter is set to CTB, and when you open up the core.js file in your js folder, does it say version 1.6.2?

if those are fine, then lets try a different approach. disable all your plugins except yanfly's battle engine core and buffs & states, make sure the battle engine is set to dtb after that, save the project, and test the state.
two things to confirm then before anything else then.
is the battle engine's battle system parameter is set to CTB, and when you open up the core.js file in your js folder, does it say version 1.6.2?

if those are fine, then lets try a different approach. disable all your plugins except yanfly's battle engine core and buffs & states, make sure the battle engine is set to dtb after that, save the project, and test the state.
I want to die. I did all the things you said to me but none of them worked...

The battle engine's battle system parameter was CTB
The version was 1.6.2
I disabled all plugins except battle engine core and buffs & states but it was still not working...

Okay, I tried something and I think I was just using the wrong plugin.

The plugin is for the STATES and not for battlers.

So, I put the lines on a random state used during battle and here it worked.

The thing is, is there a plugin that I can use to trigger a common event after each end of a battler's turn then ?
lets try the most simple call (if the state is active at all!)

Code:
<Custom Turn End Effect>
console.log("Turn end");
</Custom Turn End Effect>

and check the console log or use

Code:
<Custom Turn End Effect>
alert("Turn end");
</Custom Turn End Effect>

which give you a prompt of the message, see if that is executed at all.
The thing is, is there a plugin that I can use to trigger a common event after each end of a battler's turn then ?
use yanfly's autopassive plugin to turn that state into a passive effect and then give that passive to the actor its supposed to be on.

other than that, youd be using a troop event to play it at the end of every turn
use yanfly's autopassive plugin to turn that state into a passive effect and then give that passive to the actor its supposed to be on.

other than that, youd be using a troop event to play it at the end of every turn
Yes it worked !!

Omg thank you you made my day <333

Original thread: https://forums.rpgmakerweb.com/threads/custom-timing-effects-doesnt-work.173258/