Mmoinventory Check Item Fact
Check if player has specific MMOItem(s) in a MMOInventory
Campos
| Campo | Tipo | Predeterminado | Descripción |
|---|---|---|---|
group | Ref<GroupEntry> | — | — |
inventoryName | Var<String> | — | — |
itemsToCheck | Var<String> | — | — |
requireAllItems | Var<Boolean> | false | — |
Campos comunes de TypeWriter (comment)
| Campo | Tipo | Predeterminado | Descripción |
|---|---|---|---|
comment | String | — | — |
How to use it
The fact returns 1 when the check succeeds and 0 otherwise. Use it in a criteria with the value 1.
inventoryNameis the name of a custom inventory defined in MMOInventory.itemsToCheckis a comma-separated list ofTYPE:IDorTYPE:ID:amounttokens, for exampleACCESSORY:RING_OF_FIRE, ACCESSORY:AMULET:2. Without an amount, one item is required.requireAllItemsoff: one matching item is enough. On: every listed item must be present in the requested amount.
Only MMOItems are counted; other items are ignored. See the extension page for troubleshooting.