Page 1 of 1

In need of some help with triggers

Posted: Thu Dec 31, 2009 6:14 pm
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.

Re: In need of some help with triggers

Posted: Thu Dec 31, 2009 7:50 pm
by thebrowncloud
Are you giving the player existing units that are previously owned by another faction, or spawning them?

Re: In need of some help with triggers

Posted: Fri Jan 01, 2010 1:13 pm
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.