EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

count_item

Count an item in the inventory of the event actor or the invocation owner.

Signature

(ActorRef, ItemId) -> Count

Typechecked usage

The snapshot must declare the scope required by this read.

local value = ctx.read.count_item(ctx.event.actor, ctx.event.item)