Page 1 of 1

Check inventory count using variable?

Posted: July 9th, 2016, 10:26 am
by bradacc
I've tried;
"wobjectfindininventorybyname[+getvar[Loot]]>=1" as an expression
"+getvar[Loot]" as an inventory item count

as well as variations with and without the plus sign, adding in a backslash, and can't get any of them to play nice. Any thoughts?

Re: Check inventory count using variable?

Posted: July 9th, 2016, 6:01 pm
by bradacc
Looks like I can use;
isfalse[wobjectfindininventorybyname[getvar[Loot]]]

Item in inventory returns a 0, Item on ground returns a 1. :)

What's weird is istrue returned 0's either way. *shrug*