Jump to content

Skript not working?


Narratrr

Recommended Posts

this skript doesnt seem to be working it shows up as "none" where the amount of kills are, there  seems to be no errors though when i reload the skript... anyone know why? and yes i have tested and killing players doesnt seem to add to it

command /stats [<player>]:
    trigger:
        if arg-1 is set:"
            send "&7kills&8: &7%{kills::%arg-1%}%&c ☠"
        if arg-1 is not set:
            send "&7kills&8: &7%{kills::%player%}%&c ☠"
            send "/stats ""player"" to see other's stats"

 

on death of player:
    add 1 to {kills::%attacker's uuid%}

Edited by LastXD

IGN: LastMC

Discord: LastXD#7171

Rank: PRO

Join date: Monday - December - 23rd - 2019

Link to comment
Share on other sites

  • 5 months later...

hi, %player% returns the NAME of the player, not the uuid, on death, you are adding 1 to the attackers UUID.

uuid and player names are totally different.

code 

on death of player:
    add 1 to {kills::%attacker's uuid%}

actually sets the value, lets say notch.

notch's uuid is "069a79f4-44e9-4726-a5be-fca90e38aaf5"

and you are adding 1 to "kills::069a79f4-44e9-4726-a5be-fca90e38aaf5"

but the /stats command returns variable "kills:Notch". (player name is Notch)

 

so you should be adding 1  {kills::%attacker's name%}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...