ThePlatoon.com
August 21, 2008, 08:33:14 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Look around and get acquainted to the new settings and features.
 
  Home   Forum   Help Search Calendar Login Register  
  Shop Gallery  
Pages: [1]   Go Down
  Print  
Author Topic: GR:AW SP Scripting 7  (Read 883 times)
0 Members and 1 Guest are viewing this topic.
Wolfsong
One with nature...
Administrator
Full Member
*****

Rep: 6
Offline Offline

Posts: 495
1473.00 credits

View Inventory
Send Money to Wolfsong

75672554 WolfsongSwe@Hotmail.com
View Profile WWW
« on: November 29, 2006, 08:55:49 AM »

Of course you can set up multiple different conditions to trigger an event in GR:AW.

Note: What you can't do is use NOT, as in is something hasn't yet happened. But this can be solved with some ugly scripting if it's absolutly needed.

Quote
AND & OR Conditioned Triggers

AND Condition:
It's easy to create AND conditioned triggers in GR:AW, as I showed in Scripting 3 you can just stack conditions, but I'll include that here as well.

Example: You want "tank01" AND "tank02" to be destroyed AND have "vip" in "helicopter_01" as a trigger condition for the "objective1_completed" event to run.

[color="RoyalBlue"]











[/color]


OR Condition:
To make an OR conditioned trigger there is a little more work, but it's still very simple. All you need is 1 trigger for each OR condition and set the event they trigger to only run once.

Example: You want "tank01" OR "tank02" to be destroyed OR have "vip" in "helicopter_01" as a trigger condition for the "objective1_completed" event to run.

[color="RoyalBlue"]
























[/color]
Note: The important part, as I wrote above, is to add the once="true" part in the event declaration so that it only can be used once everytime the mission is run. When the first condition is triggered it will will the event. The other two will still trigger when they occur, but as the event can only run once, nothing else will happen.

AND OR Condition:
Of course you see how to combine these, but I'll write an example on this anyhow.

Example: You want "tank01" to be destroyed AND have "vip" in "helicopter_01" OR you want "tank02" to be destroyed to be the trigger condition for the "objective1_completed" event to run.

[color="RoyalBlue"]


















[/color]

Simple as that. Enjoy.
Logged

---===[ STAFF ]===---
Technical Artist at Grin Inc.
Current Projects:
- Bionic Commando (PC/PS3/360)
- Bionic Commando - Rearmed (PC/PSN/XBL)
- Wanted (PC/PS3/360)
- "Secret Project"
MONOLITH
Administrator
Hero Member
*****

Rep: 3
Offline Offline

Posts: 3169
537.00 credits

View Inventory
Send Money to MONOLITH

View Profile
« Reply #1 on: November 30, 2006, 01:16:12 AM »

Nice work Wolfsong. Brings back fond memories.....  :yup:


:cookie:
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
SMF Theme © Gaia
Valid XHTML 1.0! Valid CSS!