Staredit Network

Staredit Network -> UMS Assistance -> Problems Withswitches
Report, edit, etc...Posted by Staredit.Net Essence on 2003-07-11 at 17:17:09
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.
Report, edit, etc...Posted by Yoshi da Sniper on 2003-07-11 at 18:31:37
Thatsssssssssss me wink.gif

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.
Report, edit, etc...Posted by Staredit.Net Essence on 2003-07-11 at 22:30:23
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. biggrin.gif
Report, edit, etc...Posted by Staredit.Net Essence on 2003-07-12 at 02:15:02
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 =)
Report, edit, etc...Posted by chuiu on 2003-07-12 at 04:23:27
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.
Report, edit, etc...Posted by Staredit.Net Essence on 2003-07-12 at 07:49:47
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. tongue.gif
Report, edit, etc...Posted by Staredit.Net Essence on 2003-07-26 at 23:00:11
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. helpsmilie.gif
Report, edit, etc...Posted by chuiu on 2003-07-27 at 00:06:51
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.
Report, edit, etc...Posted by Staredit.Net Essence on 2003-07-27 at 07:01:19
So even if there wasn't a perserve, will the ling and marines be removed only once?
Report, edit, etc...Posted by chuiu on 2003-07-27 at 11:31:55
If there wasn't a preserve, there would be no point in having the switches there.
Next Page (1)