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
358
Reaction score
51
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 (More than ever)
Veteran
Joined
Apr 12, 2020
Messages
572
Reaction score
788
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,860
Reaction score
14,989
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

I've decided to try and be more social and less nervous about engaging. I'm always over thinking things - from now on when I'm worried or don't get something I'll just ask.
Sometimes a mechanic that is meant to add challenge is just annoying. Even the Final Fantasy games did not completely escape this pitfall of design. (FF8 draw system I'm looking at you - grrrr)
starting working on the sprites for one of my games major antagonists finally. here's the first frame of his chanting motion in battle.
Have spent too much time hammering out with a friend just how to make a reoccurring enemy that permanently learns skills you use against her.
I know what I want in a loose sense. Maybe I should just make a post asking for opinions and suggestions.

Forum statistics

Threads
113,737
Messages
1,077,064
Members
147,762
Latest member
Bad_At_Scripting
Top