






Age of Wonders II
is a turn-based strategy game developed by
Triumph Studios

![]() |
![]() |
Spawning Guard Units Upon Entering TerritoryPosted by: Orionshaolin (07-03-2002) on the AOW2 Scenario Forum Here's a simple one I came up with to satisfy the "to easy to approach neutral territory and cities" (IMHO) problem for my map... First, I wanted to spawn guard units. Easy enough, spawn units event, declare units, their spawn hex location, their activity (guard area) and their trigger (enter area, hex specs, radius) and conditions (random, 50%, after all, guards can't be everywhere at once!) Then I decided that if you actually capture the city, the local guard structure would be halted, so I had to set an event that would create a true flag. Easy enough, event control flag, id#(make it up, I start with the number ONE, hehe, and work my way up the flags if necessary), flag set to true, and the trigger (enter area ( city center hex) and condition (own structure, using structure ID of city, which may be redundant, but I wanted to be certain that just attacking a city, and not winning it, wouldn't set the flag). This way, if you capture the city, the control flag is created and set to true. Now, back to the conditions for the spawn, add an AND NOT condition, using the flag ID of the control flag you just created. Until the event happens, the control flag is false, cuz it doesn't exist. When the flag is created and becomes true, then the spawn reads the condition as (AND NOT (flag, now true) ) and sees that since the flag IS true, the condition is not met, and the event will no longer occur. Yay for flags! Of course, you can add a control flag to just about any event via conditions. So get creative! :-P |
Headlines » AoW1 Summer 2008 Mapmaking Tournament » A new PBEM Singles Champion is crowned - Swolte!! Poll Age of Wonders Looking for info about the original AoW? HeavenGames Sites » Caesar 3 » Caesar 4 » Pharaoh » Zeus |
|
Age of Wonders II™ is a game by Triumph Studios and published by Gathering of Developers. Age of Wonders II Heaven Copyright © 1997-2004 HeavenGames LLC. All Rights Reserved. Written permission is required if you want to use any materials published on this website for use on your own website, in its original form, or translated into other languages. |