Age of Wonders II Heaven Julia with Gameplay background

Scenario Design

Scripting of Storm Altar With Activation Costs

Posted by: Damon Rellik(12-19-2002) on the AOW2 Scenario Forum

I took "Magog's" Altar Script a bit further and have come up with how to pay for each activation cost plus that you can't go negative in payment.

Event Main:

Type: Storm
Activate: Always
XYL: Coordinates of the storm
Storm type: Choose kind of storm you want to use.
Random range: Range of the storm
Source player: Trigger player

Trigger: Enter area
Players: Select the players who are allowed to activate the storm.
XYL: Coordinates for activation place
Radius: 0
Stopmovement: True

Conditions: And Flagged
Conditions: And Mana

Then, in the Condition field:

First Condition:
Type: Flagged
FlagID: 1

Second Condition:
Type: Mana
Players: Select the player(s)
ManaMin: 200 (for instance) or the amount of mana that is minimal required to trigger the storm
ManaMax: a very high number (I use 99999)

Then, use a new Event:

Type: Control Flag
Activate: Always
FlagID: 1
Active: True
Trigger: New Turn
Players: Select player

Again, a new Event:

Type: Control Flag
Activate: Always
FlagID: 1
Active: False
Trigger: Enter Area
Players: Select player(s)
XYL: Coordinates for the altar

Last new Event:

Type: Mana Reward
Activate: Always
Players: Select player who should pay
ManaMin: -100 (yes, that is a minus sign)
ManaMax: -100 (in this way you pay 200 for each activation)
Trigger: Enter Area
Players: Select player(s)
XYL: Coordinates altar

Conditions: And flagged

Then, in the Condition field:

Type: Flagged
FlagID: 1

So, you now got an altar which gives one blast a turn plus payment of 200 mana and 200 mana required to even start blasting.

(Discussion on this script can be found 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