HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Triggerring Units Help

02-04-2005, 10:48 PM#1
paperclip
Okay, i need to know how to make a unit that stands on a region then that unit is produced in another region. Now i want 17 units to be produced from one region and another 17 units to be produced in another region but i want the units to come out of the region one by one not instantly created so that you have a swarm of guys popping out of no where. No, what i want is the units to come out one by one and walk to another region. If this is making you confused you can see a screenshot of the map i am trying to make.



Okay, so now if you didn't know what i'm talking about you should have a good idea by now. I want it when one of the two units up on the island step into the hill where the flag is, 17 units are created from one of the regions under the "Castle" and another 17 units are created from the other region under the "Castle" for a total of 34 units of that one unit.

Another complex part of that is that when 34 units of that unit are produced or in that region i want it so that the triggers producing that unit will stop until less than 34 units exist (not having to be that unit) on the playing field. I've tried this many times before it just doesn't work out correctly so i decided to post my question here to see if you guys knew how to do it.

Oh, and if any of you know how to do custom script that would be helpful too because in the game when you get a certain amount of kills you get a credit to buy units. Well, as you might have seen from the picture there isn't room on the map for a place to chose which units you want to buy with your one credit so i was wonderring if it was possible to make a unit menu pop open when you recieve a credit and in that menu it lists all the units you can buy with one credit so that you don't have to do anything but click on that unit and then that unit will appear on the unit creating hill so you can mass create 34 units of that unit.

If any of you are confused then i'm sorry. I'm kinda confused myself. I'm trying to remake a popular game based of Age of Empires because my brother and I have already remade Castle Blood from Age of Empires and i wanted to remake another popular game to go with Castle Blood.

Thanks for reading through all of this and thank you for all of your help i hope i will recieve. -paperclip
02-05-2005, 11:22 PM#2
paperclip
Dang, i guess i posted a stumper...
02-06-2005, 01:45 AM#3
johnfn
Events
Unit - A unit enters Your Region
Conditions
Actions
For each (Integer A) from 1 to 17, do (Actions)
Loop - Actions
Unit - Create 1 Unit for Whatever Player at (Center of Wherever) facing Default building facing degrees
Unit - Create 1 Unit for Whatever Player at (Center of Wherever#2) facing Default building facing degrees
Wait 1.00 seconds


That should work.
02-06-2005, 09:43 PM#4
ThyFlame
It sounds as if you want something more like this:

Events
Unit - A unit enters Your Region
Conditions
Actions
For each (Integer A) from 1 to 17, do (Actions)
Loop - Actions
Unit - Move 1 Unit for Whatever Player at (Your Region) to (Other Region)
Unit - Order (entering unit) to move to (Different region)
Wait 1.00 seconds

[edit]
The loop is wrong, since you'll likely never know the exact amount you want. I believe you can simply put a wait at the end of this trigger and forgo a loop and still get the desired results.