I'm using Yanfly's Self Switches & Variables plugin: http://www.yanfly.moe/wiki/Self_Switches_&_Variables_(YEP)
And there is some script calls in the "lunatic section" of the help file that I'm trying to use but it doesn't seem to work for me. I'm trying to use the "Control Variable" event command to set a normal variable that I've named to "Temp.Variable B", so that it has the same value as a self variable I use in one of my events.
The eventing can be seen in the picture below:
And this here is a copy-paste directly from the help file under Script Calls (Lunatic):
this.getSelfVariableValue(mapId, eventId, varId)
- Replace mapId with the map ID the event exists on. Replace eventId with
the ID of the event. And replace the varId with the ID of the variable.
This will get the value of that event's self variable.
It looks like it should work to me but "Temp.Variable B" ends up empty (with value "0"), even though the event's self variable is set to a number betweel 1-8.
What am I'm doing wrong I wonder?
And there is some script calls in the "lunatic section" of the help file that I'm trying to use but it doesn't seem to work for me. I'm trying to use the "Control Variable" event command to set a normal variable that I've named to "Temp.Variable B", so that it has the same value as a self variable I use in one of my events.
The eventing can be seen in the picture below:
And this here is a copy-paste directly from the help file under Script Calls (Lunatic):
this.getSelfVariableValue(mapId, eventId, varId)
- Replace mapId with the map ID the event exists on. Replace eventId with
the ID of the event. And replace the varId with the ID of the variable.
This will get the value of that event's self variable.
It looks like it should work to me but "Temp.Variable B" ends up empty (with value "0"), even though the event's self variable is set to a number betweel 1-8.
What am I'm doing wrong I wonder?