Masochism Deli
Example 326
★Here the player has several potatoes; we would like to make him more likely to drop the hot one, and more likely to pick up the cold one, all else being equal. At the same time, we want to phrase our rules so that they don't make the player try to take something he's already holding, or drop something he isn't.
So:
"Masochism Deli"
The Masochism Deli is a room. "Recent restructurings of corporate policy restrict the 'lunch hour' to exactly thirty-two minutes, which means that no one has time to go out. Instead, you and your coworkers eat here, in the company's very own themed lunch room."
The plural of potato is potatoes. A potato is a kind of thing. A potato is edible.
Temperature is a kind of value. The temperatures are hot and cold. A potato has a temperature. A potato is usually cold.
Understand the temperature property as describing a potato. Before printing the name of a potato (called subject): say "[temperature of subject] ". Before printing the plural name of a potato (called subject): say "[temperature of subject] ".
Does the player mean dropping a hot potato which is carried by the player: it is very likely.
Does the player mean taking a cold potato which is not carried by the player: it is very likely.
The player carries three potatoes.
After dropping a hot potato:
say "The guy from Cube B sneers at your lack of potato-holding stamina."
When play begins: now a random potato is hot.
Test me with "inventory / drop potato / g / g / get potato / g / i / get potato".
Test me with "inventory / drop potato / g / g / get potato / g / i / get potato".
Masochism Deli
Recent restructurings of corporate policy restrict the "lunch hour" to exactly thirty-two minutes, which means that no one has time to go out. Instead, you and your coworkers eat here, in the company's very own themed lunch room.
>(Testing.)
>[1] inventory
You are carrying:
a hot potato
two cold potatoes
>[2] drop potato
(the hot potato)
The guy from Cube B sneers at your lack of potato-holding stamina.
>[3] g
(the cold potato)
Dropped.
>[4] g
(the cold potato)
Dropped.
>[5] get potato
(the cold potato)
Taken.
>[6] g
(the cold potato)
Taken.
>[7] i
You are carrying:
two cold potatoes
>[8] get potato
(the hot potato)
Taken.
Recent restructurings of corporate policy restrict the "lunch hour" to exactly thirty-two minutes, which means that no one has time to go out. Instead, you and your coworkers eat here, in the company's very own themed lunch room.
>(Testing.)
>[1] inventory
You are carrying:
a hot potato
two cold potatoes
>[2] drop potato
(the hot potato)
The guy from Cube B sneers at your lack of potato-holding stamina.
>[3] g
(the cold potato)
Dropped.
>[4] g
(the cold potato)
Dropped.
>[5] get potato
(the cold potato)
Taken.
>[6] g
(the cold potato)
Taken.
>[7] i
You are carrying:
two cold potatoes
>[8] get potato
(the hot potato)
Taken.