Access to the triggers is performed from the main menu. Editor -> Event Editor -> Triggers. The window that pops out (see screenshot above) allows the edition and creation of new triggers.
I don't know if you remember my previous blog entry, but the outline of my scenario was as shown below. The triggers that put the events in motion are highlighted green.
- The scenario starts. In the editor, I created an event named Scenario Start Event. I now added a trigger named Scenario is Loaded Trigger.
- A counter is initialized. This counter keeps track of a series recursive ship vs sub simulation runs
- Units are added to the scenario
- The US warship is placed in the center and give a course due south, at flank speed
- A DPRK sub is placed 50 miles from the US ship and given a patrol area delineated by the reference points above
- If the US warship remains undetected and reaches an escape area south of the DPRK patrol's area. In the editor I created an event named US Warship has Escaped from the Area. I now added a trigger named US Warship has Escaped the Area.
- All units are deleted
- The counter mentioned in 1.1 is advanced
- New units are generated
- A US warship is placed in the center and give a course due south, at flank speed
- A DPRK sub is placed 50 miles from the US ship and given a patrol area delineated by the reference points above. The DPRK sub initial position is not the same as the one used in the previous simulation run. This initial position is advanced clockwise from the initial position of the US warship
- If the US warship is detected. In the editor I created an event named US Warship Was Detected. I now added a trigger name US Warship is Detected Trigger.
- A marker reference point is made at the initial position of the DPRK sub. The marker is labelled "Danger" because this an initial sub position that will generate a headache for the US commander.
- All units are deleted
- The counter mentioned in 1.1 is advanced
- New units are generated
- Same as 3.1
- Same as 3.2
In the screenshot above you will notice that in order to check a unit entering an area, the scenario author has to define such area. In this case it is a rectangle delimited by reference points (RP126 through RP129, magenta rectangle in the map). This "escape area" is entirely arbitrary from my part. I wanted to stop the simulation run when the US warship was out of the submarine patrol area (the area within the circle delimited by non-highlighted reference points (they look like an x).
Whaaaaat? No Lua yet? Lua scripting in the next episode. Stay tuned!
Cheers,
2 comments:
I might be a nerd, but damn I love this stuff!
This is great stuff, but the suspense is killing me..
Post a Comment