HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Regions and Towers

12-22-2002, 06:10 AM#1
Guest
I'm trying to create a trigger that fires whenever a Guard Tower has been built within a certain Region.

Naturally, I can't use Unit Enters or Unit Leaves Region since Towers don't travel. (Hmmm...now that's an idea...)

I need a method for seeing what a region contains, not what has entered or left it.

How can I write a trigger that essentially says...


Event
Every 2 seconds of gametime...

Condition
Region CONTAINS a Guard Tower

Action
Do whatever...


I haven't figured out how to check whether a specific region contains an item or a unit.

I tried using
If Unit of Type GuardTower enters Region.

This worked as soon as I started bulding a guard tower, but I don't want the action to run until the tower is complete. I then tried adding a condition for the tower to have a Life of 500, but this didn't work either because the tower only "enters" the region one time, when it is first starting to be built.

Any ideas? Thanks!!
12-22-2002, 09:13 AM#2
Phil_123
event: player (1-12) finishes building a building
condition: the building is a guard tower equals to true
the building is in region
actions:
--your stuff here--


(havent tested it yet)
12-22-2002, 09:16 AM#3
3DGuy


that way, you can fire a trigger every 2 secs if the tower is in the region
12-22-2002, 10:33 PM#4
Guest
DigimonKiller & 3DGUY,

That will do it!
Thanks for the help guys!


The Mapper Named Uncle