#need help clicking a named item in gui

1 messages · Page 1 of 1 (latest)

acoustic coral
#
on inventory click: 
    if name of the event-inventory is "&aPerks":  
        if name of the clicked item is "&6Gold Block": 
            cancel event ```

Line 8: (Npcs/perks.sk)
[18:35:18 INFO]:     Can't compare 'name of the clicked item' with a text
[18:35:18 INFO]:     Line: if name of the clicked item is "&6Gold Block":
dark grove
#

name of event-slot

#

event-slot is the actual item that was clicked

acoustic coral
#

ty i did
display name of event-slot