In need of some help with triggers

Post Reply
frankie_tang
Terran Settler (Unemployed)
Terran Settler (Unemployed)
Posts: 4
Joined: Thu Dec 31, 2009 6:06 pm

In need of some help with triggers

Post by frankie_tang »

I'm currently working on a map (defense game) and i need help with a trigger, this trigger will give a given player (x number) of units every (x number) of kills. could somebody tell me the trigger for that?
I can't seem to find a combination that works.
Last edited by frankie_tang on Thu Dec 31, 2009 6:42 pm, edited 1 time in total.
User avatar
thebrowncloud
Zerg Hydralisk Nail Stylist
Zerg Hydralisk Nail Stylist
Posts: 570
Joined: Sat Jul 04, 2009 11:17 am

Re: In need of some help with triggers

Post by thebrowncloud »

Are you giving the player existing units that are previously owned by another faction, or spawning them?
"Imagination is the beginning of creation. You imagine what you desire, you will what you imagine and at last you create what you will."
-George Bernard Shaw
User avatar
Dem0nS1ayer
Terran Science Facility Guinea Pig
Terran Science Facility Guinea Pig
Posts: 210
Joined: Fri Jun 12, 2009 2:35 pm
Location: In a cave on Aiur, hiding from the Zerg

Re: In need of some help with triggers

Post by Dem0nS1ayer »

Use death counts.  Have the condition be:

Player (Enemy computer) has suffered at least one death of [men].

Then the action:

Set deaths for player (human player): Add 1 for [unit] (pick any unit that you wouldn't normally see in-game, like Cantina)
Set deaths for player (Enemy computer): Set to 0 for [men].

Then, make the next condition according to how many kills you want them to get.  Let's just say they need 5 kills.  The condition would be:

Player (human player) has suffered at least 5 deaths of [unit] (the one that picked for the previous trigger)

Then the action:

Create [men] for player at 'location'.
Set deaths for player: Set to 0 for [unit]
Preserve Trigger.

Those two triggers should work as long as the computer's units are solely being used as the "runners" and its deaths aren't being changed in any other trigger.
Starcraft - Rise From The Ashes
index.php?topic=1678.0
Post Reply