Hi, I'm using Yanfly's Self Switches & Variables.
How do I check a self variable or self switch of an event in a conditional branch?
the same way as you normal do on "this event".
if you want to check another event on the map or other mapID with
eventID of that switch/variable.
than it is a different question which I need to check.
I believe there was a solution for this, but I think you need
some more coding evolved for checking the selfvariable of eventID.
Specifically I need to check the self variable of an event in another map, I looked into the plugin description but there doesn't seem to be anything.
if you go into the helpfile, you see "Lunatic Code".
that can be used in scriptcalls, conditional brances etc.
this.getSelfSwitchValue(mapId, eventId, switchId) is one of them.
this get the value of map x, event y, switchID z to be true or false.
with plugin commands, you can change the values.
same with variables etc.
Thanks, I had seen that part but I didn't understand how to use it. Then I realized that for the code to work I have to add a piece at the end.
Example: this.getSelfVariableValue(1, 1, 1) === 1