Hello! im making a skript with perks, but i need help with this
Im trying to make a virtual chest that, if you put an item, it saves it, and next time you open the menu its still there
if you didnt understand, ill give you an example
Steve opens the menu and saves a deadbush on slot 10
Alex opens the menu and saves an apple on slot 12
When steve opens the menu again, only sees his deadbush on slot 10. Slot 12 is empty
When alex opens the menu again, only sees his apple at slot 12. Slot 10 is empty
How i can do it? I've tried to look anywhere and cant find it. Variables doesn't work very well. i tried and i cant do much about it.
This is all i could do atm
|----------------------------|----------------------------|
on join:
if {perk1::%player%} is not set:
set {perk1::%player%} to air
if {perk2::%player%} is not set:
set {perk2::%player%} to air
if {perk3::%player%} is not set:
set {perk3::%player%} to air
if {perk4::%player%} is not set:
set {perk4::%player%} to bedrock named "&cLocked"
right click on player:
name of entity = "&aPerks":
Open chest with 3 rows named "&aPerks" to player
wait 1 tick
format gui slot 0 of player with gray stained glass pane named "&f" to close
format gui slot 1 of player with gray stained glass pane named "&f" to close
format gui slot 2 of player with gray stained glass pane named "&f" to close
format gui slot 3 of player with gray stained glass pane named "&f" to close
format gui slot 4 of player with gray stained glass pane named "&f" to close
format gui slot 5 of player with gray stained glass pane named "&f" to close
format gui slot 6 of player with gray stained glass pane named "&f" to close
format gui slot 7 of player with gray stained glass pane named "&f" to close
format gui slot 8 of player with gray stained glass pane named "&f" to close
format gui slot 9 of player with gray stained glass pane named "&f" to close
format gui slot 10 of player with {perk1::%player%}
format gui slot 11 of player with gray stained glass pane named "&f" to close
format gui slot 12 of player with {perk2::%player%}
format gui slot 13 of player with gray stained glass pane named "&f" to close
format gui slot 14 of player with {perk3::%player%}
format gui slot 15 of player with gray stained glass pane named "&f" to close
format gui slot 16 of player with {perk4::%player%}
format gui slot 17 of player with gray stained glass pane named "&f" to close
format gui slot 18 of player with gray stained glass pane named "&f" to close
format gui slot 19 of player with gray stained glass pane named "&f" to close
format gui slot 20 of player with gray stained glass pane named "&f" to close
format gui slot 21 of player with gray stained glass pane named "&f" to close
format gui slot 22 of player with gray stained glass pane named "&f" to close
format gui slot 23 of player with gray stained glass pane named "&f" to close
format gui slot 24 of player with gray stained glass pane named "&f" to close
format gui slot 25 of player with gray stained glass pane named "&f" to close
format gui slot 26 of player with gray stained glass pane named "&f" to close
Im trying to make a virtual chest that, if you put an item, it saves it, and next time you open the menu its still there
if you didnt understand, ill give you an example
Steve opens the menu and saves a deadbush on slot 10
Alex opens the menu and saves an apple on slot 12
When steve opens the menu again, only sees his deadbush on slot 10. Slot 12 is empty
When alex opens the menu again, only sees his apple at slot 12. Slot 10 is empty
How i can do it? I've tried to look anywhere and cant find it. Variables doesn't work very well. i tried and i cant do much about it.
This is all i could do atm
|----------------------------|----------------------------|
on join:
if {perk1::%player%} is not set:
set {perk1::%player%} to air
if {perk2::%player%} is not set:
set {perk2::%player%} to air
if {perk3::%player%} is not set:
set {perk3::%player%} to air
if {perk4::%player%} is not set:
set {perk4::%player%} to bedrock named "&cLocked"
right click on player:
name of entity = "&aPerks":
Open chest with 3 rows named "&aPerks" to player
wait 1 tick
format gui slot 0 of player with gray stained glass pane named "&f" to close
format gui slot 1 of player with gray stained glass pane named "&f" to close
format gui slot 2 of player with gray stained glass pane named "&f" to close
format gui slot 3 of player with gray stained glass pane named "&f" to close
format gui slot 4 of player with gray stained glass pane named "&f" to close
format gui slot 5 of player with gray stained glass pane named "&f" to close
format gui slot 6 of player with gray stained glass pane named "&f" to close
format gui slot 7 of player with gray stained glass pane named "&f" to close
format gui slot 8 of player with gray stained glass pane named "&f" to close
format gui slot 9 of player with gray stained glass pane named "&f" to close
format gui slot 10 of player with {perk1::%player%}
format gui slot 11 of player with gray stained glass pane named "&f" to close
format gui slot 12 of player with {perk2::%player%}
format gui slot 13 of player with gray stained glass pane named "&f" to close
format gui slot 14 of player with {perk3::%player%}
format gui slot 15 of player with gray stained glass pane named "&f" to close
format gui slot 16 of player with {perk4::%player%}
format gui slot 17 of player with gray stained glass pane named "&f" to close
format gui slot 18 of player with gray stained glass pane named "&f" to close
format gui slot 19 of player with gray stained glass pane named "&f" to close
format gui slot 20 of player with gray stained glass pane named "&f" to close
format gui slot 21 of player with gray stained glass pane named "&f" to close
format gui slot 22 of player with gray stained glass pane named "&f" to close
format gui slot 23 of player with gray stained glass pane named "&f" to close
format gui slot 24 of player with gray stained glass pane named "&f" to close
format gui slot 25 of player with gray stained glass pane named "&f" to close
format gui slot 26 of player with gray stained glass pane named "&f" to close
Last edited: