Age of Wonders II Heaven Julia with Gameplay background

Scenario Design

Weekly Events

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

Say you wanted to make an event happen every week. a weekly TAX, or gold loss for example.You would need to set up seven flags, using the previous flag as a condition. Also, you will need to enter the flags in reverse order so they are triggered at the beginning of every turn, but only if the previous flag has been set. Something like this:

Flag seven
New turn
Set to true
Condition: flag 6 is true.

Flag six
New turn
Set to true
Condition: flag 5 is true.

...

Flag one
New turn
Set to true
Condition: NONE, since this is the first flag.

Now, as the computer moves through the event list on each new turn, FIRST, flag one is set to true, but no others, since they are checked BEFORE the first flag is set.

On the SECOND day, the second flag is set to true, because the first flag was set to true last turn.

After seven new turns, all flags are true. Using the seventh flag as a condition for the gold +/- event, after every seventh day, the player will have the event happen.

Event: gold reward (for appropriate player),
Amount: (-x),
Trigger: new turn,
Condition: flag seven true

Place this event after the seven flags.

Then, using the true state of flag 7, another series of events, following the gold event, reset the seven flags to false (I think you can figure this out by now so I have spared myself the typing).

Be sure that resetting the flags after the gold event happens in normal, ascending order, since your using flag 7 as your condition to reset the flags, including flag 7 itself. if you do it backwards, the other 6 flags will not reset, and you get a nasty tax day after day, starting at day 7.

This will reset the seven flags and the series starts all over again at the next new turn.

For a monthly event, you need thirty flags, in similar fashion. :-P

(For discussion on this script, post comments and queries here.)


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