PDA

View Full Version : Some trigger help for a noob.


Moser
01-07-2006, 3:00 PM
How do I set a trigger so when a player kills a computer's building, zerglings unburrow themselves and attack?

Also, how do I make it so if they destroy a building something blows up?

I'm a noob. haha.

-Moser

U-238
01-07-2006, 5:28 PM
To make the Zergling popup you'll have to have have the following

The Zerg player that controlles the zerglings has to be computer controlled
You need to make the following trigger...

Condition: Kills
Player * Kills at least 1 (whatever building you want)

Action: Create Units With Properties
Create * Zerg Zerglings for player *(the owner of the zerglings)
Apply Properties: Check the "Burrowed" Box

As for the other thing could you be a bit more specific?

MidnightGladius
01-07-2006, 5:29 PM
For the first one, simply place the lings you want to unburrow wherever you want them - for a neutral player. This is very important. Otherwise, they'll unburrow themselves whenever your units come near.

C: Player CPU brings at most 0 "Building" to "Location" (center the location on the building)
A: Give all Zerglings from Player Neutral to Player CPU
A: Order all Zerglings for Player CPU to patrol from Anywhere to "location" (location you want them to attack to)

For the second one, place a location on the "trigger" building and one on the "to-be-destroyed" building.

C: Player Whomever brings at most 0 "Trigger Building" to "Trigger location"
A: Destroy 1 "To-be-destroyed Building" at "To-be-destroyed Location"

---

And there you have it.

Moser
01-08-2006, 8:42 PM
Ah, thank you guys. For that first trigger, with the zerglings; do I have to have the zerglings burrowed already or not? Because I want them to pop up and roam around and kill..

MidnightGladius
01-08-2006, 9:27 PM
Yep, they have to be burrowed first.