You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
So this is weird bug:
Im trying to do this to create kits:
command /editkit <string>:
permission: mel.createkit
trigger:
if gui "%arg-1%" is set:
open gui "%arg-1%" to player
else:
create gui "%arg-1%" with virtual chest named "&2Edit Kit ""&a&l%arg-1%&2""":
run when close the gui:
set {kit::%arg-1%::*} to all items of gui-inventory
open last created gui to player
But it doesnt seem to work (variable isnt being set) if i use %arg-1% in the variable name.
if i, instead, do it like this:
set {kit::test::*} to all items of gui-inventory
it works
I tried it without gui-inventory to see if its a skript issue but this:
command /testkit <string>:
permission: *
trigger:
set {kit::%arg-1%::*} to all items in player's inventory
works aswell so its a TuSke issue
The text was updated successfully, but these errors were encountered:
Edit:
the arg-1 isn't carried over to the run when close part of the skript it seems, doing this:
command /editkit <string>:
permission: mel.createkit
trigger:
set {arg-1} to arg-1
if gui "%arg-1%" is set:
open gui "%arg-1%" to player
else:
create gui "%arg-1%" with virtual chest named "&2Edit Kit ""&a&l%arg-1%&2""":
run when close the gui:
set {kit::%{arg-1}%::*} to all items of gui-inventory
open last created gui to player
works as workaround
(i set a variable {arg-1} to arg-1 and used that instead)
So this is weird bug:
Im trying to do this to create kits:
But it doesnt seem to work (variable isnt being set) if i use %arg-1% in the variable name.
if i, instead, do it like this:
it works
I tried it without gui-inventory to see if its a skript issue but this:
works aswell so its a TuSke issue
The text was updated successfully, but these errors were encountered: