I want to stop the action of standing up and getting out of chair. I have tryed everything ? Instead of does not work.
What have you tried?
Do you mean you want the player to be able to sit down on the chair but not get up?
From memory, it’s the same action as exiting, because you’re sort of “in” the chair. Does that help?
Lab is a room.
A chair is an enterable supporter in Lab.
Instead of exiting when the player is on the chair: say "You regret being so careless with that tube of superglue."
I felt bad about my vague mobile phone answer so wrote a better one on the computer, but was beaten to it by Adam!
Here is/was my attempt:
"Chair" by Jonathan
The Kitchen is a room.
The chair is an enterable supporter in the Kitchen.
Instead of getting off the chair:
say "You just can't."
Test me with "sit / stand / exit".
Results:
>test me
(Testing.)
>[1] sit
(on the chair)
You get onto the chair.
>[2] stand
You just can't.
>[3] exit
You just can't.
I hope this isn’t the end of the game! ![]()
man it says that i am already standing is there away to have the player start sitting?
Try this:
I guess I should include the code here in case the Borogove website disappears:
"Chair" by Jonathan
The Kitchen is a room.
The chair is an enterable supporter in the Kitchen.
The player is on the chair.
Instead of getting off the chair:
say "You just can't."
Test me with "sit / stand / exit".
Just to add one note about the general problem of figuring out what action corresponds to something you type (I ran into this with my first game, where it took me a while to learn that typing SAY X is actually the ANSWERING IT THAT X action) — if you use the ACTIONS testing command in the IDE, it’ll output a line telling you exactly what action is happening each time you type something.
Some behavior/responses surrounding “sit”, “stand”, etc., can end up being a little weird 'cause they (and more) all map to the same action, entering.
Understand "get in/on" as entering.
Understand "get in/into/on/onto [something]" as entering.
Understand "stand on [something]" as entering.
Understand "go [something]" as entering.
Understand "go into/in/inside/through [something]" as entering.
Understand the commands "walk" and "run" as "go".
Understand "enter" as entering.
Understand "enter [something]" as entering.
Understand the command "cross" as "enter".
Understand "sit on top of [something]" as entering.
Understand "sit on/in/inside [something]" as entering.
If entering is invoked with a door, the action’s converted to going through that door. So stand on oak door or sit in the oak door means trying to go through the oak door (possibly triggering an implicit opening action along the way).
Likewise…
Understand "get out/off/down/up" as exiting.
Understand "stand" or "stand up" as exiting.
Understand "exit" as exiting.
So if there’s a platform that’s an enterable supporter, then stand on platform followed by stand results in
You get off platform.
(I think Emily Short’s Modified Exit and Postures generally improve on the Standard Rules here, but they’re not magic bullets… one would want to look at them closely to figure out how they do or don’t fit your particular needs.)
(This Standard Rules Actions reference includes tables depicting all of the actions by command and all of the commands by action; having some familiarity with them is helpful. Reading the Standard Rules Action section is helpful, too. The going action and the looking action get a little hairy, but they’re mostly highly readable. Both of these are the Standard Rules for the previous version, 9.3/6M62, but the rules for actions were vanishingly close to unchanged in 10.1.)
thank you.
It sounds like you might be using Emily Short’s Postures? If so, add a line like this:
The posture of the player is seated.