More help on the virtual patient

When trying

 Instead of examining a topic listed in the Table of normal exam findings:
     say "[reply entry][paragraph break]";
  
 Table of normal exam findings
 topic	reply
 "ears" or "hearing"	"Good old wnl"
 "nose"	"Looks like a nose"
 "throat"	"Aaaahhhhhh"
 "stomach" or "abdomen"	"Non tender/non distended."

I get the following error

Is examining not allowed with topics in tables?
Is there a way around it?

Thanks
Jake

The built-in examining action is for use with objects, not topics. But this doesn’t mean that your players can’t use examine; if you designate a new action that works with topics, you’ll be good to go:

[code]Exam Room is a room.

Topic-examining is an action applying to one topic. Understand “examine [text]” or “x [text]” as topic-examining.

Instead of topic-examining a topic listed in the Table of normal exam findings:
say “[reply entry][paragraph break]”;

Instead of topic-examining:
say “I didn’t understand what you were trying to examine.”

Table of normal exam findings
topic reply
“ears” or “hearing” “Good old wnl”
“nose” “Looks like a nose”
“throat” “Aaaahhhhhh”
“stomach” or “abdomen” “Non tender/non distended.”[/code]

Depending on how fully featured you want your simulation to be, though, you might want to consider implementing the world with objects rather than topics; they are far more flexible.

–Erik

Many thanks.
I was just getting to the point of understanding that topics were not objects.
I’d have never figured out how to get around it.

I see your point about maintaining flexibility by working with objects though.
Is there a way to use tables with objects?
I have a lot of body parts to come up with short descriptions for.
Many of the body parts have reasonable synonyms. (stomach, abdomen for example)

Yes, you can use just about any kind of object in a table column. You can have a “body part” column instead of a “topic” column and list things in that column. You can even create things with a table:

inform7.com/learn/man/doc256.html