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,183
Reaction score
10,817
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

Took some trial and error, but I managed to create "visuals" for underground dig path regions.
Couldn't sleep at all so I started working on the topmost deck. I've had to make several deviations from the Imperator/Berengaria's deck-plans to accommodate MV's movement, but 100% accuracy was never my intention.
Still no name for the poor ship...:kaodes:
Screenshot-2022-06-25-053308.png
ScreenShot_6_24_2022_9_20_7.png
Here's Mike when you get a preemptive strike in battle. There's another one for when an enemy sneaks up on you too.
Suddenly, games mean nothing. The money spent was worth it to bring souls towards the light of life. May God bless my path forever. I pray that all are shaken for truth and poured out flat on the table of true understanding, knowledge, and wisdom. Bless you.

Forum statistics

Threads
123,033
Messages
1,153,564
Members
161,374
Latest member
artdeko
Top