Solved On Inventory click

  • Welcome to skUnity!

    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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

RandomPersonOnline

New Member
Jul 19, 2017
6
0
0
23
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 :/
 
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 :/
Skelett.... OR Umbaska or TusKe
 
btw next time don't click sovled, do you know what does mean? "Finish" "You got already it" "No Help Need!" now im think less people will watch this thread
 
I didn't clicked solved... i just came back to see if someone replied and it said SOlved
[doublepost=1500781690,1500781576][/doublepost]
btw next time don't click sovled, do you know what does mean? "Finish" "You got already it" "No Help Need!" now im think less people will watch this thread

Yes i do know what it means but i didnt put it to solve.
 
Status
Not open for further replies.