Event only working if call durring a level up

If every common event is tied to a specific actor, why are you checking for actor id in the beginning?  Also, can you get 1 actor to level up, then press f9, and look up the values for variables 489-499 and see if they match the actor's stats?

To answer your first question, that's finding the actors partymember number.


To the second part, the problem isn't the variables, it's that the event just stops running as soon as you finish the stat distribution. I tested this by putting a text saying "Test" directly below the stat distribution script call. It didn't show up. However I don't think it's a problem with the script because, as I've said before, if the event is run because of a level up it all runs fine. It's only if called through a common event call that there's a problem.
I think the problem lies in the plugin ending the battle scene when you exit the stat distribution causing the common event to think its over as well.  Your best bet might be to ask the creator of the stat distribution plugin if there is a fix for this.
I think the problem lies in the plugin ending the battle scene when you exit the stat distribution causing the common event to think its over as well.  Your best bet might be to ask the creator of the stat distribution plugin if there is a fix for this.

I thought so too but that was why I added that bit to the top of the event that stops it from running during a battle.


I do think it has something to do with that plugin however. Thank you for all your help.

Original thread: https://forums.rpgmakerweb.com/threads/event-only-working-if-call-durring-a-level-up.60520/