Quote:
Originally Posted by Seahawk
How to use events in DFBHD and DFX2?
|
As you may already know the event editor coordinates the logic instructions or (algorithms) required to make things happen in the game.
Events are set in the Mission Editor or NILE Editor. The events can be referenced by the game with other events or script. The script format used for DF is called .WAC
Simplified Example:
This event changes the AI Alert State and gives it an objective - IE go to a waypoint (a marker that can describe instructions about a location and path to follow or trigger another event).
Event 1:
Actions:
Change group 4 AI to red alert
Redirect group 4 to a waypoint
This event is (triggered) by the preceding event, Event 1
Event2:
Triggers:
Event 1 has been triggered and group 4 is at waypoint
Actions:
Redirect group 4 to next waypoint
If triggered in the WAC
(and never() means triggered only one time)
if event(1) and never() then
text("Group 4 is on Red Alert!")
do other actions
endif
if event(2) and never() then etc...