Age of Wonders II Heaven Julia with Gameplay background

Scenario Design
    Scripting Database

SHADOW MAGIC SCRIPTING
Scripting Database

Terrain Change Event and Day Conditions

by Talon-Thorn

DOWNLOAD: sample scenario file

Outline:
A simple scenario showing how to use the Change Terrain event and Day condition.

Scripts:
The example scenario uses change terrain events and day conditions combined with structure captured and enter area triggers.

First, the player is given instructions by an message event triggered by enter area centered on the wizard's starting position. When the wizard spawns in it sets off the trigger on Day 1.**

Next, if the wizard captures the nearby tower, the swordsman will be drowned; a structure flagged event for the tower triggers a change terrain event (to water) centered on the swordsman.

Finally, if the wizard moves to the ice terrain nearby the tower, the terrain where the swordsman was standing will be changed to beach. However, this is accomplished by an enter area event, centered on the ice, which also has a condition: AND Day 2. This change terrain event will occur only if the player enters the ice area on Day 2.

(**) Note: If the wizard animation is turned off, the enter area trigger will not be triggered.

Setup:
See sample scenario file for details.

Details:


Instructions
Activate: Once

Event: Show Message
Players: (trigger player)
Message: Capture the tower to drown the swordsman, then go to the icepatch to change the terrain to beach. You will not be able to change the terrain to beach unless you enter the icepatch on day 2.
Header: Change Terrain Test
Image: 427
Spirit: estNone

Trigger: Enter Area
Players: Marinus
XYL: {coordinates where Marinus spawns into the game}
Radius: 0
StopMovement: True

Conditions: None


Terrain to Water
Activate: Once

Event: Change Terrain
XYL: {location of swordsman}
Terrain Type: ttWater
Radius: 0

Trigger: Flag Structure
Players: Marinus
StructureID: 2(WatchTower)

Conditions: None


Land to Water
Activate: Once

Event: Show Message
Players: (trigger player)
Message: Oh! That was a dirty trick. I think he drowned!
Header: Change Terrain Test
Image: 407
Spirit: estNone

Trigger: Flag Structure
Players: Marinus
StructureID: 2(WatchTower)

Conditions: None


Terrain to Beach
Activate: Once

Event: Change Terrain
XYL: {location of swordsman}
Terrain Type: ttBeach
Radius: 0

Trigger: Enter Area
Players: Marinus
XYL: {coordinates where ice patch is located}
Radius: 0
StopMovement: True

Conditions:
AND Day2

Condition Day2
DayMin: 2
DayMax: 2


No Change Day 1
Activate: Once

Event: Show Message
Players: (trigger player)
Message: Sorry. Today is still Day 1. No terrain change for you!
Header: No Terrain Change
Image: 861
Spirit: estNone

Trigger: Enter Area
Players: Marinus
XYL: {coordinates where ice patch is located}
Radius: 0
StopMovement: True

Conditions:
AND Day 1

Condition Day 1
DayMin: 0
DayMax: 1


Change Day 2
Activate: Once

Event: Show Message
Players: (trigger player)
Message: Ah! Today is Day 2. The terrain changed in to beach for you!
Header: Terrain Changed
Image: 770
Spirit: estNone

Trigger: Enter Area
Players: Marinus
XYL: {coordinates where ice patch is located}
Radius: 0
StopMovement: True

Conditions:
AND Day2

Condition Day2
DayMin: 2
DayMax: 2


Wrong Wizard
Activate: Once

Event: Show Message
Players: (trigger player)
Message: Ooops! Wrong wizard. Restart the scenario and play Marinus instead.
Header: Change Terrain Test
Image: 1
Spirit: estNone

Trigger: Enter Area
Players: Marinus/Fangir
XYL: {coordinates where Fangir spawns into the game}
Radius: 0
StopMovement: True

Conditions: None




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