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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Uhh. How i can send the variable what i saved to item?You can save an item by doing
Set {_} to player’s tool
Or you can give a saved item by typing
Give player {_}
I need {%item%.saaty} (player's job)
Okay and where are you wanting to put this variable? I know you said to an item but are you meaning in the name? The lore? NBT?
on right click of book:
if name of book is "name here":
send "%{variable}%" to player
command /henkkarit [<player>]:
description: Anna henkkarit
usage: /henkkarit <pelaaja>
permission: kaupungit.henkkarit
permission message: Sinä et voi antaa henkilötodistuksia
executable by: players
trigger:
if arg-1 is not set:
send "Sinun pitää valita kenelle annat nämä"
else if player's tool is not a book:
send "Sinulla ei ole kirjaa"
else:
player's tool is book
set {henkkaripelaaja} to arg-1
remove player's tool from player
set {_book} to book named "Henkilötodistus: %arg-1%"
set {henkkaripelaaja} to {_book}
give {_book} to player
send "<blue>Henkilötodistuksesi on luotu"
send "Henkkarit annettu"
every 10 seconds in "Maailma":
loop all players:
if {%loop-player's uuid%.saaty} is not set:
set {%loop-player's uuid%.saaty} to "Asukas"
if loop-player has permission "saaty.aatelinen":
set {%loop-player' uuid%.saaty} to "Aatelinen"
on rightclick:
player's tool is book named "Henkilötodistus: %player%"
send "Nimi: %{_book}%"
send "Sääty: %{_book.saaty}%"
send "Koti: Ei määritetty"
send "Asuinpaikkakunta: Ei määritetty"
on rightclick with stick:
add 1 to data value of the clicked block
send "%data value of clicked block%"