One of the goals in my Inform game is to right an April Fool’s day prank by switching salt which is in a sugar shaker and sugar which is in a salt shaker into their respective containers. I planned on doing this by giving the player a container called “Bowl”. When the condiments were put in their proper places the player receives a message of gratitude. However, I ran into a problem when I realized that the player could simply pour the sugar into the sugar shaker already filled with salt (and vice versa) and receive the same positive message. I did some brainstorming and then, Light bulb! I realized that if I alter the player’s and the container’s carrying capacity they would be forced to complete the task properly.
The code goes as follows:
The Breakroom is west of the Men’s bathroom.
The table is a supporter in the breakroom.
The saltshaker is on the table.
The saltshaker is an openable container.
The saltshaker contains sugar.
After examining saltshaker:
Say “The salt shaker stands ever unassumingly at the edge of the table. Oh, wait, its lid seems to be amiss.”
After closing the saltshaker:
Say “Hmm, that’s better.”The sugarshaker is on the table.
The sugarshaker is an openable container.
The sugarshaker contains salt.
After examining the sugarshaker:
Say “The lid seems to be loose here as well, odd.”The bowl is a container on the table.
After inserting the salt into the bowl:
Say “Ah, I see where this is going.”The bowl is a container on the table.
After inserting the sugar into the bowl:
Say “Ah, I see where this is going.”Instead of inserting sugar into the sugarshaker:
Say “Well played!”After inserting salt into the saltshaker:
Say ” Karma will thank you, I’m certain.”The carrying capacity of the player is 1.
The carrying capacity of sugarshaker is 1.
The carrying capacity of saltshaker is 1.
The carrying capacity of bowl is 1.
Now I just have to get Inform to recognize sugar and sugar shaker as separate entities.
