Staredit Network

Staredit Network -> UMS Assistance -> Switches. What are they, and how to use them?
Report, edit, etc...Posted by Dr4goN on 2005-06-29 at 02:18:52
I've got question,

What are Switches and how do I use them?
Report, edit, etc...Posted by in_a_biskit on 2005-06-29 at 02:31:37
We have tutorials for everything!
http://www.staredit.net/index.php?tutorial=116

Switches are a way of recording information for later use.
They don't do anything at all by themselves, and they're only affected when a trigger runs the action 'Set Switch'.
You can check the state of a switch (whether it is 'set' or 'cleared') using the condition 'Switch'.
Each switch must be either 'set' or 'cleared', and all switches start 'cleared' at the start of each game.

For example, you might have a map where a person needs a key to get access to an area. When they find the key, you can record that information by setting a switch. When they reach the door, you would check to see if they had the key or not by using a condition such as "'Switch 1' is set".
This is useful, because the initial condition for finding the key (probably something similar to "Player 1 brings at least 1 men to 'key'") would no longer be true, and we wouldn't be able to check it without something like a switch.
Report, edit, etc...Posted by yoni45 on 2005-06-29 at 02:35:28
QUOTE(Dr4goN @ Jun 29 2005, 12:18 AM)
I've got question,

What are Switches and how do I use them?
[right][snapback]247770[/snapback][/right]


switches are pretty much what the name describes, u can switch them on (when a switch is Set), and u can switch them off (when a switch is Cleared). by default, switches are set to Cleared. u can toggle this using triggers, and triggers alone, in the actions of a trigger (Action - SetSwitch). u can then use these switches as conditions or parts of conditions to check if a switch is on or off.

Now, in true LegacyWeapon style...

We have tutorials for everything!

http://www.staredit.net/index.php?tutorial=116

ADDITION:

sonofa biskit got to it infront of me ranting.gif
Report, edit, etc...Posted by Dr4goN on 2005-06-29 at 07:58:46
Thanks a lot. It helped me so much.
Next Page (1)