Hi guys! I’m creating a surreal cooking type of game on inform 7, but I ran into some issues in the cooking description process. After placing the butterfly in the pan, the code runs fine, completing the “say” part, but when I try using the same code for the other ingredients , the “say” part wouldn’t run, the result would be like this:
put butterfly in pan
You put the butterfly into the pan.
The butterfly dissolves into iridescent liquid on contact, coating the pan in a shimmering film.
put egg in pan
(first taking the egg)
pour liquid in pan
(first taking the red liquid)
I tried deleting the butterfly codes , leaving only the egg and liquid code, and the result becomes:
put egg in pan
(first taking the egg)
You cracked the egg into pan,
The egg white spreads across the blue-coated pan like slime, its edges crisping into fractal patterns.
The yolk glows golden, basking you in its luscious glory.
and I tried deleting the egg code as well, and the liquid code
runs fine, able to “say” .
Is there a way I can fix this, to let all ingredients list out its description after putting it in the pan? Thanks a lot for reading this.
Here is the code:
Understand "put [things] in [something]" as inserting it into. Understand "put [things] on [something]" as putting it on.
After inserting something into something:
if the noun is butterfly:
if the second noun is pan:
now the butterfly is nowhere;
now the description of the pan is "The pan is now glazed with an unnatural blue film. [if something is in the pan]It contains [a list of things in the pan].[end if]";
say “You put the [noun] into the [second noun].[line break]The butterfly dissolves into iridescent liquid on contact, coating the pan in a shimmering film.”
After inserting something into something:
if the noun is egg:
if the second noun is pan:
say “You cracked the [noun] into [second noun], [line break]The egg white spreads across the blue-coated pan like slime, its edges crisping into fractal patterns.[line break]The yolk glows gloden, basking you in its luscious glory. ”;
continue the action.
Understand "pour [things] in [something]" as inserting it into.
After inserting something into something:
if the noun is liquid:
if the second noun is pan:
say “You pour the [noun] into [second noun], [line break]The red liquid seeps within the egg mixture, rather bloody looking.[line break][if the player carries the spatula]You stir the mixture well. After a minute, the egg mixture starts to puff up. ”;
continue the action.
``