Hi so I do some skript coding. But It would be really helpful if I could make a script that would allow me to read a value from any script. But I don't understand how. I've tried many times before but I haven't gotten it to work
Here is my code
So I tried this by running /readvalue health player debug Monstaa783
And it jut says "the value of health is <none>"
And I have no clue how to fix it. because the debug value is correct. it says the variable is {health::Monstaa783} which is correct so i have no clue whats going wrong here. If anyone knows whats going on here and are willing to help me with this that would be greatly appreciated.
If it helps im using SkQuery 4.1.7 and Skript 2.6.3 and my server software is Paper 1.19.
It says it reloads successfully and there is no error's in console
Here is my code
Code:
command /readvalue <text> [<text>] [<text>] [<offlineplayer>]:
permission: op
permission message: &cThis is a debug command only.
trigger:
if arg-2 is not set:
send "&7Is this a player value or a normal value?"
if arg-2 is "player":
if arg-4 is not set:
send "&cSend a player name so the value can be read"
if arg-4 is set:
send "The value of %arg-1% is %{%arg-1%::%arg-4%}%"
if arg-2 is "normal":
send "The value of %arg-1% is %{%arg-1%}%"
if arg-3 is "debug":
if arg-2 is "player":
send "{%arg-1%::%arg-4%}"
else:
send "{%arg-1%}"
And it jut says "the value of health is <none>"
And I have no clue how to fix it. because the debug value is correct. it says the variable is {health::Monstaa783} which is correct so i have no clue whats going wrong here. If anyone knows whats going on here and are willing to help me with this that would be greatly appreciated.
If it helps im using SkQuery 4.1.7 and Skript 2.6.3 and my server software is Paper 1.19.
It says it reloads successfully and there is no error's in console
Last edited: