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.
[10:29 pm]
Oh_Man -- homeworld 3 = massive disappointment
[10:05 am]
Moose -- ya
[05:23 am]
zsnakezz -- yes
[2024-5-12. : 8:51 pm]
l)ark_ssj9kevin -- Are you excited for Homeworld 3?
[2024-5-12. : 8:44 pm]
l)ark_ssj9kevin -- Hi Brusilov
[2024-5-12. : 4:35 pm]
O)FaRTy1billion[MM] -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
my server that was hosting it died
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
[2024-5-09. : 11:31 pm]
Vrael -- :wob:
[2024-5-09. : 8:42 pm]
Ultraviolet -- :wob:
Please log in to shout.


Members Online: Roy