Staredit Network

Staredit Network -> UMS Assistance -> Switches...
Report, edit, etc...Posted by PacMaN on 2004-08-04 at 04:48:33
I kinda understand the concept of switches but i still dont realy get how to use em...I alrdy read all the things i could find on them just still dont understand. Can anyone put it in simple terms?
Report, edit, etc...Posted by linux_junkie on 2004-08-04 at 05:11:11
I'll try to explain them for you, in simpler terms. Basically, think of them as light switches. They can either be on, or off. Now, for an example use... Let's say you have an RPG map you're making, and you want a door that can only be unlocked if the player found the key. Basically, you'd have something like this:

Conditions:
Current Player brings at least 1 man to "Key Location"
Action:
Set "Key Switch"

Conditions:
Current Player brings at least 1 man to "Door Location"
"Key Switch" is Set.
Action:
(Your door actions (Special effects, messages, etc.))


Was that clear at all? Basically, you use switches to tell whether something happened or not, or whether something should happen or not. Granted, they have many uses, but you'll generally use them, as a novice, to check whether a certain event has occured yet. I hope that helps some, and that I didn't just confuse you more. confused.gif
Report, edit, etc...Posted by PacMaN on 2004-08-04 at 05:44:33
when the key switch is set does that like disable the doodad state for the door(if thats wat ur saying)
Report, edit, etc...Posted by linux_junkie on 2004-08-04 at 05:52:50
Yes, basically. When the key switch is set, and the player has a unit at the door, you'll disable the doodad state to open it. You get it now, or do you need a better explanation?
Report, edit, etc...Posted by PacMaN on 2004-08-04 at 05:58:41
yea i get it but if i have anytrouble ill just post it again but thnx alot for your help biggrin.gif
Report, edit, etc...Posted by linux_junkie on 2004-08-04 at 06:09:14
No problem at all, man. Good luck with your mapping!
Report, edit, etc...Posted by Golden-Fist on 2004-08-04 at 06:48:19
I use switchs for movies and sometimes intermissions
consider it like a checkpoint or something

if u were to reuse an area like:

PLayer 1 brings one ling to Location: LA (end of a hallway)

Display text <insert really long breif of cool story like (smile.gif)>


THen if they had to do something like kill this dude

PLayer 6 suffers 1 death of Zealot

Set Switch 1

then you cn go back to that hallway and do

PLayer 1 brign one ling to Locaion: LA
Switch 1 is set

Display <insert another cool text>

do u understand what im saying?
Report, edit, etc...Posted by PacMaN on 2004-08-04 at 06:55:48
yea thnx
Report, edit, etc...Posted by Mini Moose 2707 on 2004-08-04 at 10:09:17
I rarely use Swithes, I find them useful for pretty much only randomization. Remember that Switches are global, and affect all players. That's why I prefer death counters, you can set a value for each player.
Report, edit, etc...Posted by Staredit.Net Essence on 2004-08-04 at 10:27:09
biggrin.gif switches arnt too good man,still use them,set ''set switch'' but first make the switch then trigger ''set switch'' biggrin.gif w00t.gif tongue.gif
Next Page (1)