View previous topic :: View next topic |
Author |
Message |
Jackdeath WI Forum Novice
Joined: 16 Mar 2004 Posts: 3 Location: Montreal, Quebec, CANADA
|
Posted: Tue Mar 16, 2004 3:43 am Post subject: Capture Trigger |
|
|
How do I set up a trigger for the capture of structures? |
|
Back to top |
|
|
Wizard Established Forum User
Joined: 30 Nov 2003 Posts: 68 Location: Bristol, England
|
Posted: Wed Mar 17, 2004 2:03 am Post subject: |
|
|
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 |
|
|
scottlu WI Founder
Joined: 15 Aug 2003 Posts: 1773
|
Posted: Wed Mar 17, 2004 10:55 am Post subject: |
|
|
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 |
|
|
Jackdeath WI Forum Novice
Joined: 16 Mar 2004 Posts: 3 Location: Montreal, Quebec, CANADA
|
Posted: Wed Mar 17, 2004 2:29 pm Post subject: |
|
|
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 |
|
|
SoLan Very Active User
Joined: 13 Jan 2004 Posts: 183
|
Posted: Wed Mar 17, 2004 2:54 pm Post subject: |
|
|
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 |
|
|
Jackdeath WI Forum Novice
Joined: 16 Mar 2004 Posts: 3 Location: Montreal, Quebec, CANADA
|
Posted: Wed Mar 17, 2004 4:25 pm Post subject: |
|
|
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 |
|
|
SoLan Very Active User
Joined: 13 Jan 2004 Posts: 183
|
Posted: Wed Mar 17, 2004 4:39 pm Post subject: |
|
|
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 |
|
|
scottlu WI Founder
Joined: 15 Aug 2003 Posts: 1773
|
Posted: Thu Mar 18, 2004 12:32 am Post subject: |
|
|
Another item to know is that triggers get executed one at a time, in the order listed. _________________ Warfare Incorporated Development Team |
|
Back to top |
|
|
|