Age of Wonders II Heaven Julia with Gameplay background

Scenario Design

Storm Blasting Various Locations On A Rotating Basis

Send In by: Lord Foul (08-24-2002) on the AOW2 Scenario Design Forum

Script to blast various locations on rotating basis using two boolean-variable loops.

Event: Control Flag
Name: Preset flag A (flagID 10, true)
Activate: once
Trigger: Yaka's turn (player 1)

Event: Control Flag
Name: Trigger Action/Reset (flagID 42, true)
Activate: Always
Trigger: Yaka's turn
AND Flagged 30

Event: Control Flag
Name: Set Top (flagID 30, true)
Activate: Always
Trigger: Yaka's turn
AND flagged 29

Ditto for set flag 29/28/27, and then...

Event: Control Flag
Name: Keepalive 26 (flagID 26, true)
Activate: Once (no need since we'll never be turning it off)
Trigger: Yaka's turn

After that, to accommodate for order of event processing, we do the series reset:

Event: Control Flag
Name: Reset Top (/29/28/27) (flagID 30/29/28/27 false)
Activate: Always
Trigger: Yaka's turn
AND flagged 42 (i.e. the reset/action flag)

Now what we have there, minus one element yet to come, is the timing loop which pauses 6 rounds (blank/27/28/29/30/42) between shots. Now we introduce the ratcheting loop:

Event: Control Flag
Name: Turn On Flag D (flagID 13 true)
Activate: Always
Trigger: Yaka's turn
AND flagged 42
AND flagged 12

Event: Control Flag
Name: Turn On Flag C (flagID 12 true)
Activate: Always
Trigger: Yaka's turn
AND flagged 42
AND flagged 11

Event: Control Flag
Name: Turn On Flag B (flagID 11 true)
Activate: Always
Trigger: Yaka's turn
AND flagged 42
AND flagged 10

Event: Control Flag
Name: Turn On Flag A (flagID 10 true)
Activate: Always
Trigger: Yaka's turn
AND flagged 42
AND flagged 13
AND NOT flagged 12
(otherwise when it got to C it'd go flaky, adding first D then A )

Once you have this, it's a trivial matter to make one of these for each pair of lettered flags, AB, BC, CD and DA.

Event: Storm
Name: StormAB
Activate: Always
Location: XYL
(type, randomrange and source optional)
Trigger: Yaka's turn
AND flagged 10
AND flagged 11

Event: Control Flag
Name: Reset A (flagID 10 false)
Activate: Always
Trigger: Yaka's turn
AND flagged 10
AND flagged 11

Finally, to tie it all up (this could come anywhere AFTER the DCBA flags get turned on since it's integral to those but nothing subsequent) you need one of these:


Event: Control Flag
Name: Reset the Reset (flagID 42 false)
Activate: Always
Trigger: Yaka's turn
AND flagged 42

Because while blowing the crap out of things every round after it starts is an interesting idea, it more or less removes the point of the repeating timer loop.

Enjoy, hopefully it comes in useful for someone else; I don't s'pose anyone knows a way to change a hero's allegiance or prevent them from action short of teleporting into a rock room? Ideally, I'd love to have the Illearth Stone change the allegiance of any unit other than a Lord who touches it...


Back to Event Scripting Resource Database Menu


Back to Scenario Design Main Menu

HG Logo

Headlines

» AoW1 Summer 2008 Mapmaking Tournament

» Interview Kirky Picardo

» Scenario update

» The making of...

» A new PBEM Singles Champion is crowned - Swolte!!

Poll

What unit most resembles you?

Halfling peasant

Undead Vampire

Human Knight

Tigran Prowler

Orcish Warlord

Archon Saint

Dwarven Engineer

Chaos Spawn

Results :: Other Polls

Age of Wonders

Looking for info about the original AoW?
Visit AoW Heaven!

AoWH Logo

HeavenGames Sites

» Main Portal

» Age of Empires

» Age of Empires 3

» Age of Kings

» Age of Mythology

» Age of Wonders

» Age of Wonders 2

» Battle for Middle Earth 2

» Caesar 3

» Caesar 4

» Children of the Nile

» Dungeon Siege

» Empire at War

» Empire Earth

» Emperor: RotMK

» Medieval 2: Total War

» Pharaoh

» Rise & Fall: CaW

» Rise of Legends

» Rise of Nations

» Rome: Total War

» Stronghold

» Stronghold 2

» SW: Galactic Battlegrounds

» Zeus