RMMV Check whether a certain event's self switch is ON via Script Call

Status
Not open for further replies.

KotoYama

Veteran
Veteran
Joined
Apr 20, 2019
Messages
317
Reaction score
40
First Language
Spanish
Primarily Uses
RMMV
Haven't found anything so I had to guess. Nothing worked so far.

P.S. No, I can't use switches or variables instead. It have to be SelfSwithces
1623397224753.png
1623397241222.png
 

ScorchedGround

Blizzards most disappointed fan
Veteran
Joined
Apr 12, 2020
Messages
531
Reaction score
744
First Language
German
Primarily Uses
RMMV
Try putting this into your conditional branch instead:

$gameSelfSwitches.value([MapID,EventID,'Key'], true);

MapID = the ID of the map where the event is placed
EventID = the ID of the event in question
Key = replace Key with A, B, C or D



So in your case, something like this:

$gameSelfSwitches.value([$gameMap._mapId,this.eventId(),'B'], true);


or if you need something specific:

$gameSelfSwitches.value([52,108,'C'], true);
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,495
Reaction score
14,823
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

New version of my wife's art for Tundra's opening map. No new version of Katrina yet, but I think this looks awesome.1624062754755.png
Devil May Cry-Style Action Shooter in RPG Maker 2000! | RPG Maker News #75

So many good stat names, how do people chose!? :p
I am often just about to give in and ask for help in the forums, when I eventually figure things out myself. Spent almost the whole day with a minor issue, but in the and it's so satisfying that I didn't need to open a thread :D

Forum statistics

Threads
112,351
Messages
1,067,669
Members
145,997
Latest member
NicBain
Top