MV Issues with Level Up Event plugin

Hello there! I'm here once again with another fun problem. Basically, I need a level up event to show choices for picking what skill the player wants to learn. I used variables to set the level requirement and turned the Even Queue plugin on since it was recommended. It was working fine until I noticed the event looped 4 times. I messed with the event code, with switches and stuff to not make it so, but I ended up realizing that it was the Event Queue plugin messing me up, since it only repeated itself 4 times: exactly the amount of levels I had gained. I turn the plugin off... and now the event itself won't run (I still have the other one on, but I have no idea why or how this is happening)
we cannot tell you what you did wrong without seeing what you did.

or in other words: screenshots of your event pages, a link to the plugins used and a screenshot of how you configured them.
Ah, I should have figured. I'm sorry. Here's everything
Links:
https://himeworks.com/2015/10/common-event-queue-mv/
The plugins themselves don't need that much configuring, especially the event queue one. The level up event one does require you to set in the actor notes what common event you're using. Attached are the images of the event contents and the actor showing the level up event. I know it's a lot, but I saw no other way around it for the event to behave as I wanted it to. Thank you in advance. While taking the screencaps I also realized there was some leftover from when I tried to use switches to end the looping, namely the jumping to 'End 1' label. But that label was deleted so it shouldn't have any effect
But that label was deleted so it shouldn't have any effect
wrong - the command has to go somewhere, and having the label deleted makes the command into a "jump to undefined".
There should be a security check that aborts the command in case of an undefined, but you should not assume that automatically, especially if the event suddenly starts to behave strangely.

However, I suspect the true culprit is a combination of two other mistakes you made.

1) you messed up your indentions somewhere.
Several event commands have multiple sections, and the RM uses indentions to signal from where to where they go. the logic structure you need is rather simple and flat, with the level check the top layer, the skill choice the second layer and the confirmation the third and final layer.
Your second to last picture shows you're using at least five indentions, which means that you mixed up where to place which choice somewhere.

and that is on top of jumping between labels of different layers, which can also have unexpected results.

2) you misunderstood what the queue is for and how the plugin works.
The queue is to guarantee that the level up event is called once for every level up if the actor gets multiple level ups.
your event however does not need to be called on every level up as it explicitly is only for use once after level 4.

But because you didn't get the logic layers correct (see indention above) that can cause problems.



As for the solution:
remove all jump to label "choice" and "end" and disable the cancel option on each choice. If you can't cancel a choice you don't have to use labels to go back at all.
And you have the yes no confirmation manually, there you use a single switch "confirm selection" in the yes branch, and do nothing in the no branch.
Then, in the last line after everything (as I said, it is important to know the indentions) you make another conditional branch checking if that switch is on - if not, jump to label at the beginning (a label that is placed above the control variable). THAT will correctly loop back if the selection was cancelled (if done correctly)


And one more comment:
Please do not crop screenshots.
An event is more than the contents, and when we ask for screenshots we also want to see the properties like trigger and condition and page number.
In this case it shouldn't matter due to being common events, but please make sure the trigger is set to none on that event as that would be another problem otherwise.
Alright then. Thanks a lot for the time you took for this. However I have deleted the extra labels and the jump to undefined, whilst keeping the choice ones (I will look into the confirmation switch you mentioned though) and it seems to be working fine. The only thing I should be way of is when the chracter levels up several times and ends up on the 4, the event will be ran as many times as they leveled up. But I should be able to fix that with the confirmation switch. Thanks again and uh... noted, about the screenshots

Original thread: https://forums.rpgmakerweb.com/threads/issues-with-level-up-event-plugin.162816/