User Guide

Delta Force Task Force Dagger - Mission Editor Manual - 06/11/02
Page 20
Section 7: Events and Area Triggers
Events
One of the most complex and powerful parts of mission editing is creating events. With this tool,
you will be able to set up a series of actions that only occur when certain conditions are triggered.
Each event is set up as an IF-THEN statement. In other words, IF a condition is met by the game,
THEN the event takes place. An explanation of the various trigger and event If-Then statements
can be found in Appendix B.
The most important thing to remember when setting up triggers for events is that the trigger logic
goes from top to bottom. When you look at an event with multiple triggers, the order of And /Or
triggers is very important. For example:
“A and B or C” will always trigger if C is true, and only trigger if both A and B are true.
“A or B and C” will only trigger when C is true along with either A or B. More complex
logic such as “(A or B) and (C or D)” must be split into multiple events to handle the
logic within the parenthesis.
Here is an example of how to set up a win condition for Delta Force: Task Force Dagger. Say you
wanted the player (who must be set to group one, remember) to win the game if they destroy a
certain vehicle, you would do the following:
1. While in Insert Mode, place a vehicle on the map.
2. Return to Select Mode and select the vehicle.
3. Right click the vehicle with the mouse and click on Edit Item Attributes. Select a unique
Group under AI Variables. You may have to name a new group in the Groups window.
4. Open the Events window under Edit. You will see three large areas. The one on the left is
where you choose events by name. The other two are the “If” and “Then” fields. Double click on
<< New Trigger >> in the “If” field to open the Event Triggers window.
5. Select Group for the Trigger Type.
6. Select All Destroyed for Trigger Condition.
7. Under Trigger Variables select the group # of the building that you just placed then hit OK.
8. Now double click on << New Action >> in the “Then” field to open the Event Actions
window.
9. Select Blue Win for the Action Type.
10. Finally, for ease of identifying it, give the event a unique name at the top of the window such
as “Win by destroying vehicle”.
You have just created your first event! Now, when the player destroys the vehicles specified, the
mission will end and a win message will appear!
You can have multiple If and Then statements for one event by using the “And”, “Or”, and “X-
Or” buttons. Whichever you click will affect the next action you create for that event. By using
“And”, you can require that multiple units be killed, that the player is within a certain area, and
no neutrals have been killed in order to win the game. Using “Or” let’s you use just one of a set of
actions to trigger an event. If all the actions in an “Or” event occur, the trigger will still execute.
“X-Or” will trigger an event if only one of the actions listed is true. If both are true, nothing will
happen.
Other Event Commands
Reset after (seconds): Once this event has been triggered, the mission can be set to automatically
reset the trigger after a specified number of seconds has elapsed.