Staredit Network

Staredit Network -> UMS Assistance -> keeping track of who killed who
Report, edit, etc...Posted by Zwo on 2006-08-17 at 18:37:23
I'm making a bound and i've come up with the idea to show the number of lives as HP of the bounder (a zergling).
Now i have 1 problem here... If you have 1 live, you'll have 1 HP. That means that you can easily be killed by your teammates.
As a solution i thought up to remove 1 live from the bounder that killed the other bounder. And the bounder that got killed, will be "revived" with 1 HP.

The triggers i came up with aren't that hard.



Trigger
Description:
-
Conditions:
¤ player X kills 1 zergling
¤ player Y suffered 1 deaths
Actions:
¤ setscore for player X: substract 1 custom
¤ setscore for player X: setto 0 kills
¤ setscore for player Y: add 1 custom
¤ setscore for player Y: setto 0 deaths
¤ preservetrigger


custom score here are the lives.

but if someone dies in the bound and someone else got killed by a teammate at the same time, the triggers might not work as intended.

I'd like to know if someone knows a solution to this problem.
Report, edit, etc...Posted by Kenoli on 2006-08-17 at 18:46:17
QUOTE(Zwo)
but if someone dies in the bound and someone else got killed by a teammate at the same time, the triggers might not work as intended.
I don't see how. When a unit dies by kill trigger it dosen't count toward the deaths of that unit.

Also, give the zerglings 0 attack, so it would take two 2 hits for someone to kill another zergling, which wouldn't be possible if you're constantly resetting it to 1.
That, or use higher numbers to represent the lives. Like 10HP == 1life, 20HP == 2lives, etc.
Report, edit, etc...Posted by Zergling[SK] on 2006-08-17 at 18:57:19
The kills in actions are different then the kills in conditions. The kills in condition are one for every unit that you kill, whereas the kills in actions are consisted of points. So say you were to kill one zergling, instead of subtracting that one kill it would subtract the points of that kill which in this case would be 50. So, this is what I do:


Trigger
Description:
Kill
Players:
¤ whoever
Conditions:
¤ player X kill score is atleast 50.
¤ player Y deaths for zergling is atleast 1
Actions:
¤ custom score for player X subtracted by 1
¤ kill score for player X subtracted by 50.
¤ custom score for player Y added by 1
¤ deaths for zergling for player Y set to 0
¤ preserve trigger


That is what I use for detectings kills/deaths. That way you can make it for mulitple units and use the same trigger, just chance the kill score in conditions, and the deaths for whatever unit. And, instead of setting the kills points to 0, just subtract 50, that way if they kill more than one zergling it will keep adding points instead of just adding 1, for what may be 3 kills. Hope that helps.
Report, edit, etc...Posted by Urmom(U) on 2006-08-17 at 18:59:13
Doesn't killing a teammates zergling still give you kill points? You could just use "Current Players kill score is at least 50" in the conditions and then subtract 50 kill score in the actions.
Report, edit, etc...Posted by Zwo on 2006-08-18 at 05:13:32
QUOTE(Kenoli @ Aug 17 2006, 11:45 PM)
I don't see how. When a unit dies by kill trigger it dosen't count toward the deaths of that unit.

I forgot about that, thanks wink.gif

QUOTE
Also, give the zerglings 0 attack, so it would take two 2 hits for someone to kill another zergling, which wouldn't be possible if you're constantly resetting it to 1.
[right][snapback]546579[/snapback][/right]

I've tried that, but the ling will still die, it just takes a bit longer (about 15 hits)

QUOTE(Zergling[SK)
,Aug 17 2006, 11:56 PM]The kills in actions are different then the kills in conditions. The kills in condition are one for every unit that you kill, whereas the kills in actions are consisted of points. So say you were to kill one zergling, instead of subtracting that one kill it would subtract the points of that kill which in this case would be 50. So, this is what I do:











Trigger
Description:
Kill
Players:
¤ whoever
Conditions:
¤ player X kill score is atleast 50.
¤ player Y deaths for zergling is atleast 1
Actions:
¤ custom score for player X subtracted by 1
¤ kill score for player X subtracted by 50.
¤ custom score for player Y added by 1
¤ deaths for zergling for player Y set to 0
¤ preserve trigger


That is what I use for detectings kills/deaths. That way you can make it for mulitple units and use the same trigger, just chance the kill score in conditions, and the deaths for whatever unit. And, instead of setting the kills points to 0, just subtract 50, that way if they kill more than one zergling it will keep adding points instead of just adding 1, for what may be 3 kills. Hope that helps.
[right][snapback]546590[/snapback][/right]


Thanks, didn't think of that smile.gif
QUOTE(urmom @ Aug 17 2006, 11:58 PM)
Doesn't killing a teammates zergling still give you kill points?  You could just use "Current Players kill score is at least 50" in the conditions and then subtract 50 kill score in the actions.
[right][snapback]546593[/snapback][/right]

I wanted to do that, but I posted 1 trigger here that would give you an idea of how I was doing it.




Thanks for everyone's help happy.gif (thread can be locked now)
Next Page (1)