Narch

Veteran
Veteran
Joined
Jan 13, 2017
Messages
75
Reaction score
11
First Language
French
Primarily Uses
I got a big batch of switches, when one switch is ON, all the others need to be OFF.

Do you have tips on how to make this with not too much lines of code?

So far the only solution I have is a common event with conditionnal branches:
Code:
if SwitchA = ON, then make SwitchB,C,D,E,F,G... OFF
if SwitchB = ON, then make SwitchA,C,D,E,F,G... OFF
etc...

It's pretty tedious even if doable. If you guys have ideas I take them!
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,178
Reaction score
10,800
First Language
Czech
Primarily Uses
RMMV
Use one variable instead of all switches.
 

Narch

Veteran
Veteran
Joined
Jan 13, 2017
Messages
75
Reaction score
11
First Language
French
Primarily Uses
@Portyg Ah yeah of course, I was too focused on keeping Switches names visible for clarity.
Thanks!
 

Latest Threads

Latest Posts

Latest Profile Posts

Newbie, please be gentle
reworkMZ.png
To keep myself motivated to make the MZ SF tiles normal and usable modern tiles I like to make tiny maps and toggle between the options :3
Character selection in games be like
Special Tractor Operation! :kaojoy:
Current status screens for Shadows of the Earth: The Vrila'an Legend. Need to do something about the color scheme lol
Captura de pantalla (259).pngCaptura de pantalla (260).png

Forum statistics

Threads
122,083
Messages
1,146,341
Members
160,368
Latest member
slotgacorunsurtoto
Top