I’m trying to write a section where the player character is bonked unconscious and mugged for their armour.
I’m still that the stage where I don’t really know how a lot of things work, but I’m patching stuff together however I can. One thing that has stumped me is removing something the player has equipped or is wearing. I’m using the things built into Inform 7 when it comes to clothes, but can’t seem to find whatever keyword or phrase is needed to actually remove things.
I threw together this test piece as an example.
Undressing is an action applying to nothing. Understand "Undress" as Undressing. Carry out undressing: If player is wearing armour: Take off armour; say "Test successful, armour removed."
But the game doesn’t seem to understand this. What should I do to get this effect?
I’ve also tried “Try taking off armour.”
Looking at it, it seems that “try taking off armour” is too vague. Is there a way to tag the armour the character is wearing? I have armour as a type of clothing.
As was certain to happen, it looks like I’ve fixed the issue the moment I posted about it.
Undressing is an action applying to nothing. Understand "Undress" as Undressing. Carry out undressing: If player is wearing armour (called Worn Armour): Take off Worn Armour; say "Test successful, armour removed."