Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: What does it mean when you clear a switch?
What does it mean when you clear a switch?
Jan 24 2008, 12:02 am
By: Templar_Psion  

Jan 24 2008, 12:02 am Templar_Psion Post #1



Read the title. I've been meaning to ask this alot but I always thought i'd be thought of as a dumbass...



None.

Jan 24 2008, 12:16 am Falkoner Post #2



A switch has two properites, Set or Cleared, and you can detect which one it is at, so basically, it's either 0 or 1, on or off, true or false.



None.

Jan 24 2008, 12:35 am Templar_Psion Post #3



So, basically its a 0/1 command like in most forms of gamescript?



None.

Jan 24 2008, 12:38 am Conspiracy Post #4



You could say that... the game reads it as on/off (0/1). Cleared = Off. You can also randomize and toggle a switch. When you randomize it, it randomly picks (50/50) cleared or off for the switch. Then it gets really confusing in the number of combinations possible :><:



None.

Jan 24 2008, 12:57 am NudeRaider Post #5

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Switches themselves do nothing.
But you can check for them in conditions.
There are only 2 settings: cleared = 0 (default) and set = 1.
Now you can make logical dependencies between triggers.

EDIT: Sorry for posting info already said, i wrote this, then got disturbed and now i came back to finish without checking for updates




Jan 24 2008, 1:27 am Lingie Post #6



Cleared and set aren't neccessarily on and off. But, it helps to assoiate them with on and off, like most do.

The triggers can read cleared, just as they do set. But, we can call them on and off because they all start cleared, or "off".



Lingie#3148 on Discord. Lingie, the Fox-Tailed on Steam.

Jan 25 2008, 3:48 am DT_Battlekruser Post #7



Quote
Cleared and set aren't neccessarily on and off.

In the most technical sense possible, they are.

They are essentially Starcraft's only dedicated variables (other potential vars do other stuff), and are of the type boolean.




None.

Jan 25 2008, 9:22 am Pyro682 Post #8



They can be Reallly really handy.
(theyre not just in the conditions, you can set them up in actions.)

They ARE on and off. nothing else. Cleared is just fancy off, and Set is fancy on.
They all start off.

As i was saying, they are really nifty little suckers, and helps alot, either by cutting down a map maker's trigger limit by tons,
or sometimes you need them to have a double condition cue.



None.

Jan 26 2008, 7:44 am Templar_Psion Post #9



lol, but blizz sais in the trigger info that switches are used for prevent a trigger from repeating o_O



None.

Jan 26 2008, 3:40 pm NudeRaider Post #10

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from Templar_Psion
lol, but blizz sais in the trigger info that switches are used for prevent a trigger from repeating o_O
Depending on how you use them they can do that - among many other things.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-9-25. : 12:00 am]
Oh_Man -- he hasnt won a single game so far this is hilarious
[2026-9-24. : 11:41 pm]
Oh_Man -- new arty username Rage Against The Machine
[2026-9-24. : 10:14 pm]
Oh_Man -- https://m.youtube.com/watch?v=KPXri8q9ZBs artys vsing the bot now
[2026-9-24. : 8:12 pm]
Ultraviolet -- do you even lift bro?
[2026-9-23. : 5:21 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider yeh thts straight up cheating
the mutas yes, the wraiths probably not. Have you even watched the video? ;)
[2026-9-23. : 12:56 pm]
Oh_Man -- NudeRaider
NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
yeh thts straight up cheating
[2026-9-23. : 12:24 pm]
Oh_Man -- arty's done another vid. he's also announced he's going to organise showmatches with pro, with NO maphacks, so we can see its actual capabilities
[2026-9-23. : 10:09 am]
NimoStar -- It can by playing the same map thousands of times. It is similar to AI speedrunning games
Please log in to shout.


Members Online: O)FaRTy1billion[MM], DarkenedFantasies