HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

About region contains

09-17-2002, 11:21 PM#1
ngevangelion4
Ok i have a map where a hero needs to step on circles that correspond to a unit type. Now the hero is supposed to go on the circle when the corresponding unit moves into an area covered in blight. But if the hero doesn't step on the circle while the unit is on the blight the controler of the hero loses 1 life (out of 8) if the hero steps on the circle when the unit is in the blight area the unit dies. I got the trigger step up they way i thought it is supposed to be but there is a problem and ill give examples to help explain.

This is what happens when i tested my map:

Unit A goes into the blight and the hero goes to
step on circle A nothing happens unit A doesnt die. The unit only dies if the hero is standing on circle A before unit A enter the region.

I dont know why but i think its because the hero needs to be circle A before unit A enters the area. But I cant find a condition that allowes the hero to be on or walk on to the circle to start the trigger.

So far this is my Trigger:
Events
A unit enters HitArea <gen>
A unit enters Downbutton <gen>

Cond.
Downbutton <gen> contains (hero 0029 <gen>) equal to true

Action
Unit Kill triggering unit


I could really use some help asap thanks alot
09-18-2002, 12:46 AM#2
h0pesfall
If i understand what you are trying do to... make a Unit enters region event on your circles (of power?), and triggers an action that picks every unit of type <the unit type that the circle corresponds to> in the blight region and kills them.

would probably look something like:

Events:
Unit - A unit enters <Circle1>

Conditions:
(Owner of (Entering unit)) Equal to <whatever player/playergroup you want>
Unit type of (Entering unit) Equal to <the hero type>

Actions:
Pick every unit in <Blight region> matching ((Unit-type of (Matching unit)) Equal to <type of unit that you want to kill>)) and do Kill (Picked unit)
09-18-2002, 01:58 AM#3
ngevangelion4
Ok wheres the action part I can't find the action that does that stuff, if you can tell me the name of the action thats be great.
09-18-2002, 09:39 AM#4
Guest
There are problems where some events are actually triggered before the event is registered (I don't want to say before it actually happens, but that's basically it).

In this case, the unit triggers the enters region event, but is not considered to be inside the region yet, which is why the condition fails. In my testing, I've found that the side of the region that the unit enters can make a difference.

The best way around it is to create another, larger region around the one that triggers the event and then check to see if it is inside that larger region.

The action that ZZzz suggested is Unit Group - Pick every unit...