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 comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Use:How can I do for example:
/checkkills [<offline player>]:
message "%{kills.%uuid of arg 1%}%" if the player is not online?
It just sends me "<none>"
Set {_uuid} to (arg-1 parsed as offlineplayer)'s uuid
message "%{kills.%{_uuid}%}%"
It says that it's not a typeUse:
Code:Set {_uuid} to (arg-1 parsed as offlineplayer)'s uuid message "%{kills.%{_uuid}%}%"
2.2Skript version + full code?
command /checkkills [<offline player>]:
trigger:
Set {_uuid} to (arg-1 parsed as offlineplayer)'s uuid
message "%{kills.%{_uuid}%}%"
Maybe replace2.2
code_language.skript:command /checkkills [<offline player>]: trigger: Set {_uuid} to (arg-1 parsed as offlineplayer)'s uuid message "%{kills.%{_uuid}%}%"
[<offline player>] with [<text>]
Says <none>...Maybe replaceCode:[<offline player>] with [<text>]
command /kills [<offlineplayer>]:
trigger:
set {_uuid} to uuid of arg-1
message "&3Kills&8: &b%{kills.%{_uuid}%}%"
command /kills [<offlineplayer>]:
trigger:
message "&3Kills&8: &b%{kills.%uuid of arg-1%}%"
on death:
attacker is a player
victim is a player
add 1 to {kills.%uuid of attacker%}
the set {_uuid} to uuid of arg-1 says that it's not a type@dudle
You can use both:
Counter:code_language.skript:command /kills [<offlineplayer>]: trigger: set {_uuid} to uuid of arg-1 message "&3Kills&8: &b%{kills.%{_uuid}%}%" command /kills [<offlineplayer>]: trigger: message "&3Kills&8: &b%{kills.%uuid of arg-1%}%"
code_language.skript:on death: attacker is a player victim is a player add 1 to {kills.%uuid of attacker%}
the set {_uuid} to uuid of arg-1 says that it's not a type
set {_uuid} to uuid of "%arg-1%" parsed as offline player
Still sends <none>code_language.skript:set {_uuid} to uuid of "%arg-1%" parsed as offline player
You can just use the second example.
Still sends <none>
command /kills [<offlineplayer>]:
trigger:
message "&3Kills&8: &b%{kills.%uuid of arg-1%}%"
It also says <none> ;-;Can't you just use:
code_language.skript:command /kills [<offlineplayer>]: trigger: message "&3Kills&8: &b%{kills.%uuid of arg-1%}%"
It also says <none> ;-;
Yes, because when the player's online it shows with no problemsAre you sure that the player has the variable setted?
command /checkkills [<offline player>]:
trigger:
if {kills.%uuid of arg-1%} is not set:
set {kills.%uuid of arg-1%} to 0
message "%arg-1% Kills: %{kills.%uuid of arg-1}%"
on death:
attacker is a player
victim is a player
add 1 to {kills.%uuid of attacker%}
Yeah it works fine, but it's not supposed to send me 0 always you know. It should send the amount of kills a player has. I have the variables working, everything set up and working fine, except for the offline checker thing.code_language.skript:command /checkkills [<offline player>]: trigger: if {kills.%uuid of arg-1%} is not set: set {kills.%uuid of arg-1%} to 0 message "%arg-1% Kills: %{kills.%uuid of arg-1}%" on death: attacker is a player victim is a player add 1 to {kills.%uuid of attacker%}
Yeah but it is actually set, because when the player's online and I check their kills it displays their kills (I think they had like 4 or smth whatever), so it should send me the number 4 not any other...If the variable is not seted, the variable changes to 0, and if anyone kills a player the variable changes to add 1.
My english is not very fluent, if i have an error respose me.