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

 
Post new topic   Reply to topic    Warfare Incorporated Forum Index -> Mission Authoring
View previous topic :: View next topic  
Author Message
Jackdeath
WI Forum Novice


Joined: 16 Mar 2004
Posts: 3
Location: Montreal, Quebec, CANADA

PostPosted: Tue Mar 16, 2004 3:43 am    Post subject: Capture Trigger Reply with quote

How do I set up a trigger for the capture of structures?
Back to top
View user's profile Send private message
Wizard
Established Forum User


Joined: 30 Nov 2003
Posts: 68
Location: Bristol, England

PostPosted: Wed Mar 17, 2004 2:03 am    Post subject: Reply with quote

Thats a tough one, as the only viable way (that I can think of whilst still asleep) is a count of the buildings, and if that count increases then do something.

You could also tie in with the 'lost' of a raider, as raiders are a single-use item only.

W

_________________
Wizard

There's no place like 127.0.0.1
HTML | JS | VB | KIX | CFM | English

Everyone is a 'disgruntled employee'. What kind of word is 'disgruntled' anyway.? Can someone be 'gruntled'.?
Back to top
View user's profile Send private message
scottlu
WI Founder


Joined: 15 Aug 2003
Posts: 1773

PostPosted: Wed Mar 17, 2004 10:55 am    Post subject: Reply with quote

You can do it with an area that encloses the structure, then check the area for the structure of a given type, owned by a given side.
_________________
Warfare Incorporated Development Team
Back to top
View user's profile Send private message
Jackdeath
WI Forum Novice


Joined: 16 Mar 2004
Posts: 3
Location: Montreal, Quebec, CANADA

PostPosted: Wed Mar 17, 2004 2:29 pm    Post subject: Reply with quote

Yes, that would work. But, how would I differentiate between structures that were captured from ones that were destroyed? In a scenario where a captured structure would bring an 'End Mission: win' condition and a destroyed structure would bring an 'End Mission: lose' condition, how could I tell the difference between the two?
Back to top
View user's profile Send private message
SoLan
Very Active User


Joined: 13 Jan 2004
Posts: 183

PostPosted: Wed Mar 17, 2004 2:54 pm    Post subject: Reply with quote

You can do this by creating an area that encloses the structure and then setting two triggers. The first trigger tests for area contains 0 *insert structure type here* owned by any side (structure is destroyed) with a trigger action of End Mission: Lose. The second trigger tests for area contains 1 *insert structure type here* owned by *human side* (structure is captured by human side) with a trigger action of End Mission: Win.
_________________
--SoLan
Palm Tungsten|T3
Back to top
View user's profile Send private message
Jackdeath
WI Forum Novice


Joined: 16 Mar 2004
Posts: 3
Location: Montreal, Quebec, CANADA

PostPosted: Wed Mar 17, 2004 4:25 pm    Post subject: Reply with quote

I can foresee no problems when observing a condition for destroying a structure, but if captured wouldn't that bring about both conditions? One side's gain is another side's loss. Which would take precedent?
Back to top
View user's profile Send private message
SoLan
Very Active User


Joined: 13 Jan 2004
Posts: 183

PostPosted: Wed Mar 17, 2004 4:39 pm    Post subject: Reply with quote

If you test for a structure owned by any side, then that is true as long as there is a structure of the type that you specify in the area no matter which side owns it. Area contains 0 *insert structure type here* owned by any side will not be true unless no side owns any of the specified structure in that area.

As an alternative you can test for area contains exactly 0 *insert structure type here* owned by *human side* and exactly 0 *insert structure type here* owned by *computer side* for the End Mission: Lose trigger.

_________________
--SoLan
Palm Tungsten|T3
Back to top
View user's profile Send private message
scottlu
WI Founder


Joined: 15 Aug 2003
Posts: 1773

PostPosted: Thu Mar 18, 2004 12:32 am    Post subject: Reply with quote

Another item to know is that triggers get executed one at a time, in the order listed.
_________________
Warfare Incorporated Development Team
Back to top
View user's profile Send private message
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