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
if findtype 'bow' as 'item' backpack
getlabel 'item' 'label'
if 'Unidentified' in 'label'
sysmsg 'Found unidentified item.'
else
sysmsg 'Nope'
endif
endif
This always returns "Nope".
I can see the getlablel command working as it does single click the item and the item is indeed unidentified.
I also tried setting the string to 'Bow' or 'bow' (i.e.; if 'bow' in 'label') and still nothing.
Am I doing something wrong?
Is there a way to print out the contents of a variable for troubleshooting purposes? (like: debug 'label')
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here is the script in question:
This always returns "Nope".
I can see the getlablel command working as it does single click the item and the item is indeed unidentified.
I also tried setting the string to 'Bow' or 'bow' (i.e.;
if 'bow' in 'label'
) and still nothing.Am I doing something wrong?
Is there a way to print out the contents of a variable for troubleshooting purposes? (like:
debug 'label'
)Thanks!
Beta Was this translation helpful? Give feedback.
All reactions