HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Footman Triggers

05-18-2004, 10:13 PM#1
superpanda20
I can't figure out how to make a trigger activate when a specific building is built inside a region i have created. Can anyone tell me how to do this?
Please?
05-18-2004, 10:17 PM#2
Panto
You might want to have a trigger that activates when a building is completed (event), that checks to see if it's in the region (condition).
05-18-2004, 10:28 PM#3
superpanda20
Yeah thats what i was thinking, but i cant figure out how to create that event (when the structure is created)
05-19-2004, 01:34 AM#4
superpanda20
erm can anyone please help me? Please?
05-19-2004, 03:38 AM#5
Luther
It's under unit: player-owned unit event

Event: Unit - A unit owned by Player (whatever) Finishes construction

I'm assuming this is for your starting and setting units created triggers, in the which case you will have to do multiple events: like this

Events
Unit - A unit owned by Player 1 (Red) Finishes construction
Unit - A unit owned by Player 2 (Blue) Finishes construction
Unit - A unit owned by Player 3 (Teal) Finishes construction
Unit - A unit owned by Player 4 (Purple) Finishes construction
Unit - A unit owned by Player 5 (Yellow) Finishes construction
Unit - A unit owned by Player 6 (Orange) Finishes construction
Unit - A unit owned by Player 7 (Green) Finishes construction
Unit - A unit owned by Player 8 (Pink) Finishes construction
Unit - A unit owned by Player 9 (Gray) Finishes construction
Unit - A unit owned by Player 10 (Light Blue) Finishes construction
Unit - A unit owned by Player 11 (Dark Green) Finishes construction
Unit - A unit owned by Player 12 (Brown) Finishes construction

Then have a condition that says:
Conditions
(Your region <gen> contains (Constructed structure)) Equal to True

if you want it to work for many people, just use stacked OR functions:

i.e (Your region <gen> contains (Constructed structure)) Equal to True OR (Your region2 <gen> contains (Constructed structure)) Equal to True

and so on. Though if this is for the units, I'm not quite sure what you need the region for?
05-19-2004, 06:13 AM#6
TheReaper
Ok i'm not a trigerer but i think that this would be easier:
Event:
Unit-unit enters region "Your regin"<gen>
Condition:
Unit-type (of triggering unit) is eqald to "Your building"
Action:
And then do what you want. ^_^

I'm not sure if it will help, but still
05-19-2004, 07:31 AM#7
Luther
I thought about that but I think (haven't tested) that that would cause the trigger to be set off when the building started construction, not when it finishes, if not, then that would be simpler.
05-19-2004, 08:24 AM#8
TheReaper
Quote:
Originally Posted by Luther
I thought about that but I think (haven't tested) that that would cause the trigger to be set off when the building started construction, not when it finishes, if not, then that would be simpler.
Well of so, you can just make the action:
wait (and the building's construction time)
05-19-2004, 01:25 PM#9
Panto
That wouldn't be a good solution at all, because the building can be cancelled or the worker can go off and do something else.

Really, if at all possible, you should try to have the event most specifically appropriate to what you want to accomplish. That leaves less room for shenanigans to screw up your intent.
05-19-2004, 02:32 PM#10
TheReaper
Quote:
Originally Posted by Panto
That wouldn't be a good solution at all, because the building can be cancelled or the worker can go off and do something else.

Really, if at all possible, you should try to have the event most specifically appropriate to what you want to accomplish. That leaves less room for shenanigans to screw up your intent.
yeah i didnt thought about that one :\
i just wanted to make it an easier way