I’m confused by whether a player can sit on a supporter or not. Or do I need to designate it as something else, create a rule?
The toilet is here. The toilet is a kind of supporter.
I’m confused by whether a player can sit on a supporter or not. Or do I need to designate it as something else, create a rule?
The toilet is here. The toilet is a kind of supporter.
Look at the example “Slouching” in this section: 5.1. The Human Body
It has a whole lot of useful code for sitting on supporters.
You need to make it enterable.
The toilet is an enterable supporter.
By the way, you don’t want to make a toilet a “kind of supporter”, unless you have several in your game which you want to write rules for collectively.
Ok. So if I want something specific to happen after they sit on the toilet, how does that look. What I have just give me an error.
The toilet is here. It is an enterable supporter.
Understand "sit on" as sitting down.
Sitting down is an action applying to nothing.
Instead of sitting down on toilet:
say "Ah!!!".
Don’t have Inform open, but you might want to switch the order of those - define your action before declaring Understand rules about it.
I think you could just also write:
A toilet is here. It is an enterable supporter.
Understand "sit down on [something]" and "sit on [something]" as entering when the noun is a supporter.
After entering toilet:
say "This is my only daily respite from the world."
Thanks for giving me my first laugh of the day, regarding the “respite”!
I tried this in Borogove and “sit on [something]” is already a synonym for entering, so you’d just need
Understand "sit down on [something]" as entering.
if you want SIT DOWN ON CHAIR to work like SIT ON CHAIR.
Unless you have big plans for “use,” might as well throw that one at the toilet, too. Seems like something players might try
using is an action applying to one thing. Understand "use [something]" as using.
Check using:
say "You can't just use [the noun] in general." instead.
Check using toilet: try entering toilet instead.
You know, I held off on (lightly) implementing a toilet because I couldn’t shake the image of the protag climbing into a toilet out of my head. Sure, my protagonist is kind of a jerk, but still.
Finally did it anyway
Laboratory is a room.
A toilet is here. It is an enterable supporter.
Understand "sit down on [something]" as entering when the noun is a supporter.
After entering toilet:
say "This is my only daily respite from the world."
using is an action applying to one thing. Understand "use [something]" as using.
A thing can be usable.
Check using:
if the noun is not usable:
say "You can't just use [the noun] in general." instead.
Check using toilet: try entering toilet instead.
Some rolled paper is in laboratory. It is usable. Understand "toilet paper" as rolled paper. The printed name is "toilet paper".
Check using rolled paper:
if the player is not on the toilet:
say "You don't really need to (yet)." instead;
Carry out using rolled paper:
now rolled paper is off-stage.
Report using rolled paper:
say "Good thing you had that handy."
You’re killing me!
Oh my, Dear Amanda…
you’re aiming to the last place in the IFComp '22 ???
Anyway, what is better is being ON the toilet that IN the toilet…
perplexed regards from Italy,
dott. Piergiorgio.