Need ideas for a "or" logic switch system

Narch

Veteran
Veteran
Joined
Jan 13, 2017
Messages
66
Reaction score
9
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,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
Use one variable instead of all switches.
 

Narch

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

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top