Auto Push NPC

Is it okay if I changed it to be backwards by comment? I made it work only for events with comment "AutoPush" instead of "Immune_AutoPush" since I have way more immune events. I kept it so that it would check the first comment too just for performance.


Also, is anyone else getting random errors like "cannot read property 'list' from undefined"? I've seen the same event work, then throw the error. I think it's an rpg maker bug and not the plugin because I've tried checking the following and it still breaks:
 


if(this == 'undefined')


if(this.page() == 'undefined')


if(this.list() == 'undefined')


I notice now that the error is thrown inside rpg maker framework code so I'm not sure how to get around it.
@geonigma


I'ts neither in the plugin nor in the maker


That class of errors are developer errors caused by something you have done in your game.


Most probable cause: you added a plugin and them loaded a saved gamefile - in 80% of all cases, adding a plugin makes a savefile incompatible, and you need to start a new game after that.


Alternative causes: two incompatible plugins or a plugin that has not been configured correctly.


And you can't check for undefined like you did above, because there you are checking for a textline that is defined to contain the letters 'undefined', but the errors are talking about program objects that are undefined (because they are usually only defined by new game)
Hey there. I was recently experiencing the same error that geonigma was encountering.
The work around I did was pretty simple. I was getting the "list" error on events that didn't have a "non-conditional" eventpage. As in I had events (above or below character) that had event pages only processed when switches/self-switches or vars were met. So I think the issue becomes that while those conditions are not met, RMMV considers those event "list" undefined -- since said events wouldn't necessarily exist until said conditions are met. So a quick test led me to creating a "blank" page with no conditions -- and low and behold, that fixed my errors.
Can anyone please share a copy of this plugin? Thanks!
hi
Thank you so much!!😍

Do you have any of LeCode's other plugins (besides his LeTBS plugin) btw? If so, I'd be super grateful if you could PM me, cuz I don't wanna steer the thread off-topic or anything. Thx!~

Original thread: https://forums.rpgmakerweb.com/threads/auto-push-npc.47897/