Alright, so here is the source for a laptop. Of course, the source for the computer is already in there, so Inform already understands what a computer is.
I just want to make it so that instead of opening, the “laptop” (which is really a desk) just turns on, and it also can’t have extension ports and the like. Please help, as I am new at this.
Please read the first post to be sure what I want/need. I don’t mean to be a nag, but this is crucial in the game I’m building.
[code]A laptop is a kind of computer. A laptop can be open or closed. A laptop can be openable. A laptop is usually closed and openable. Understand “computer” or “computers” as a laptop.
A trackpad is a kind of selection device. A trackpad is part of every laptop.
Instead of touching a trackpad (this is the correct insufficient trackpad information rule):
say “Try CLICK ON (some option) WITH [the noun], or just CLICK ON (option), to make a selection.”
Definition: a thing is a concealed component:
if it is a keyboard and it is part of a closed laptop:
yes;
if it is a screen and it is part of closed laptop:
yes;
if it is a trackpad and it is part of closed laptop:
yes;
no.
Instead of doing something when the noun is a concealed component (this is the inability to act on parts of a closed laptop rule):
let N be the holder of the noun;
say “[The N] [is-are] closed at the moment.”
Instead of doing something when the second noun is a concealed component (this is the inability to act on secondary parts of a closed laptop rule):
let N be the holder of the second noun;
say “[The N] [is-are] closed at the moment.”
Before switching on a closed laptop (this is the laptops run open rule):
say “(opening and starting up [the noun])[command clarification break]”;
silently try opening the noun;
if the noun is closed:
stop the action.
Before switching off an open laptop (this is the laptops store closed rule):
say “(closing and shutting down [the noun])[command clarification break]”;
silently try closing the noun;
if the noun is open:
stop the action.
[And because we want to keep the closing and opening in sync with one another:]
Understand “close [laptop]” as switching off.
Understand “open [laptop]” as switching on.[/code]
I don’t really want a track pad, just the ability to “select” things, as if you are touching them.
Sorry to ask so much.