Stuffo

Villager
Member
Joined
Nov 1, 2021
Messages
16
Reaction score
6
First Language
Swedish
Primarily Uses
RMMV
how do i seect "this event" when doing a script call, for example with self switches. or in my case, YEPs sef variables and self switches plugin?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
5,571
Reaction score
3,634
First Language
English
Primarily Uses
RMMV
What's the context? If you're using the functions provided in the documentation for Self Switches and Variables, you have to specify the event when calling the function. E.g.:
Code:
this.setSelfSwitchValue(mapId, eventId, switchId, true)

so you would simply type in the ID for the event that you're putting this script call into.

I can't think off the top of my head of a circumstance where you'd be calling the function and not already know which event it is. Unless you're writing additional code for your own plugin, in which case it seems like you'd either be making it a method of events so you'd use this, or you'd have the event getting passed in so you'd reference that variable.

So...maybe you can explain a bit more clearly how you're trying to use this and how you wouldn't already know which event it is.
 

Stuffo

Villager
Member
Joined
Nov 1, 2021
Messages
16
Reaction score
6
First Language
Swedish
Primarily Uses
RMMV
Don't worry i've already fixed this. But to answer your questrion. I was just lazy and wanted an easy way to copy events without needing to change them induvidually.
 

Latest Threads

Latest Posts

Latest Profile Posts

Sometimes I wonder why I still try and recruit others to help with my games. It never works.
ScreenShot_10_3_2022_4_27_17.png
welp, thanks to Luna MV, I was able to add the Balloon as a window... thus allowing me to edit the font color and outline... so now it looks like comic bubbles above characters. I have NO idea why I couldn't get this to work through more conventional means, but here we are.
CUTE CUTE CUTE.gif
I cannot cease doing cute art
War and Wonder is a 100% choice-based open-world visual novel.
1664821313732.png
1664821466359.png
1664821547746.png
Going live soon on Twitch, and will continue Fortunastreet's game "Verloren". For those who are curious, you are welcome to join ;)

-> Franz' Twitch channel

Forum statistics

Threads
125,759
Messages
1,173,272
Members
164,916
Latest member
Syczewski
Top