Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: I need really good explanation bout SWITCH
I need really good explanation bout SWITCH
This topic is locked. You can no longer write replies here.
Jul 6 2009, 4:51 pm
By: Ashura  

Jul 6 2009, 4:51 pm Ashura Post #1



I know it makes more than one triggers happen but prob is how to use and set it up correctly i mean I dont how to get start with it so I need really good Instructions bout it ! THX :D



None.

Jul 6 2009, 4:55 pm Falkoner Post #2



http://Falkoner.CoW.GooglePages.com/Switches.html

http://www.staredit.net/wiki/Switch

http://www.staredit.net/?p=tutorials&tut=19

I would recommend the first one, mainly because I wrote it.



None.

Jul 6 2009, 5:03 pm Kaias Post #3



A switch is just a value- on or off; set or clear- that you can set and read.

So if I had a long list of conditions:
EX:
Conditions:
Player brings at least 1 Terran Marine to Location 1
Player 1 brings at least 1 Terran Marine to Location 2
Player 1 brings at least 1 Terran Marine to Location 3
Player 1 brings at least 1 Terran Marine to Location 4
Player 1 brings at least 1 Terran Marine to Location 5
Player 1 brings at least 1 Terran Marine to Location 6


That I needed for many many triggers, I could make it so that when they are true it sets a switch. Then for every other trigger that needs these conditions to be true I can just read the switch

EX:
Trigger 1
Conditions:
Player 1 brings at least 1 Terran Marine to Location 1
Player 1 brings at least 1 Terran Marine to Location 2
Player 1 brings at least 1 Terran Marine to Location 3
Player 1 brings at least 1 Terran Marine to Location 4
Player 1 brings at least 1 Terran Marine to Location 5
Player 1 brings at least 1 Terran Marine to Location 6
Actions:
Set 'Switch 1'
Display Text "Player 1 is bringing a Marine to a lot of locations for no apparent reason"
Preserve Trigger

Trigger 2
Conditions:
'Switch 1' is set
Player 1 has accumulated at least 50 ore
Actions:
Display Text "Player is bringing a Marine to a lot of locations and also has over 49 ore. I'm not sure why this is relevant"
Preserve Trigger


Understand? Also note that a switch is by default cleared and is set or clear until another trigger makes it otherwise.

Try looking up the tutorial on it and also see Death Counters, which are far more useful.



None.

Jul 6 2009, 7:36 pm JaFF Post #4



You have failed to follow one of the rules of this subforum: do not ask very basic questions because you will probablt find answers in the wiki or a sticikied topic. Here is the frequently asked questions topic that also has information about switches.

I will close this topic now. If you have read through all the material suggested in this thread and still don't get switches, PM me any specific questions you have. If your questions are indeed reasonable and are not answered in any of the suggested links, I will re-open the topic for further discussion. If your questions are still basic, that means you're not trying hard enough (or not trying at all) to understand the material the community is giving you.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:58 am]
Symmetry -- Reindeer breeding 2 is not EUD and errors when I try to upload
[12:26 am]
Moose -- Symmetry
Symmetry shouted: yeah uploading for me has been a 50/50 toss up here lately
certain EUD maps segfault the map parser, :farty: ignore me the last time I complain at him. :crybaby:
[2026-11-18. : 5:18 pm]
NudeRaider -- NimoStar
NimoStar shouted: isn't that only for maps?
yes
[2026-11-18. : 3:34 am]
Symmetry -- yeah uploading for me has been a 50/50 toss up here lately
[2026-11-17. : 7:55 pm]
NimoStar -- isn't that only for maps?
[2026-11-17. : 5:52 pm]
NudeRaider -- use scmscx.com
[2026-11-17. : 4:39 pm]
NimoStar -- While I can download, uploading is another story (771 kb file)
[2026-11-17. : 10:58 am]
UndeadStar -- Members Online: UndeadStar, EwanDalrymple090, CedrikPaquette881, ThierryCloutier864, RussellWalker308, RoisinMcCann053, GrahamEllery106, DeirdreMcCloskey160 <= good thing they only watch and don't all post
[2026-11-15. : 7:59 pm]
Symmetry -- but I seem to be downloading things fine
[2026-11-15. : 7:59 pm]
Symmetry -- the DLDB here is kinda sketch
Please log in to shout.


Members Online: ihjel, Soul Filcher