Script Call Not Working

Discussion in 'RPG Maker MV' started by Ilovepapayas, Nov 14, 2015.

  1. Ilovepapayas

    Ilovepapayas Villager Member

    Messages:
    9
    Likes Received:
    3
    First Language:
    german
    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?
     
    #1
  2. wizaerd

    wizaerd Adventurer Member

    Messages:
    219
    Likes Received:
    26
    First Language:
    English
    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...
     
    #2
  3. mdHD

    mdHD Warper Member

    Messages:
    4
    Likes Received:
    1
    Do a script call of $gameSystem.onBeforeSave();


    And after that do a script call of DataManager.saveGame(x);
     
    #3
    Ludicrousda3ve likes this.

Share This Page