Staredit Network

Staredit Network -> UMS Assistance -> fraggy messages
Report, edit, etc...Posted by Staredit.Net Essence on 2005-12-11 at 10:58:58
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?
Report, edit, etc...Posted by Neiji on 2005-12-11 at 11:06:06
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.
Report, edit, etc...Posted by Kumano on 2005-12-11 at 11:12:43
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.
Report, edit, etc...Posted by Voyager7456(MM) on 2005-12-11 at 11:59:51
Or you could detect the enemy player's deathcount for Zerglings and subtract one Zergling death and display the message.
Report, edit, etc...Posted by Kumano on 2005-12-11 at 12:21:42
That works also, but mainly for single player since you can't know which player killed it.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-12-11 at 12:59:33
would it work if i said player has more kills than enemy instead of amount of kills?
Report, edit, etc...Posted by fm47 on 2005-12-11 at 13:21:52
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.
Report, edit, etc...Posted by Kumano on 2005-12-11 at 18:42:00
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.
Next Page (1)