Can you make a body part a supporter?

I’m trying to make a person able to be carried over the player’s shoulder. But inform isn’t recognizing the player’s shoulder.

Warehouse Office is a room.

Raven-hair is a woman in Warehouse Office.

A body part is a kind of supporter. A shoulder is a kind of body part. Two shoulders are part of every person.

Instead of taking raven-hair:
	if the player is in Warehouse Office:
		say "Since she doesn't seem willing to walk at the moment, you lift her and settle her over your shoulder.";
		move raven-hair to the player's shoulder;
	otherwise:
		say "Maybe some other time."

Test me with "take raven-hair".

Edit: I also tried it with ‘your shoulder’ and ‘a shoulder of the player’ and ‘a random shoulder of the player’ with the same result.

Since there are a minimum of two shoulders in the room (two for every person there), we have to specify a shoulder. This has to account for not only whose shoulder but which of the two, I believe, that the specific person has.

Unless you simulate individual shoulders, this should work (specifying a random shoulder belonging to the player):

	let R be a random shoulder that is part of the player;
	say "Since she doesn't seem willing to walk at the moment, you lift her and settle her over your shoulder.";
	move raven-hair to R;

However, I wonder if the player shouldn’t just carry the other person, unless the player will at some point carry one person on each shoulder, or else NPCs will be doing the same, this might be more simulation than you want to manage in the long run. This could be managed with

after taking raven-hair:
	if the player is in Warehouse Office:
		say "Since she doesn't seem willing to walk at the moment, you lift her and settle her over your shoulder.";
	otherwise:
		say "Maybe some other time."

Test me with "take raven-hair".

the can't take other people rule does nothing when taking raven-hair

If you wonder which rule is preventing something, you can type “rules” while testing. In the case of taking a person, “the can’t take other people rule” is the last one to process before the message that prevents the player from taking a person prints (I don't suppose Raven-hair would care for that.). We can use that information to disable the rule when taking raven-hair.

That isn’t to say the shoulder simulation is bad, but it could prove to be complex.

2 Likes

Yeah, I disable rules a lot, lol, but I hadn’t even had a chance to get to that point because the story wouldn’t translate since inform couldn’t recognize the player’s shoulder. I might try simulating each shoulder just to make it more clear. Thanks for the suggestions!

Oh! Ok. Out of curiosity, what function do the individual shoulders serve? A puzzle?

I apologise being a really old otaku grognard, but this description conjures this mental picture:

(Marquis Janus, a villain of the Great Mazinger anime, 1974 vintage)

Best regards from Italy,
dott. Piergiorgio.

No, lol, I’m on the spectrum so I’m a bit OCD about details. I just wanted it to work for no particular reason. However, even though it appeared to work with the changes that were suggested, it still didn’t work when I played through it in the story, so I grudgingly gave it up and am just having the player carry the girl.

1 Like

LMAO. That made me smile. Love it.

1 Like