Staredit Network

Staredit Network -> UMS Assistance -> Switches
Report, edit, etc...Posted by destroyer1 on 2005-12-25 at 13:47:55
Most defence game use switch to stop the previous units from coming out (i think)
Basically i want the previous trigger to stop working after its been completed like im most defense games or bounds. I know the switches do that but they still confuse for some reason lol. Can someone give me an example to switch off and back on and a brief explanation of wat these do.?
Report, edit, etc...Posted by LurkerEgg on 2005-12-25 at 14:08:07
A switch is a simple on/off value. Basically, you can setup defense triggers like this (this is as an example for levels4-5):


Trigger
Description:
Level 4
Players:
¤ A single computer player
Conditions:
¤ Switch 3 is set
¤ Other conditions
Actions:
¤ Create N Unit X at 'Y'
¤ {Repeat as needed}
¤ Set Switch 4



Trigger
Description:
Level 4
Players:
¤ A single computer player
Conditions:
¤ Switch 4 is set
¤ Other conditions
Actions:
¤ Create N Unit Z at 'Y'
¤ {Repeat as needed}
¤ Set Switch 5


Notice how after Level 4 ran, Switch 4 was set. A switch can be either Set or Clear, and they have no direct effects in-game (only as trigger actions or conditions). You can set conditons for a given switch's state, or you can set actions to clear, toggle, set, or even randomize switches.
Report, edit, etc...Posted by M_s4 on 2005-12-25 at 20:44:01
If you are having trouble working with switches, then use death counters. Death Counters work like 20 times better and easier for games (like defences) with levels in my opinion.

You should know what they are, but if you don't click on this:
http://www.staredit.net/index.php?tutorial=124
Next Page (1)