QUOTE(devilesk @ Aug 15 2004, 11:43 PM)
and switches r cleared by default

think of a switch as in a light
when u flick the switch on(set) it turns on light(action)
when you flick the switch off(cleared) the light is off(action)
Yep and you as the electrician have the power to wire the switch however you want. If you want to turn on an outlet on or a light or if you want the light to be on when the switch is down or up.
Maybe that is trying to be to complex.
<table width="100%"><tr><td class='row4' valign='top' width="99%"><div align='left' class='row4' style='float:left;padding-top:4px;padding-bottom:4px'>
<img title='us' src='http://www.staredit.net/html/flags/us.gif' border='0'></a> <span class='postdetails'><b><a title="Show the link to this post" href="#" onclick="link_to_post(52266); return false;" style="text-decoration:underline">Posted:</a></b> Aug 16 2004, 12:09 AM CHECK OUT MY FAKE DOUBLE POST!!</span>
</div></td><td class='row4' valign='top' width="99%">
<div align='right'>
<img src='style_images/1/p_edit.gif' border='0' alt='Edit Post' /><img src='style_images/1/p_quote.gif' border='0' alt='Quote Post' /> </div></td></tr></table>
I view switches as a way to relate to past events. For an example:
-You make a trigger set a switch whenever your at a locationX
-When your at locationY you want to do something only if the player has BEEN to locationX. This what you would do for a locked door with a key.
When you pick up the key you have no physical evidence that you were to that location, and nothing for your triggers to relate to. The switch is your imaginary key, an item you have only in your mind, yet now the rest of the triggers can respond to you owning the key or not. So therefore the switch is detecting if the “pickup key” trigger has ran or not.
The more you use switches the more useful they will become. As you become better you will use them more often. Then once you improve even more you learn how not to use them. Ironic huh? (not saying there bad or anything)