I see them in every professional map. I see them in every of my favorite maps. I see them almost in any map.
Yet my map that im creating has none.
The starcraft editor help doesn't give a clear detail to what switches do. Even though some ppl seem to know how to use them. I see switches in the most simple maps, Cat and Mouse Winter. I try and use the same format in that map i said before. I don't even know what switches do, i was just guessing around. I'm a newbie editor, i was like why didn't they use bring 0 mouse to always. Then make it say your in prison then preserve. There was a switch set here i didn't know WHY!?
I need expert help to overcome the trouble of using switches.
Thatsssssssssss me
Switches work in 2 states, cleared or set. There is no difference between the two, except for the fact that the map starts up with all switches CLEARED.
Switches are used as conditions, thats it. If a trigger sets it, then all triggers that the condition for that trigger is set will activate the trigger.
Ok i think i get it. Heres an example :
I want the marines to die only when i have my civ off the beacon. I set the switch on cleared.
I set the switch when there is 0 civ on the beacon. Kill all marines.
Heheh thx.

If you want when ur civ on beacon, only make when civ on beac kill rines on location, if you want when civ obs, a nice idea would be to place an obs then ur civ moved off the beacon area, nice solution for not using switchs =)
I use switches for more complicated things or to just prevent myself from having 12382109 conditions.
You can use them for a variety of things, including randomizing stuff.
Lol winter, i think chu makes a better argument, ill try switches sometime. Cause i need to save some space for my still making 3 mb map.

Oh crap... sry for the double post. But i still can't seem to get switches. A simple example will be pretty good. Cause im noticing a thousand stupid thingys i have to do.
For example, im gonna put a bonus round, and i want it to disable level 11. After i finsh the bonus round i want it to enable lvl 11. This looks pretty simple, but i still can't seem to pefect the switches.

Current player brings at least one marine to location 1.
Current player accumulates at least 100 ore.
Switch 1 is cleared.
---
Set switch 1.
Remove one marine for current player.
Set resources for current player subtract 100 ore.
Preserve.
----
Current player brings at least one zergling to location 1.
Current player accumulates at least 50 ore.
Switch 1 is set.
---
Clear switch 1.
Remove one zergling for current player.
Set resources for current player subtract 50 ore.
Preserve.
In this example, switches are used to prevent one action from preserving until another condition is met. So if I brought two marines there, only one would be removed. But if I brought two marines and one zergling, all of them would be removed. Same if I brought two marines and two zerglings.
So even if there wasn't a perserve, will the ling and marines be removed only once?
If there wasn't a preserve, there would be no point in having the switches there.