Warfare Incorporated :: View topic - Switches
Warfare Incorporated Forum Index
 FAQ   Search   Memberlist   Usergroups 
 Profile   Log in to check your private messages   Log in 
 
Switches

 
Post new topic   Reply to topic    Warfare Incorporated Forum Index -> Mission Authoring
View previous topic :: View next topic  
Author Message
captaindominic
Very Active User


Joined: 05 Jun 2010
Posts: 100
Location: Indonesia Jakarta Jl.puloraya 2 No:11

PostPosted: Tue Nov 30, 2010 3:04 am    Post subject: Switches Reply with quote

What are the swithces for Nate?
_________________
Leadership is to be good for the public.

Trust your leader and he'll trust you!
Back to top
View user's profile Send private message
DaJollyRoger
Mega-Poster


Joined: 19 May 2010
Posts: 478
Location: In a galaxy far far away...

PostPosted: Fri Dec 03, 2010 9:35 am    Post subject: Reply with quote

The main way I use switches is like this: let's say you want team a to spawn a cyclops when all units of theirs die. So you put at mission loaded turn switch bacon off. In another trigger, you put side a contains 0 units: spawn cyclops and turn switch bacon on. Finally you put, side a has no units, and switch bacon is on: end mission for side a: lose
_________________
Hi! Imma create a new account soon! You should help me name it: http://www.warfareincorporated.com/xyzzy/viewtopic.php?p=57606#57606
Back to top
View user's profile Send private message Visit poster's website
N@TE
Chief Administrator Emeritus


Joined: 06 Dec 2009
Posts: 985
Location: Colorado

PostPosted: Mon Dec 06, 2010 9:01 pm    Post subject: Re: Swithces Reply with quote

captaindominic wrote:
What are the swithces for Nate?
It's "switches" not "swithces", and I have renamed the topic to avoid confusion.

Switches are mostly used for co-ops, and when you want to use an event in two or more separate triggers; most commonly one as an action and one as a condition. Below is an example of how you would use a switch.


You will use the Area Contains Units condition and the Set Switch action. Here's an example:

Conditions: Area 'r4' contains AtLeast 1 Any Unit owned by AllSides.
Actions: Set Switch t2 On.

For the second trigger(and all others using this switch), it will use the Switch On/OFF condition, and will be paired any desired actions. An example would look like this:

Conditions: Switch t2 is On
Actions: Show alert "A unit is in the area!"

I got my example and other references from this topic.

_________________
Warfare Incorporated Former Head of Administration || Steam username: WINate
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Warfare Incorporated Forum Index -> Mission Authoring All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2002 phpBB Group