This has probably been answered before in various forms but I’m having a hard time searching for a solution to this.
In my game I want to list worn items only when the player examines themselves, because clothing is not super important but I still want them to have options to fiddle with it.
[code]The player wears an elaborate hat, a pair of stylish pants, a boring shirt, and green socks.
The player carries an enormous nacho.
Instead of taking inventory:
If the number of things carried by the player is 0, say “You are empty-handed.” instead;
Now all things carried by the player are marked for listing;
Say "You are carrying ";
List the contents of the player, tersely, as a sentence, including contents, listing marked items only;
Place is a room.
Test me with “actions / i / take off socks / i / wear socks / i”.[/code]
The inventory command in this test results in 1) not carrying any clothing, 2) carrying the socks you took off, and 3) still carrying the socks even though now you are wearing them.
I’m not sure why it’s inconsistent. The first inventory command should be just as wrong or correct as the third one. I know “list the contents of the player” would show worn things, but “listing marked items only” should take care of that, since we made a list of things carried by the player.
Putting “now nothing is marked for listing” at the end doesn’t help.
Is this just all wrong/backwards though? What’s the best way to do this?
Adding “Now all things worn by the player are not marked for listing” fixes it, but that seems silly to have to do.
Do I want to do something like “to list the contents of the player:”?
Is there a “list the things the player is carrying” so I don’t have to use contents?