Staredit Network

Staredit Network -> UMS Assistance -> Kill count is this Possible?
Report, edit, etc...Posted by Clandestine on 2005-01-01 at 14:30:59
I wnat to make a trigger so that when the player kills 3 anyunit he gets 1 mineral, so every time he kills 3 units he get 1, he kills another 3 he get 1 more and another 3 he gets another, and so on. Is their a way to do this with just 1 trigger so that i dont have to keep adding up like,

trigg 1
>player kills 3 units

>add 1 mineral to current player

trigg 2
>player kills 6 units

>add 1 mineral to current player

trigg 3
>player kills 9 units

>add 1 mineral to current player
(ect......)

is their a trigger so that ithe player can get 1 mineral every 3 kills in just one trigg? or do i have to make multiple triggers,

Thank you
Report, edit, etc...Posted by AqoTrooper on 2005-01-01 at 14:48:56
Create those triggers:

Trigger 1:
Players:
All Players

Conditios:
Switch 1 is cleared
Current player's kills score is at least 1

Actions:
Set score for current player to 0
Set Switch 1
Preserve trigger

Trigger 2:
Players:
All Players

Conditios:
Switch 1 is set
Switch 2 is cleared
Current player's kills score is at least 1

Actions:
Set score for current player to 0
Set Switch 2
Preserve trigger

Trigger 3:
Players:
All Players

Conditios:
Switch 1 is set
Switch 2 is set
Current player's kills score is at least 1

Actions:
Set score for current player to 0
Set resources for current player: add 1 minerals
Clear Switch 1
Clear Switch 2
Preserve trigger
Report, edit, etc...Posted by Clandestine on 2005-01-01 at 15:06:15
yea but i want the player to still be able to see his kill count, i dont want them to reset every 3 kills, i want it to keep adding up

will this one work also?

Player(s)1-6
*Con
>Kills(CurrentPlayer, AtLeast, 10, AnyUnit);
*Act
>SetResources(CurrentPlayer, Add, 1, Ore);
Comment("minerals");

and just make one of those for every 3 kills, that seems easy
Report, edit, etc...Posted by MapUnprotector on 2005-01-01 at 15:58:31
Hmm you could have something like

Conditions:
Current player kills 1 anyunit

Action:
Add one custom
add 1 death counter
set kill to 0


Condition:
Currentplayer death counter = 3

Action:
Add 1 mineral
set death to 0

Kill count would be represented by custom score
I believe that should work if the condition Kills is related to the Action kill score

QUOTE
Create those triggers:

Trigger 1:
Players:
All Players

Conditios:
Switch 1 is cleared
Current player's kills score is at least 1

Actions:
Set score for current player to 0
Set Switch 1
Preserve trigger

Trigger 2:
Players:
All Players

Conditios:
Switch 1 is set
Switch 2 is cleared
Current player's kills score is at least 1

Actions:
Set score for current player to 0
Set Switch 2
Preserve trigger

Trigger 3:
Players:
All Players

Conditios:
Switch 1 is set
Switch 2 is set
Current player's kills score is at least 1

Actions:
Set score for current player to 0
Set resources for current player: add 1 minerals
Clear Switch 1
Clear Switch 2
Preserve trigger


Hm and regarding this, I think its a long winded way to do

Condition:
Current player kills 3 unit

Action:
Set kill score 0
add one mineral
Report, edit, etc...Posted by FaZ- on 2005-01-01 at 16:29:03
Yeah do what devilesk did, that what i was planning to post until he said. You can use the leaderboard as a display of kill count while keeping a seperate count for the triggering.
Report, edit, etc...Posted by Urmom(U) on 2005-01-01 at 19:19:30
you cant subtract kills. you have to subtract the kill score. try this


null
Trigger
Conditions:
¤ Player 1's kill score is at least 1
Actions:
¤ Modify Score for player 1:Subtract 1 Kills
¤ Set Score for player1:Add 1 Custom(so you can see how many kills for leaderboard use)
¤ Set Deaths for player1:Add 1 for minerals patch
¤ Preserve Trigger



null
Trigger
Conditions:
¤ Player 1 has suffered at least 3 deaths of mineral patch
Actions:
¤ Set Deaths for player1: subtract 3 for mineral patch
¤ Set Resources for player 1: Add 1 ore
¤ Preserve Trigger


all the others wont work as well because of wrong conditions and no preserve
Report, edit, etc...Posted by SA_Max71 on 2005-01-01 at 19:56:50
Of all of the posts I have seen, AqoTrooper was the best. Now, there are a few ways to do this. The first way looks something like this:


Trigger
Description:
wow... a whole : censored.gif : amount of tirggers tongue.gif
Players:
¤ what ever player you want
Conditions:
¤ current player has killed at least 1 unit
¤ current player has killed at most 25 units
Actions:
¤ add 3 minerals for current player



Trigger
Description:
wow... a whole : censored.gif : amount of tirggers tongue.gif
Players:
¤ what ever player you want
Conditions:
¤ current player has killed at least 26 unit
¤ current player has killed at most 50 units
Actions:
¤ add 3 minerals for current player



Trigger
Description:
wow... a whole : censored.gif : amount of tirggers tongue.gif
Players:
¤ what ever player you want
Conditions:
¤ current player has killed at least 51 unit
¤ current player has killed at most 75 units
Actions:
¤ add 3 minerals for current player


You make a trigger like the ones above, but you change how much kills a player has. Now, this method has a LOT of triggers involoved. There are two other methods. You can find the first one here: http://www.staredit.net/index.php?act=tuto...lls%20to%20Cash and the second one here: http://www.staredit.net/index.php?act=tuto...All&title=Kills to Cash 'Perfect'
Report, edit, etc...Posted by MapUnprotector on 2005-01-01 at 23:25:00
QUOTE(urmom @ Jan 1 2005, 08:19 PM)
all the others wont work as well because of wrong conditions and no preserve
[right][snapback]117836[/snapback][/right]


I think you can assume the trigger would have a preserve, but since he's a beginner I guess I shouldnt have left it out and yea I forgot about kill and kill score, haven't used them much

Sa_Max71 how does urmom's way not work? And Clandestine specifically asked for a way to do it with only a few triggers. The method you posted uses a lot of triggers as you said which is not what he really wanted
and the kill score tutorials are basically what we said except, except for the perfect one, you have to modify them to give 3 minerals and still show the kill score using the leaderboard
Report, edit, etc...Posted by (Dual)Archon on 2005-01-02 at 20:34:41
For Kill Count Just Use Always And Leader Board
Report, edit, etc...Posted by DT_Battlekruser on 2005-01-02 at 23:36:12
QUOTE(AqoTrooper @ Jan 1 2005, 11:48 AM)
Create those triggers:

Trigger 1:
Players:
All Players

Conditios:
Switch 1 is cleared
Current player's kills score is at least 1

Actions:
Set score for current player to 0
Set Switch 1
Preserve trigger

Trigger 2:
Players:
All Players

Conditios:
Switch 1 is set
Switch 2 is cleared
Current player's kills score is at least 1

Actions:
Set score for current player to 0
Set Switch 2
Preserve trigger

Trigger 3:
Players:
All Players

Conditios:
Switch 1 is set
Switch 2 is set
Current player's kills score is at least 1

Actions:
Set score for current player to 0
Set resources for current player: add 1 minerals
Clear Switch 1
Clear Switch 2
Preserve trigger
[right][snapback]117738[/snapback][/right]



This method works, but would get a very low efficiency score in the mapping contest. Use any number of methods like this:

Trigger
Conditions:
¤ Current Player kills score is at least 1
Actions:
¤ Set current player kills score to 0
¤ add 1 custom for current player
¤ preserve trigger


Trigger
Conditions:
¤ Current Player custom score is at least 3
Actions:
¤ Set current player custom score: subtract 3
¤ add 1 mineral for current player
¤ preserve trigger


he will still be able to see his kills because we subtract kill score not kills.
Report, edit, etc...Posted by MapUnprotector on 2005-01-03 at 00:42:29
Where are kills displayed then? I thought they were displayed as kill SCORE in the leaderboard :\
Report, edit, etc...Posted by DT_Battlekruser on 2005-01-03 at 01:25:37
Use LeraderboardKills("title"); not LeaderboardScore(Kills,"title");

Both can be displayed.
Next Page (1)