HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I need a trigger..

09-03-2003, 03:17 AM#1
Ironboy
Anyone can think a trigger that allow

when a player build a type of building in a specified region, then this building creates/trains automatically every XXXX seconds a unit?

but the created unit is not owned by the creator of the building, but assigned to a computer player.


Anyone know how?

i feel kind of complex.....

Any idea would be greatly appreciated
09-03-2003, 03:31 AM#2
Thunder-Hunter
Yes I do know how to I think.

Trigger 1
-----------------
Event: Every X seconds (Periodic)
Condition: Unit in region = true
Condition: Unit type = X
Action: Pick every UnitX in region and do :order unit to build Unit: (I think)

Trigger 2
-------------------
Event: Unit Enters Region
Condition: Unit = X
Action: Give triggering unit to player X and change color

I think this is how you would do it.. But this only covers what you said you wanted, not ordering them to attack or anything though. I can go into that next if you need me to. Although this will pick ALL buildings of that type not just one. I can get into setting it to one building though if needed.

Hope this helps:ggani: !
09-03-2003, 04:53 AM#3
Ironboy
Quote:
Originally posted by Thunder-Hunter
Yes I do know how to I think.

Trigger 1
-----------------
Event: Every X seconds (Periodic)
Condition: Unit in region = true
Condition: Unit type = X
Action: Pick every UnitX in region and do :order unit to build Unit: (I think)

Trigger 2
-------------------
Event: Unit Enters Region
Condition: Unit = X
Action: Give triggering unit to player X and change color

I think this is how you would do it.. But this only covers what you said you wanted, not ordering them to attack or anything though. I can go into that next if you need me to. Although this will pick ALL buildings of that type not just one. I can get into setting it to one building though if needed.

Hope this helps:ggani: !



nice man, thxs a lot. i'll try it later.

as for ordering them i know how to do that myself


but one thing...

u sure about this? Action: Pick every UnitX in region and do :order unit to build Unit: (I think)
09-03-2003, 05:01 AM#4
Raptor--
theres an action called

'unit - issue train/upgrade order'

which is probably what you're looking for