I had this working before when I first tried it out ages ago, when I first downloaded it. Now I wanted to actually use it, I can't get it to work.
This is the code I am using. I wanted to have a check in a dialogue for the charisma stat, so with this script above I wanted to check it worked. I have this set to activate on player touch of an event.
Here is the error.
Here I have defined the stat below.
I have also followed the instructions with the plugin to put a stat menu into the pause menu with VisuMZ Main Menu Core. Shows up, but when I click to get to the menu I get a similar error.
JavaScript:
var actorId = 1;
var newCharismaLevel = 3;
$gameActors.actor(actorId).customStats["CHA"].currentLevel = newCharismaLevel;
This is the code I am using. I wanted to have a check in a dialogue for the charisma stat, so with this script above I wanted to check it worked. I have this set to activate on player touch of an event.
Here is the error.
Here I have defined the stat below.
I have also followed the instructions with the plugin to put a stat menu into the pause menu with VisuMZ Main Menu Core. Shows up, but when I click to get to the menu I get a similar error.