Im trying to make a item clickable to do something in a gui but i get errors when reloading the skript
[20:54:10 ERROR]: Can't compare 'name of player's current inventory' with a text (Test.sk, line 18: if name of player's current inventory is "Test":')
i got this from another thread and i still cant do it :/
on inventory click:
if name of player's current inventory is "Test":
cancel event
if clicked item is book:
set {_c} to amount of clicked item
add 1 to {_c}
set slot 10 of player's current inventory to {_c} of book named "test"
I dont really know which sk addons to use :/
[20:54:10 ERROR]: Can't compare 'name of player's current inventory' with a text (Test.sk, line 18: if name of player's current inventory is "Test":')
i got this from another thread and i still cant do it :/
on inventory click:
if name of player's current inventory is "Test":
cancel event
if clicked item is book:
set {_c} to amount of clicked item
add 1 to {_c}
set slot 10 of player's current inventory to {_c} of book named "test"
I dont really know which sk addons to use :/