Hey everyone, I’ll post my main question(s) first for anyone that doesn’t feel like reading the supplemental info below the code.
These are fairly simple things I think, but they are difficult to find in the documentation because I’m not sure what to look for. The first thing I want to do is remove the default operation of telling what’s in a room, or its description, especially when it has a certain property (i.e. it is a “mind room” in my case). Second, using the same scenario, how do I make it so an examine action (or any action for that matter) does not automatically target a thing in the room, or at least require a noun? Below is the relevant output. Note: I have touch understood as examine, which produces a weird way of touch requiring a noun, but then examine produces text meant to be incorporated into an “Instead” activity meant for touching, thus giving the funky output below, but that’s kind of irrelevant.
[code]
Tester Room
You can see a fluorescent light here.
x
(the fluorescent light)
the lightly heard electric buzzing grow heavier as I press on it. The plastic cover protecting the light seems to be loose on one edge
touch light
(the fluorescent light)
“As I touch the fluorescent light, I can feel the lightly heard electric buzzing grow heavier as I press on it. The plastic cover protecting the light seems to be loose on one edge.”[/code]
Background: This is my first piece of IF and I’m doing it for a “Writing for Interactive Media” class. The idea for the story is that the player is a therapeutic hypnotist analyzing a blind patient (Basir) who is one of several survivors of a mass kidnapping. Since all the victims were blindfolded, the patient, having enhanced senses due to his blindness, is the only one capable of producing enough sensory detail to help out the investigating party. The IF progresses as a player asks Basir to describe his surroundings using all senses except sight.
[rant]While I enjoy the challenge, having such a plan for the story has turned out to be a fairly difficult to program IF for me, having to basically speed-learn the syntax and such. I have programming experience with languages such as C#, JavaScript, and PHP but it just seems strangely difficult to wrap my head around I7 for some reason. The whole “natural language” thing almost confuses me more than traditional programing. Has anyone else experienced this?
It’s just darn difficult to find answers in the documentation when I don’t even know what to look for, without looking at many examples and using pieces from those. I’ve had to implement things like feeling or tasting a room in what I can only guess to be a “hacky” way, but at least they work for now. Maybe I’ll post it later on if anyone is willing to give feedback.[/rant]
Thanks for any help, I’d appreciate it.