You know “the thing” from hitchhiker’s guide to the galaxy? Well I want to create an item that is similar to that, an item that can hold an infinite amount of objects but one turn after the player drops it, it comes back into their inventory.
Here’s how I’d do it.
The player carries a strange contraption. [Because the name from the original game is too long to keep typing out.] The contraption is a container. [No carrying capacity specified = infinite.] Every turn when the player does not enclose the contraption: now the player carries the contraption.
Every turn, check if the player’s not holding it; if they’re not, put it in their inventory.
Sorry but I need to have where it does this AFTER the player picks it up.
You just need to specify that explicitly:
The contraption can be sticky. After taking the contraption for the first time: now the contraption is sticky. Every turn when the contraption is sticky and the player does not enclose the contraption: now the player carries the contraption.
You can also use the built-in flag for this:
Every turn when the contraption is handled and the player does not enclose the contraption: