| 01-25-2003, 10:51 PM | #1 |
I just need to know how when, i have a player creating a unit in my case pike master, how i can make it create 6 pikemen with him? |
| 01-26-2003, 12:48 AM | #2 |
what do you mean, "create"? Do you mean he has a spell that's summoning one and you want to summon more? Do you mean that you're creating a pikeman through triggers and you want to create more? Do you mean when you train a pikeman in a barracks or some other building you want it to pump out 6 instead of one? fr0ggE |
| 01-26-2003, 12:55 AM | #3 |
because of the way i want my map to work, you train a captain of a group of men. Ie pikemaster>pikemen. I need a trigger that creates X amount of guys when thier captain is created. |
| 01-26-2003, 01:07 AM | #4 |
Event: Player Owned Unit Event--> A unit owned by (Player X) finishes training a unit Conditions: Unit Type comparison--> Unit type of (trained unit) = (whatever you want in this case pike master) Actions: Whatever you want, in this case maybe make a region next to the building (barracks) that builds the pike masters, and have Action-->Unit Create (facing an angle)--> Create (6) (Pikemen) In Random Points in (your region) facing blah degrees, or something like that fr0ggE P.S. another event that might work is "Unit Enters Region--> playable map area" then do a unit type comparison. If you want your created units (the pikemen) to be clustered around the pikemaster, you could create a region around the pikemaster and then have them pop up in that region |
