HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Two Trigger Problems

07-24-2002, 05:41 AM#1
Guest
1) I want to design a trigger where if someone brings a unit to a certain location, all the units at another location are given to that player. I can't find anything at all related to "all units".

2) I want a trigger that gives yuo money for having a building at a location every 4 minutes. The conditions would have to be that you bring a building to a location, and nobody else does.

How do I do these two triggers?
07-24-2002, 11:36 PM#2
Guest
Anyone??
07-25-2002, 04:00 PM#3
Zedric
I don't have access to WE right now, but this might work...

1) Put all of the units in the "other" region into one unit group. Then simply:

Unit Group: Pick every Unit in Unit Group and (Give unit to player)

2) Never done a time related trigger. I could figure it out, if I had WE here, but I don't. Sorry.
07-26-2002, 04:31 PM#4
Guest
You could try this.

when the building is built (I supose "unit enters area" and "unit type is ..." will do) you start a timer (create the variable first) as a repeating timer that will expire in X time. Then enable another trigger, one that will be

when <your_timer> expires
give x money to player X
etc.

Also, make sure you disable that trigger when the building dies

I don't have WE near, so i cant give you exact code, but that would help.
07-27-2002, 02:34 PM#5
Guest
For your first question here's how I did it...

Event: Time-Time Elapsed = 60

Condition:

Action: Unit Group - Pick every unit in
(Units in Region 001 <gen> owned by player 2(blue)) and do change owner of (picked units)to player 1(red)

Action: Unit Group - Pick every unit in
(Units in Region 001 <gen> owned by player 1(red)) and do change owner of (picked units)to player 2(blue))

The Event section is just a filler to let it know to do it always. You could do like I did and make it a chat message. I use it for a panic button against the AI... lol
07-27-2002, 02:37 PM#6
Guest
On the tool bar, go to Layer > Regions. And make a box on the map.

You probably already knew that though.
07-28-2002, 02:06 AM#7
Guest
Aight thx. And about the region pallette and one other message, thank you captain obvious.