Staredit Network

Staredit Network -> UMS Assistance -> Condition
Report, edit, etc...Posted by Saox on 2006-05-17 at 13:36:45
Could some of you guys tell me how to make a trigger that each time a player kills 1 *doesnt matter what unit, for example zergling* then display a txt message and set custom score to x?
Report, edit, etc...Posted by Kenoli on 2006-05-17 at 15:25:55
It's the classic "Kills to Cash" problem.

Unfortunatley you can't just do this:
Trigger
Conditions:
¤ Current player kills at least 1 Zergling.
Actions:
¤ Display text for current player: "..."
¤ Modify score for Current Player: add 1 Custom.
¤ Set kills of Zergling to 0. (This action dosen't exist)
¤ Preserve Trigger.
There's just no way to set the kills, it's impossible.

You're not out of luck though. There are a few other ways to detect when a player kills something.

The Kills to Cash tutorial shows several ways of doing it.
The Kills to Cash 'Perfect' tutorial shows a more advanced way.

A program called SCTrigger can make the kills to cash triggers for you. It's easy and it works, but it's a "brute force" method. All it really does is make lots and lots of triggers. If you wanted to give the player 1 mineral for every kill up to 1000 kills, you could end up with 1000 seperate triggers, and once the player reaches 1000 kills he will stop getting minerals.

I recommend reading the tutorials.
Report, edit, etc...Posted by Saox on 2006-05-18 at 10:00:13
I know the kill to cash, but I thought there's a nother way wink.gif. Thanks anyway. Consider this problem as solved wink.gif.
Report, edit, etc...Posted by AshaMeD on 2006-05-18 at 11:07:21
yeah theres a way.. Its confusing to explain though.... yawn.gif!! You gotta do alot of stuff....
Report, edit, etc...Posted by Kenoli on 2006-05-18 at 15:02:10
QUOTE
yeah theres a way.. Its confusing to explain though.... !! You gotta do alot of stuff....
Like what kind of stuff?
Report, edit, etc...Posted by AshaMeD on 2006-05-18 at 16:54:03
well if your doing just walking and kill it would be hard!!....

Like you would need creat a new unit of the same for like a diff player so they can't see it... and when the player 8 dies that dies and tells it that they got a kill... its wierd... Its advanced triggering
Report, edit, etc...Posted by Kenoli on 2006-05-18 at 17:53:06
QUOTE
well if your doing just walking and kill it would be hard!!....

Like you would need creat a new unit of the same for like a diff player so they can't see it... and when the player 8 dies that dies and tells it that they got a kill... its wierd... Its advanced triggering
Uh huh.
Next Page (1)