Using A Storm Event To Guard A Territory of Self and Allies

Posted by: Myrmidon (10-10-2002) on the AOW2 Scenario Forum

Say you have a Lightning Storm event on a bridge, guarding Blue Wizard’s territory. It is a simple matter to make sure that Blue Wizard’s own units don’t trigger it by leaving Blue Wizard off the Trigger list.

I was thinking though… What if I want forces that are on peaceful terms or allied with Blue Wizard to be able to pass the bridge without getting dancing the electricity jig? So I set up a series of Control Flags that keep track of Diplomatic Relations each turn.

Like this…

Event: Control Flag - (Name it something like "D.R. - BvsR" - Blue vs. Red Diplomatic Relations)
Activate: Always
FlagID: (Start with 1)
Active: True
Trigger: New Turn
Create Condition: Diplomatic Relations - (Name it "Red Wizard")
Player A: Blue Wizard
Player B: Red Wizard
Relations: Set Peace and Allied to True
Conditions: AND - "Red Wizard"

(You can Copy/Paste the Event and change the “Name”, “FlagID” and “Player B” for each new Wizard.)

Now create the Lightning Storm Event.

Event: Storm - (Name this one "Red Wizard Storm")
Activate: Always
XYL: (#,#,#)
StormType: stLightning
RandomRange: 0
Players: (Chose "Red Wizard")
Trigger: Enter Area
Players: (Chose "Red Wizard")
XYL: (Bridge Coordinates)
Radius: 0
StopMovement: True
Create Condition: Flagged - (Name it "Red Wizard")
FlagID: (Start with 1)
Conditions: AND NOT - "Red Wizard"

(Copy/Paste – Change “Name”, “Players”, Condition “Name”, and “FlagID” for each remaining Wizard.)

Note: You can, instead, make it simpler by creating a Diplomatic Relations Condition in the Lightning Storm event for each Wizard besides Blue. In that case, create the Conditions in the Conditions Tab and set “Player B” to each individual Wizard. If you do it this way, you only need to set up one Lightning Storm event.

Why do I bother creating the Control Flags in the first place then? Because I have found that I can make very good use of the same Control Flags in many other events, with a greater degree of control in how they are put to use.

Hope this was helpful to some of you.

Back to Event Scripting Resource Database Menu

Back to Scenario Design Main Menu