kills & deaths

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Lukes1

Member
Jun 28, 2017
1
0
0
German/Deutsch:

Ich skripte derzeit einen Modus, wo man sich gegenseitig runterknüppeln kann. Jedoch gelingt mir dort eins nicht..

Wenn ich einen runter schlage, kriege ich keinen Kill dazu gerechnet, es sei denn, ich kille jemanden so..
Kann mir jemand helfen?

------------------------------------------------------------------------------------------------

English (j translate :emoji_frowning:):


I currently scripted a mode where you can mutually downstairs. However, I do not succeed there one .. If I hit one down, I'll get no kill, unless I'm killing someone like that .. Can someone help me?

Code:
variables:
    {kill::%player%} = 0
    {death::%player%} = 0
    {coins::%player%} = 0

on death:
    add 1 to {kill::%attacker%}
    add 1 to {death::%victim%}
    add 1 to {coins::%attacker%}
 
I can't test this, i'm not in my house.
code_language.skript:
variables:
    {kill::%player%} = 0
    {death::%player%} = 0
    {coins::%player%} = 0
 
on death of player:
    if attacker is set:
        add 1 to {kill::%attacker%}
        add 1 to {death::%victim%}
        add 1 to {coins::%attacker%}
 
Status
Not open for further replies.