RPG Maker Forums

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?

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top