Eleas wrote:
Well, first of all, I'd name the action "grabbing" if only to maintain consistency.
Secondary, you can easily add conditions to an instead statement, like so:
Code:
Grabbing is an action applying to one visible thing.
Home is a room. A flight stick is here.
Instead of pushing or pulling or grabbing when the noun is the flight stick, say "No."
Thanks for the post. I had to add:
Code:
Understand "grab [something]" as grabbing.
To get it to work, but all is well now.
And any idea why Inform requires this? (assuming I'm doing everything correctly that is) It seems odd that Inform can infer things so easily when creating rooms, yet setting up an action requires two lines of:
Code:
Grabbing is an action applying to one visible thing.
Understand "grab [something]" as grabbing.
Seems like the game could figure it out with just one line of code by assuming most actions work by having "ing" taken from them.
Code:
Grabbing is an action applying to one visible thing.
^^^ Should just work in my mind. Does it?
Code:
Grab is an action applying to one visible thing.
^^^^ Better yet, just Grab it as above would simplify things.
I'm not complaining about Inform as much as trying to figure out its reasoning.
Thanks,
Tom / Hardwater