Check inventory count using variable?

Unofficial support for the creating and editing of metas.
bradacc
Posts: 128

Check inventory count using variable?

Post #1 »

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?

bradacc
Posts: 128

Post #2 »

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*