wgm003
April 25, 2012, 7:15pm
1
Thie sequence works:
Section 3 - Setup Cavern Guide’s Conversation in Caverns
understand “guide” as Cavern Guide.
Instead of asking the Cavern Guide to try doing something:
repeat through Table of Cavern Guide’s Commentary:
if player’s command includes topic entry:
say “[commentary entry][paragraph break]”;
rule succeeds;
say “‘ARGGG’, says the Cavern Guide.”
Asking someone about something is speech.
Telling someone about something is speech.
Answering someone that something is speech.
Asking someone for something is speech.
Instead of speech when the noun is Cavern Guide :
repeat through Table of Cavern Guide’s commentary:
if the topic understood includes topic entry:
say “[commentary entry][paragraph break]”;
rule succeeds.
Table of Cavern Guide’s Commentary
topic commentary
“hello” “Welcome to my mountain. let me show you around”
“helmet” “Why would I need a helmet?”
“Ax” “What would you use that for?”
“carabiners” “Who needs things like this?”
“rope” “rope! rope! we don’t need no stinking rope”
“cavern” “There is a distinct smell of sulfur and there are giant stalactites reaching down from the ceiling to almost touch matching stalagmites rising from the floor.”
“sand pit XI” “there is nothing interesting down there!”
“where next” “You might try going east or maybe south or even south east, but don’t blame me if anything goes wrong!”
“Cerberus” “Cerberus is the mad dog of hell”
“Feelings” “Mind your own business!”
“Mad” “You have never seem mad. Just keep screwing with me and you will find just how MAD I can really get!”
“next” “Let’s go look someplace else.”
“Hurt” “That did it, now you have really hurt my feelings. I hope you don’t mind my crying a bit.”
This does not work - that is, it does not return what is expected - more…
Section 1 - Setup Devil’s Conversation in Hades
understand “devil” as Devil.
Instead of asking the Devil to try doing something:
repeat through Table of Devil Commentary:
if player’s command includes topic entry:
say “[commentary entry][paragraph break]”;
rule succeeds;
say “‘ARGGG’, says the Devil.”
Asking someone about something is speech.
Telling someone about something is speech.
Answering someone that something is speech.
Asking someone for something is speech.
Instead of speech when the noun is Devil :
repeat through Table of Devil commentary:
if topic understood includes topic entry:
say “[commentary entry][paragraph break]”;
rule succeeds.
Table of Devil Commentary
topic commentary
“sign” “Be careful of the walls. They are just as hot as they look and it is easy to get fried onto them”
“Hadies” “It’s sort of warm but, not to worry, you will like all of the people you are going to meet.”
“Confessional” “The confessional is the only way out of your problem.”
“Information Sign” “Welcome to Hades. Why not stop by our convenient Confessional”
“thumb screw” “The Thumb Screw is attached to a large heavy oak bench. The Thumb Screw is arranged …”
“leg clamp” " Now let me tell you about the leg clamp, is made from hammered iron and has a large bolt …"
“rack” “The Rack! Legendary among both historians and followers of the Marquise De Sade…”
“pear of anguish” “The pear of anguish is a beautiful work from by the well-known ironmonger Jim the hammer…”
“Pearl of salvation” “The Pearl of salvation is a most beautiful work of art…”
This is the only reply I can get and that is via several versions of “Section 1”. I have dicected the code but without any success. So, any help will be appreciated
It would seem that you speak of the devil yet he doth not appear.
At least, the response is the one that Inform gives when the player tries to address someone not present in the location. Are you sure the player and the devil are both in Hades?
wgm003
April 26, 2012, 12:31pm
3
I think so, but I’ll go check.
Some might argue that the devil is everywhere.
Just to rule out the possibility, I assume that the Cavern Guide and the Devil are both defined as persons? I believe (although I haven’t double-checked) that the “asking” action is only defined for persons.
Robert Rothman
Eleas
(Björn Paulsen)
April 26, 2012, 4:12pm
5
Look for a container named “details.” I hear he’s inside.
wgm003
April 26, 2012, 9:01pm
6
That was the problem. Basically, I had to move the conversations into the same area (region) as the named character.
As a matter of fact, the more I get involved with IF, the more I’m sure HE is lurking close at hand.