I made this script as a plugin:
it is simple, when I call it it shows me the argument on the console.
I want to call this function from a movement route script calling, but the argument is a Yanfly Self Variable:
And it seems like I can not call this function from here, it doesn't exists:
So, How to access Yanfly getSelfVariableValue function from a movement route script?
JavaScript:
var CropGrowth = function (battles) {
console.log(battles);
};
it is simple, when I call it it shows me the argument on the console.
I want to call this function from a movement route script calling, but the argument is a Yanfly Self Variable:
JavaScript:
CropGrowth(this.getSelfVariableValue($gameMap._mapId,this._eventId,202));
And it seems like I can not call this function from here, it doesn't exists:
So, How to access Yanfly getSelfVariableValue function from a movement route script?