Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: The Deal With Switches
The Deal With Switches
This topic is locked. You can no longer write replies here.
Jan 8 2009, 2:49 pm
By: kidblaze  

Jan 8 2009, 2:49 pm kidblaze Post #1



I've got no idea what switches are, but all i know is that they benefit a map ALOT.
Most of the Cat n Mouse maps have 'em. The only way i make my Cat n Mouse maps is by copying
triggers from:
1. Cat n Mouse Jungle 2.2-5.4-random 5.5
2. Cat n Mouse Random Cheesers 11

But I want to make my own this time and I'm going to make it good. My only problem is that I dont know what or how to use switches. Doesn't anyone have any clue as to what switches are please just HELP ME!



None.

Jan 8 2009, 2:56 pm Devourer Post #2

Hello

... you don't have to copy triggers... they are very simple to create.
switches are ... well... a switch, what else?
they start with the option "cleared"

there is a condition and an action with switches,
cond: switch
action: set switch


at the condition you check if the switch is set or cleared, you make it set/cleard in actions.
at the action you can set the switch:
Set, Clear, Toogle (toogles between set and clear (so if it was set, it get cleared, if it was cleared, it get set), random (it gets a random value (set or cleared)

here is an example:
We require: 1 switch 1 marine, 2 locations (X and Y)
We want to kill the marine when he enters the location X after he enterd the location Y.



2 triggers required:

Condition: Player 1 brings at least 1 Marine to Y
Action: Set switch 1

Condition: Player 1 brings at least 1 Marine to X
Condition: Switch 1 is SET
Action: Kill 1 Marine at X for Player 1



Hope that helps and good luck.



Please report errors in the Staredit.Network forum.

Jan 8 2009, 3:08 pm NudeRaider Post #3

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 The Forum rules (stickied)
3. Thou shalt use the Wiki *, Search, and Google. You might find your answer before posting and thus not have to open a topic.
Search for switches in the Wiki.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
Please log in to shout.


Members Online: Ultraviolet, Roy