I have trouble making a battle tutorial...

Hello again,

this feels like it should have been so easy to make yet I have difficulties.
My problem is, the event processing is not waiting for the player to choose a command but skips this entirely
and goes to the next page. This is what I tried to do:

1744975267384.png

1744975292927.png

1744975369150.png

etc.

But after page 1 is done, page 2 does not allow for the player to do anything then it goes to page 3 which gets skipped since the player didn't get a chance to attack hence the enemy is at full HP and the condition for the page isn't met.

After all the 9 pages speed through, then the player can attack.
I tried to find an option like: wait for input but this doesn't exist, so how would I go about this?

Thanks in advance as always!
you failed to understand the battle sequence.

skill selection and skill execution are two different parts of the sequence, and the troop events are always processed on skill execution, never on skill selection.

that said, nothing in there should stop the player from selecting commands or using items in the selection phase. so if that is skipped, then something else is interfering as well.
you failed to understand the battle sequence.

skill selection and skill execution are two different parts of the sequence, and the troop events are always processed on skill execution, never on skill selection.

that said, nothing in there should stop the player from selecting commands or using items in the selection phase. so if that is skipped, then something else is interfering as well.
When is the selection phase? Page 2 for example?
as I already said, the selection phase is outside the scope of the events - you CANNOT have an event run or trigger on selection.

what you can do is have a troop event on turn 0 (before everything) give instructions and apply a state that seals unwanted skills, then have the player make the selection for turn 1, and then run an event on the execution of turn 1 that sets different state for the turn 2 selection and so on.

as such your second troop event is useless because it doesn't do anything at all.


And sealing skills by state is a much better way than removing them with the change skill command for a lot of reasons. For example removing attack and/or guard is useless because the two buttons are hardcoded overrides that are always available.
And some battle plugins do not update the battlers on changes to the actor data, so it is not clear if those commands even take effect. The states however will work in battle.
you just need to make the states sealing the skills to have a duration of 2 because the first turn is the current turn, and they need to be there for effects on the selection phase of the next turn.

But again, you need to find out why the selection phase is skipped because the troop events above cannot do this.
as I already said, the selection phase is outside the scope of the events - you CANNOT have an event run or trigger on selection.

what you can do is have a troop event on turn 0 (before everything) give instructions and apply a state that seals unwanted skills, then have the player make the selection for turn 1, and then run an event on the execution of turn 1 that sets different state for the turn 2 selection and so on.

as such your second troop event is useless because it doesn't do anything at all.


And sealing skills by state is a much better way than removing them with the change skill command for a lot of reasons. For example removing attack and/or guard is useless because the two buttons are hardcoded overrides that are always available.
And some battle plugins do not update the battlers on changes to the actor data, so it is not clear if those commands even take effect. The states however will work in battle.
you just need to make the states sealing the skills to have a duration of 2 because the first turn is the current turn, and they need to be there for effects on the selection phase of the next turn.

But again, you need to find out why the selection phase is skipped because the troop events above cannot do this.
I am sorry I really have trouble understanding what to do.

Right now I do have a troop event on turn 0 which gives instructions before everything else and I added a state like you mentioned but the player turn gets skipped.

I don't have a way to figure out why since this game is basically 3 maps long and has like 3 events running I did nothing to make the game skip the player. I doubt it's a certain plugin unless it has to do with the battle ticks or something.

I can't even find a guide online with examples, like I see posts from other people over the years but not a single guide on any site ;_;
but the player turn gets skipped.
and I already said that this has nothing to do with your troop events, but is caused by something else.
and no matter what, you need to find out why.

how did you start the battle? it is by battletest, by an event in a new playtest or an event after loading a saved game?
please post a screenshot of your plugin manager with all your plugins and their order - because yes, a wrong order of plugins has caused problems before, especially with yanfly plugins who can react very strangely to a wrong order.
Have you changed the state #1 or modified the skill lists anywhere?
what is the setting for the battle in the database/system tab?
and I already said that this has nothing to do with your troop events, but is caused by something else.
and no matter what, you need to find out why.

how did you start the battle? it is by battletest, by an event in a new playtest or an event after loading a saved game?
please post a screenshot of your plugin manager with all your plugins and their order - because yes, a wrong order of plugins has caused problems before, especially with yanfly plugins who can react very strangely to a wrong order.
Have you changed the state #1 or modified the skill lists anywhere?
what is the setting for the battle in the database/system tab?
I started it in all of the above. I did try the battletest first wasn't working, I tried in a new playtest wasn't working, even event after loading a saved game and again it wasn't loading.

1744989741716.png

1744989774425.png


1744989805210.png


I didn't modify state 1 or any of these skills.

Not sure I understand the question, in the database/system tab I see only 1 battle relevant option which is to have a side view battle or not, which I have enabled. Or did you mean something else maybe?

I did find a way to get it to work, I created 3 switches, 4 battle troops with the same enemy and i am aborting the battle each time with a new switch opening up and processing a new battle.
A bit annoying cause the player basically gets thrown into a "new" battle again to choose one command and then the battle get's aborted.

I don't think it's possible to have all these take place in one battle through eventing, the engine skips the event pages. Quite unfortunate.

Regardless thank you very much for trying to help my incompetent self 🙁
I started it in all of the above. I did try the battletest first wasn't working, I tried in a new playtest wasn't working, even event after loading a saved game and again it wasn't loading.

First thing to do is change the order of your plugins. The Yanfly plugins should be in the order listed here: http://www.yanfly.moe/wiki/Yanfly_Engine_Plugins

And for testing purposes, you can just turn all your plugins off and see if things work as expected. If they do, you'll know it's a plugin causing your issues and can work on narrowing down which one.
As I already mentioned above the yanfly plugins can cause strange errors if installed in the wrong order - and your order of them is a mess. Please follow the advice of the poster above to re-sort them.

Please be aware that resorting them will make all previous saves incompatible, you'll have to start a new playtest after that.

Another question: which troop did you define as the base troop for the base troop events?
and which events are in that troop?
Because if I had known that you use that plugin, I would have asked for that info long ago as it could cause such problems as well if there are conflicting troop events.

Original thread: https://forums.rpgmakerweb.com/threads/i-have-trouble-making-a-battle-tutorial.177040/