What you need to do is loop through every item in the PC's inventory looking for your item, and perform an action on each one you find. Two functions make it easy to loop through the whole inventory: GetFirstItemInInventory and GetNextItemInInventory. Here's an example of how to use them to reward a PC for every item they have with the tag "goblin_ear":
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
dcterms:subject | |
abstract |
|