TADS3 How can I specify quantity of items moved into player inventory?

I would echo the primary issue would be if exampleObject is defined as a single object, and not a Multi-Inst or something. Eric’s SampleObject would be a way to define a class whose instances could respond the way you want (you would need to define what verbs invoke the moveMulti function, probably a custom version of Take).

CollectiveGroups allow you to collect individual instances into a group for reporting, examining and optionally manipulating. See section 15.3 of the adv3 documentation (not sure what section adv3lite?)

As an FYI, there is a subtle bug in CollectiveGroup in adv3 for objects that can be spread around the game. Should you go down that path, documented here.

3 Likes