Is there a way to make certain objects always appear before others in the player’s inventory, regardless of the order in which they’re moved to the player? I ask because when the player checks their inventory after obtaining a toolbelt with which to hold assorted things, they get this:
Just a nitpick, but the syntax makes it look (to some) like the janitor’s uniform is inside the tool belt, while of course it’s not. I experimented around with the various "_BIT"s for listing nouns, but none of them give the effect I’m looking for. I want the player’s uniform to come first before all other worn objects, so it looks more like:
I’m not sure, but did you try moving objects around? I think I’ve read this affects the order in which they are displayed. So, I would try to either move the uniform to void and back to player, or do so with everything but the uniform, and see if it has any effects.
That didn’t do it, either. I want the player’s uniform to always come before the other clothing items, and giving it its own group didn’t do that. Is there a way to have Inform do reverse inventory order, where the most order of items goes from least- to most-recently-picked-up, instead of vice versa like usual? My game has the InvSub replaced with the Lurking Horror-style two-sentence inventory, if this helps.
I think a solution can be worked out using WORKFLAG_BIT. First print the uniform’s name. Then give all of the player’s possession except the uniform the workflag attribute, and make a list of those possessions using WORKFLAG_BIT.