Thanks for the additional explanation. It works as is, I’m just not sure how to vomit at the last possible moment without it proceeding to killing the player.
I added an incubation period to further stretch the example, is that causing the problem perhaps?
"Scenes with toadstools" by "Testa"
The sunny meadow is a room. "Bright, emerald sward shimmers in the sunlight, sloping downhill towards a cavelike entrance to the east."
The throne room is east of the sunny meadow. "A vaulted and lofty dome, it's not easy to tell if this place is natural or has been fashioned by deliberate intent."
A toadstool is an edible thing in the sunny meadow. "Glistening blue and green amidst the grass, a fine specimen of Royal Deathcap is growing here."
Understand "mushroom", "fungus/fungi", "shroom", "deathcap" or "royal deathcap" as the toadstool.
After eating the toadstool:
now the printed name of the toadstool is "partially chewed toadstool";
now the toadstool is in your stomach; [I didn't want to mess around with the default eating action]
now the toadstool is handled;
say "You gulp the slimy thing down, too nauseated to chew it thoroughly.";
Your stomach is a container.
Vomiting is an action applying to nothing.
Understand "vomit", "puke", "purge", "throw up" as vomiting.
Report vomiting when nothing is in your stomach:
say "You retch, fruitlessly.";
[default message]
After vomiting:
say "You heave up [the list of things in your stomach].";
now everything in your stomach is in the location.
Incubation is a scene. Incubation begins when the toadstool is in your stomach.
Incubation ends happily when the time since incubation began is five minutes and the toadstool is on-stage.
When incubation ends happily, say "Hey, there's that toadstool!"
Incubation ends miserably when the time since incubation began is five minutes and the toadstool is in your stomach.
Feeling Bad is a scene. Feeling bad begins when incubation ends miserably.
When feeling bad begins:
say "You begin to feel ill. Perhaps eating that toadstool was a bad idea.";
[It's really easy to have things happen only during a scene --]
Every turn when feeling bad is happening:
say "[one of]Ooo, you do feel strange[or]Your stomach aches[or]Spots shimmer before your eyes[stopping].";
Feeling bad ends happily when the time since feeling bad began is three minutes and the toadstool is on-stage.
When feeling bad ends happily, say "You feel considerably better."
Feeling bad ends miserably when the time since feeling bad began is three minutes and the toadstool is in your stomach.
Slow poisoning is a scene. Slow poisoning begins when feeling bad ends miserably.
When slow poisoning begins:
say "Spots dance before your eyes, and your lips feel numb. There's no hope for you now.";
[or PROHIBIT certain actions during a scene]
Instead of going when slow poisoning is happening, say "You feel too weak to travel.";
Slow poisoning ends when the time since slow poisoning began is two minutes.
When slow poisoning ends:
end the story saying "You have been poisoned.";
test me with "eat mushroom / z / z/z/z/z/z".