Narch

Veteran
Veteran
Joined
Jan 13, 2017
Messages
88
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,232
Reaction score
11,213
First Language
Czech
Primarily Uses
RMMV
Use one variable instead of all switches.
 

Narch

Veteran
Veteran
Joined
Jan 13, 2017
Messages
88
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

%2FswUmX.png


I'm excited to announce I've received a great deal of feedback from a fellow tactics fan!
bandicam 2023-05-29 22-28-54-159.png
When will I be able to play my own game? There is a lot of work, but I am working hard towards the goal
Add Monser2.png!!
index.php

Happy Memorial Day to those on here like me who live in the United States. :)
Alright got a video of a review of a fake PS5 here. I've decided I'm only going to do maybe 10 videos about bootleg consoles, and then I think I'm going to move on, and post YouTube videos of old video game TV advertisements for franchises like Mario and Sonic and Spyro and all that for a little nostalgia. :cool:

Forum statistics

Threads
131,528
Messages
1,220,549
Members
173,221
Latest member
ZecaVn
Top