| 06-12-2006, 11:30 PM | #1 |
the first question: I would like to make a waygate/spell that a player can use to get in and out of a closed area (basically walk up to a fence,the fence ports them into the field which is enclosed by fences, then walk back to the same fence, and it will port them back out). The special thing about this is, I want to make it so that the critters in the enclosure (Sheep) do not wander out. Many a time I have seen some random critter using the wander (neutral) ability, accidentally port out of its pen using the waygates. I'd prefer it if the solution did not require triggers that ported the unit in and out. -------- The second question: I would like to make a trigger similar to the footmen frenzy trigger/ability that spawns the units around the base. the difference is, I would like this trigger to be able to limit the amount of spawned units in an area. The attatched image worsk like this: the Black portion is the map, imagine it is just as if you created a new map; its devoid of any detail. the other three colors represent the three spawning points, placed on the map (so that the things spawned dont all spawn in the same location). what the trigger will do is say.. spawn one owl every three seconds, the three different triggers would all spawn the same amount of owls every three seconds. Now, once we have our owls being produced, we dont want an endlessly mutliplying supply, we only want to have a supply that doesnt die out. The main trigger that covers the entire map will limit the number of owls produced to 33, it will stop the other triggers from producing once the number of owls has reached 33. Anyway to do this without using "remove, delete, or kill" triggers? Thanks in advance |
| 06-13-2006, 01:04 AM | #2 |
just set the targets allowed on the waygate ability to what you want..that should work. you could always make a region and teleport trigger but you said you didnt want to do that. as for the spawning just do this Spawn Trigger Event: Time - Every 3 seconds of game time Condition: Number of units in all units in playable map area matching (matching unit type (owl) less than 33 **(you can always just add the owls to a unit group as they are spawned and check the unit group in this trigger)** Actions: Create 1 owl in spawn<gen> **(you can change numbers and regions whatever...)** |
| 06-13-2006, 08:54 AM | #3 |
Much thanks! |
