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!
command /test:
trigger:
open chest with 3 rows named "GHI" to player
set {_s} to 0
loop 20 times:
set slot {_s} of player's current inventory to gray stained glass pane
add 1 to {_s}
if {_s} is 10:
add 8 to {_s} #!<=== IM not sure, if it 8 or 7.#
set {_s} to 0
loop 20 times:
set slot {_s} of player's current inventory to green stained glass pane
add 1 to {_s}
if {_s} is 10:
add 8 to {_s} #!<=== IM not sure, if it 8 or 7.#
wait 5 ticks #!<== You can choose time #
Yeah it's supposed to look like this - https://i.gyazo.com/0a8bd1590758b0e454ceb1bb201adeb0.mp4 - and for your code it creates the outline but there isn't any green glass that goes round and when I do the command I get a message saying internal error while attempting to perform this command. I've managed to come around it but whenever I close the GUI I get the items from the GUI into my inventory - https://i.gyazo.com/5d6b733d3a28d3d587e19132ebe3807e.mp4Im not sure if i understand correctly.
code_language.skript:command /test: trigger: open chest with 3 rows named "GHI" to player set {_s} to 0 loop 20 times: set slot {_s} of player's current inventory to gray stained glass pane add 1 to {_s} if {_s} is 10: add 8 to {_s} #!<=== IM not sure, if it 8 or 7.# set {_s} to 0 loop 20 times: set slot {_s} of player's current inventory to green stained glass pane add 1 to {_s} if {_s} is 10: add 8 to {_s} #!<=== IM not sure, if it 8 or 7.# wait 5 ticks #!<== You can choose time #
That's my current codeJust add check if youre still in the inventory with
code_language.skript:if name of player's current inventory is "...": set slot..
wait 5 ticks
open chest with 5 rows named "Player Profiles" to player
while inventory name of player's current inventory is "Player Profiles":
format slot 0 of player with light green glass to be unstealable
wait 5 ticks
format slot 0 of player with black glass to be unstealable
format slot 1 of player with light green glass to be unstealable
wait 5 ticks
format slot 1 of player with black glass to be unstealable
format slot 2 of player with light green glass to be unstealable
wait 5 ticks
format slot 2 of player with black glass to be unstealable
format slot 3 of player with light green glass to be unstealable
wait 5 ticks
format slot 3 of player with black glass to be unstealable
format slot 4 of player with light green glass to be unstealable
wait 5 ticks
format slot 4 of player with black glass to be unstealable
format slot 5 of player with light green glass to be unstealable
wait 5 ticks
format slot 5 of player with black glass to be unstealable
format slot 6 of player with light green glass to be unstealable
wait 5 ticks
format slot 6 of player with black glass to be unstealable
format slot 7 of player with light green glass to be unstealable
wait 5 ticks
format slot 7 of player with black glass to be unstealable
format slot 8 of player with light green glass to be unstealable
wait 5 ticks
format slot 8 of player with black glass to be unstealable
format slot 17 of player with light green glass to be unstealable
wait 5 ticks
format slot 17 of player with black glass to be unstealable
format slot 26 of player with light green glass to be unstealable
wait 5 ticks
format slot 26 of player with black glass to be unstealable
format slot 35 of player with light green glass to be unstealable
wait 5 ticks
format slot 35 of player with black glass to be unstealable
format slot 44 of player with light green glass to be unstealable
wait 5 ticks
format slot 44 of player with black glass to be unstealable
format slot 43 of player with light green glass to be unstealable
wait 5 ticks
format slot 43 of player with black glass to be unstealable
format slot 42 of player with light green glass to be unstealable
wait 5 ticks
format slot 42 of player with black glass to be unstealable
format slot 41 of player with light green glass to be unstealable
wait 5 ticks
format slot 41 of player with black glass to be unstealable
format slot 40 of player with light green glass to be unstealable
wait 5 ticks
format slot 40 of player with black glass to be unstealable
format slot 39 of player with light green glass to be unstealable
wait 5 ticks
format slot 39 of player with black glass to be unstealable
format slot 38 of player with light green glass to be unstealable
wait 5 ticks
format slot 38 of player with black glass to be unstealable
format slot 37 of player with light green glass to be unstealable
wait 5 ticks
format slot 37 of player with black glass to be unstealable
format slot 36 of player with light green glass to be unstealable
wait 5 ticks
format slot 36 of player with black glass to be unstealable
format slot 27 of player with light green glass to be unstealable
wait 5 ticks
format slot 27 of player with black glass to be unstealable
format slot 18 of player with light green glass to be unstealable
wait 5 ticks
format slot 18 of player with black glass to be unstealable
format slot 9 of player with light green glass to be unstealable
wait 5 ticks
format slot 9 of player with black glass to be unstealable
wait 1 second
you should use tuske guis instead of format slot. with tuske:That's my current code
code_language.skript:wait 5 ticks open chest with 5 rows named "Player Profiles" to player while inventory name of player's current inventory is "Player Profiles": format slot 0 of player with light green glass to be unstealable wait 5 ticks format slot 0 of player with black glass to be unstealable format slot 1 of player with light green glass to be unstealable wait 5 ticks format slot 1 of player with black glass to be unstealable format slot 2 of player with light green glass to be unstealable wait 5 ticks format slot 2 of player with black glass to be unstealable format slot 3 of player with light green glass to be unstealable wait 5 ticks format slot 3 of player with black glass to be unstealable format slot 4 of player with light green glass to be unstealable wait 5 ticks format slot 4 of player with black glass to be unstealable format slot 5 of player with light green glass to be unstealable wait 5 ticks format slot 5 of player with black glass to be unstealable format slot 6 of player with light green glass to be unstealable wait 5 ticks format slot 6 of player with black glass to be unstealable format slot 7 of player with light green glass to be unstealable wait 5 ticks format slot 7 of player with black glass to be unstealable format slot 8 of player with light green glass to be unstealable wait 5 ticks format slot 8 of player with black glass to be unstealable format slot 17 of player with light green glass to be unstealable wait 5 ticks format slot 17 of player with black glass to be unstealable format slot 26 of player with light green glass to be unstealable wait 5 ticks format slot 26 of player with black glass to be unstealable format slot 35 of player with light green glass to be unstealable wait 5 ticks format slot 35 of player with black glass to be unstealable format slot 44 of player with light green glass to be unstealable wait 5 ticks format slot 44 of player with black glass to be unstealable format slot 43 of player with light green glass to be unstealable wait 5 ticks format slot 43 of player with black glass to be unstealable format slot 42 of player with light green glass to be unstealable wait 5 ticks format slot 42 of player with black glass to be unstealable format slot 41 of player with light green glass to be unstealable wait 5 ticks format slot 41 of player with black glass to be unstealable format slot 40 of player with light green glass to be unstealable wait 5 ticks format slot 40 of player with black glass to be unstealable format slot 39 of player with light green glass to be unstealable wait 5 ticks format slot 39 of player with black glass to be unstealable format slot 38 of player with light green glass to be unstealable wait 5 ticks format slot 38 of player with black glass to be unstealable format slot 37 of player with light green glass to be unstealable wait 5 ticks format slot 37 of player with black glass to be unstealable format slot 36 of player with light green glass to be unstealable wait 5 ticks format slot 36 of player with black glass to be unstealable format slot 27 of player with light green glass to be unstealable wait 5 ticks format slot 27 of player with black glass to be unstealable format slot 18 of player with light green glass to be unstealable wait 5 ticks format slot 18 of player with black glass to be unstealable format slot 9 of player with light green glass to be unstealable wait 5 ticks format slot 9 of player with black glass to be unstealable wait 1 second
command /test:
trigger:
set {_blackSlots::*} to 0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 43, 42, 41, 40, 39, 38, 37, 36, 27, 18, and 9
open chest with 5 rows named "Player Profiles" to player
while inventory name of player's current inventory is "Player Profiles":
make gui slot {_blackSlots::*} of player with black glass to do nothing
loop 24 times:
make gui slot {_blackSlots::%loop-value -1%} of player with black glass to do nothing
make gui slot {_blackSlots::%loop-value%} of player with light green glass to do nothing
wait 5 ticks
I'll start to use that then instead and thanks for solving my problemyou should use tuske guis instead of format slot. with tuske:
code_language.skript:command /test: trigger: set {_blackSlots::*} to 0, 1, 2, 3, 4, 5, 6, 7, 8, 17, 26, 35, 44, 43, 42, 41, 40, 39, 38, 37, 36, 27, 18, and 9 open chest with 5 rows named "Player Profiles" to player while inventory name of player's current inventory is "Player Profiles": make gui slot {_blackSlots::*} of player with black glass to do nothing loop 24 times: make gui slot {_blackSlots::%loop-value -1%} of player with black glass to do nothing make gui slot {_blackSlots::%loop-value%} of player with light green glass to do nothing wait 5 ticks