Always Dog and Not-Your-Person — 45 of 81

Currently Anonymous

Release 1

Part 3 - Sitting, Standing, Lying Down

Posture is a kind of value. The postures are sitting, standing, and prone.

A person has a posture.

Prior posture is a posture that varies.

Sitting is an action applying to nothing.

Understand "sit" as sitting.

Understand "sit down" as sitting.

Understand "sit up" as sitting.

Check sitting:

if the player is sitting:

say "You're already sitting." instead.

Carry out sitting:

now the prior posture is the posture of the player;

now the player is sitting.

Report sitting:

if the prior posture is standing:

say "You sit down.";

else:

say "You sit up."

Sitting on is an action applying to one touchable thing. [Sometimes the same as entering, but not always.]

Understand "sit on" as sitting on.

Lying down is an action applying to nothing. [Make sure to send "down" without a down available over here.]

Understand "lie" as lying down.

Understand "lie down" as lying down.

Check lying down:

if the player is prone:

say "You're already lying down." instead.

Carry out lying down:

now the prior posture is the posture of the player;

now the player is prone.

Report lying down:

say "You lie down."

Lying down on is an action applying to one touchable thing.

Understand "lie down on" as lying down on.

Understand the command "stand" as something new.

Standing is an action applying to nothing.

Understand "stand" as standing.

Understand "stand up" as standing.

Check standing:

if the player is standing:

say "You're already standing." instead.

Carry out standing:

now the prior posture is the posture of the player;

now the player is standing.

Report standing:

say "You stand up."

Standing on is an action applying to one touchable thing.

Understand "stand on [something]" as standing on.