Staredit Network

Staredit Network -> UMS Assistance -> Switches?
Report, edit, etc...Posted by [CreaMPuFF] on 2004-09-24 at 22:15:49
SWITCHES

Okay i do not know what switches are because i am new to map making smile.gif but i want to learn them. PLease could anyone describe to me what they are and how to use them. It would be nice if you could put it into simple terms for me

Thank You

Report, edit, etc...Posted by MindArchon on 2004-09-24 at 22:45:56
A switch has 2 states.

Set or Cleared.

You can set a switch to set or cleared in the actions trigger..

A switch also has a randomize function. Which makes it either set/cleared (its random).

This is how people have random things in their maps, they ujst randomize a bunch of switches and compare their states.

There is a condition for switches too.
Report, edit, etc...Posted by LegacyWeapon on 2004-09-24 at 23:58:45
Switchs start off cleared and they dont do anything unless there is a condition trigger corresponding with the switch that you set/cleared.
Report, edit, etc...Posted by Buletbutter on 2004-09-25 at 01:44:14
The easiest way I can explain it is by what it sounds like, a switch.

A switch has 2 positions, on and off. If you use a switch in a condition nothing will happen until you either turn the switch on or off...for example.

Condition:
Switch 1 is set.
Action:
Create 1 marine at 'anywhere'

In the above trigger, the marine will not be created until you turn on switch one. Set means on, and cleared means off. To turn the switch on you have to use it in an action...for example.

Condition:
Elapsed game time is 5 seconds.
Action:
Set Switch 1.

Hope that helps.
Report, edit, etc...Posted by [CreaMPuFF] on 2004-09-25 at 08:03:53
Okay this is what i get so far. Switches are pretty much like a light switch. On or Off but in this case its set[on] or cleared[off]. You use switches to basicaly activate or deactivate triggers. You can also use triggers to randomize things. This is how im guessing you do it.

conditions:
Set switch 1

Actions:
Switch 1 is set

[what ever you want to be randomized]

clear switch 1

then maybe do you repeat the process over and over? But if you do how many times would you have to do it. And thats only if my example is how you do randomized stuff. And also if the switch is cleared can it still activate anything? I need help!!
Report, edit, etc...Posted by IsolatedPurity on 2004-09-25 at 08:20:37
QUOTE
then maybe do you repeat the process over and over? But if you do how many times would you have to do it. And thats only if my example is how you do randomized stuff.


No.

Trigger
Description:
Randomize
Players:
¤ Player 1
Conditions:
¤ Always
Actions:
¤ Randomize 'Switch 1'.
¤ Randomize 'Switch 2'.



Trigger
Description:
Choice 1
Players:
¤ Player 1
Conditions:
¤ 'Switch 1' is cleared
¤ 'Switch 2' is cleared
Actions:
¤ Action A



Trigger
Description:
Choice 2
Players:
¤ Player 1
Conditions:
¤ 'Switch 1' is cleared
¤ 'Switch 2' is set
Actions:
¤ Action B



Trigger
Description:
Choice 3
Players:
¤ Player 1
Conditions:
¤ 'Switch 1' is set
¤ 'Switch 2' is clear
Actions:
¤ Action C



Trigger
Description:
Choice 4
Players:
¤ Player 1
Conditions:
¤ 'Switch 1' is set
¤ 'Switch 2' is set
Actions:
¤ Action D



My anwser to your first question anwsers your second question...
If you don't see it:

Players: Player 1
Conditions: Switch 1 is cleared
Actions: DisplayText "Switch 1 is off!"

Players: Player 2
Conditions: Switch 1 is set
Actions: DisplayText "Switch 1 is on!"

So yes, you can use cleared switches as conditions.
Report, edit, etc...Posted by [CreaMPuFF] on 2004-09-25 at 09:01:53
Oh...I see thank you very much
Next Page (1)