Really basic script to figure out if I have items that drop other items or that drop meat and use them right away.
The impetus for this was "I have how many Penultimate Fantasy Chests in inventory?"
I didn't want to have to make and maintain a list of items to use (which is different from sell or destroy), so I wanted to use the Boolean_modifiers "Drops Meat" and "Drops Items"
So far so good, but it seems to miss things, like Warm Subject Gift Certificates:
Here's the script:
What am I doing wrong?
The impetus for this was "I have how many Penultimate Fantasy Chests in inventory?"
I didn't want to have to make and maintain a list of items to use (which is different from sell or destroy), so I wanted to use the Boolean_modifiers "Drops Meat" and "Drops Items"
So far so good, but it seems to miss things, like Warm Subject Gift Certificates:
Here's the script:
Code:
void main()
{
item myItem;
foreach myItem in $items[] {
if (boolean_modifier(myItem,"Drops Meat") && item_amount(myItem) > 0)
print(myItem + " is a meat dropping item");
if (boolean_modifier(myItem,"Drops Items") && item_amount(myItem) > 0)
print(myItem + " is an item dropping item");
} // end foreach item
} // end main
What am I doing wrong?