Script Call Not Working

Hi there, 

I hope this is the right place for my problem (if not, sorry for that, this topic seemed to fit good...)  🙂

I also have a Problem with a script call I used. I wanted to create a simple autosave event by using the script call: DataManager.saveGame(x) where x is the number of the slot. 

So I created an event with autorun, script call and self switch. It worked fine and created a savegame. But every time I tried to load it, I had an issue: "cannot read property name of null".

Every time I made an event which was triggered through action, there was no problem to load the data. :distrust:  I have no idea what the problem could be. Did I something wrong?
If it's an autorun, you were sure to erase the event afterwards, right? SO it doesn't run over, and over, and over, and over...
Hi there, 


I hope this is the right place for my problem (if not, sorry for that, this topic seemed to fit good...)  🙂


I also have a Problem with a script call I used. I wanted to create a simple autosave event by using the script call: DataManager.saveGame(x) where x is the number of the slot. 


So I created an event with autorun, script call and self switch. It worked fine and created a savegame. But every time I tried to load it, I had an issue: "cannot read property name of null".


Every time I made an event which was triggered through action, there was no problem to load the data. :distrust:  I have no idea what the problem could be. Did I something wrong?

Do a script call of $gameSystem.onBeforeSave();


And after that do a script call of DataManager.saveGame(x);

Original thread: https://forums.rpgmakerweb.com/threads/script-call-not-working.50429/