Im making a single-super-unit campaign and I want messages to appear when you kill enemies like "you fragged a zergling" every time I kill them.
Just in the map the msg only appears the first time you kill a baddie.
The triggers im using are
-Always
-At least one kill of zergling (for example)
-display message "you fragged a zergling"
can Anyone help?
Preserve Trigger
Edit: Oh, whoops. I see the problem w/ ur trigger. Okay, first of all, use scores, since you can add and subtract those, while stilll keep track of which unit it is. Kills, it'll keep adding each time you kill, but you can never subtract a kill.
Trigger should look like this:
Conditions:
-Always (Don't really need this)
-Kill score for player is exactly 50
Actions:
-Set score to 0 for player
-display message "you fragged a zergling"
-Preserve Trigger.
Then it will just keep doing it over and over since it won't set kills to 0 (which is impossible).
If you only kill zerglings then you could just subtract 50 kill score and detect when they have at least 50 (I think zergling is 50) but if there are multiple enemies you should use Thermo's kill to cash thing.
Or you could detect the enemy player's deathcount for Zerglings and subtract one Zergling death and display the message.
That works also, but mainly for single player since you can't know which player killed it.
would it work if i said player has more kills than enemy instead of amount of kills?
No, because the once you have more kills, it'll just repeatitively say something. Use the money system from thermo found in the tutorials (I havn't figured out how it works yet), it should give you a message/kill.
QUOTE(fm47 @ Dec 11 2005, 10:21 AM)
No, because the once you have more kills, it'll just repeatitively say something. Use the money system from thermo found in the tutorials (I havn't figured out how it works yet), it should give you a message/kill.
[right][snapback]376612[/snapback][/right]
Basically, it detects who has most kills, and gives a kill to a computer so you no longer have the most kills.