BTC Item Count Fact
Count custom BTC items in a player's inventory
Fact entry that counts the total number of custom BTC items a player possesses. This fact aggregates the amounts of the specified item IDs found in the player's inventory (including the hotbar and offhand). The result is returned as an integer via [FactData]. If no item IDs are provided, the fact will always return 0. Example usage in TypeWriter UI: create a fact entry with a list of custom item IDs (itemsToCount) and use its value in conditions or objectives.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
group | Ref<GroupEntry> | — | — |
itemsToCount | List<String> | empty | List of item IDs to count in the player's inventory (case insensitive) |
Common TypeWriter fields (comment)
| Field | Type | Default | Description |
|---|---|---|---|
comment | String | — | — |