Print Friendly, PDF & Email

In this example, notice that we can can change Ben’s attitude and the way he responds to questions about a dog by referring to his attitude, which can either be grumpy or upbeat. I’ve left a code block problematic for quizzing purposes.

The problem is we want to have different responses to the same question given a change of circumstance.

"test18" by Stephen Ersinghaus

The block giving rule is not listed in the check giving it to rules.

The Airport is a room. The description is "It's a large airport. Lots of windows. Lots of counters, and outside you see, yup, you guessed it, aircraft of a variety of sorts. To the south you see a backyard.

Phil is standing in the Airport and he tells you to go the Backyard. You see a coffee shop to the east." 

An apple is in the Airport. It is edible. A grooming tool is a kind of thing. Understand "use [a grooming tool] on [something]" as grooming it with (with nouns reversed). Grooming it with is an action applying to two things. Understand "groom [something] with [something]" as grooming it with. The nail clippers is a grooming tool. The nail clippers is in the Airport. The dog is in the Airport. Instead of grooming the dog with the nail clippers: say "You groom the dog with the nail clippers."; end the story. 

Attitude is a kind of value. The attitudes are upbeat and grumpy.

Ben is a man in the Airport. Ben has an attitude. Ben is grumpy. 

Instead of asking Ben about "dog", say "[if Ben is grumpy]'It's a dog,' he says. 'But I've lost my nail clippers so I'm all grumpy.'[otherwise]'It's a good day to have a dog.'" 

Before printing the name of Ben, say "[attitude] ".

Instead of asking Ben about "nail clippers":
 say "'I told you I lost them and I'm all grumpy about it.'".
 
Instead of giving the nail clippers to Ben: 
 say "Ah thanks!";
 now Ben is upbeat.
 
Instead of examining Ben, say "[attitude] Ben."

The Coffee Shop is east of the Airport. The description is "Smells great in here. You think about ordering a coffee. You see a Freezer in the corner. Maybe you could go inside it." The printed name of the Coffee Shop is "The Airport Coffee Shop". The Freezer is inside from the Coffee Shop.

The Backyard is south of the Airport. "A cool looking backyard with green grass and, oops, a snake traveling around. In the corner of this space is a shovel."

North of the Airport is the gate. The gate is a door. The gate is locked. North of the gate is the Forest. A red key is in the Airport. The red key unlocks the gate.

The Glade is west of the Forest and northwest of the Airport.

Test me with "x Ben / ask Ben about dog / ask Ben about nail clippers / give Ben nail clippers / x Ben".


Here's the straight text (remember this will loose all the formating

“test18” by Stephen Ersinghaus

The block giving rule is not listed in the check giving it to rules.

The Airport is a room. The description is “It’s a large airport. Lots of windows. Lots of counters, and outside you see, yup, you guessed it, aircraft of a variety of sorts. To the south you see a backyard.

Phil is standing in the Airport and he tells you to go the Backyard. You see a coffee shop to the east.”

An apple is in the Airport. It is edible. A grooming tool is a kind of thing. Understand “use [a grooming tool] on [something]” as grooming it with (with nouns reversed). Grooming it with is an action applying to two things. Understand “groom [something] with [something]” as grooming it with. The nail clippers is a grooming tool. The nail clippers is in the Airport. The dog is in the Airport. Instead of grooming the dog with the nail clippers: say “You groom the dog with the nail clippers.”; end the story.

Attitude is a kind of value. The attitudes are upbeat and grumpy.

Ben is a man in the Airport. Ben has an attitude. Ben is grumpy.

Instead of asking Ben about “dog”, say “[if Ben is grumpy]’It’s a dog,’ he says. ‘But I’ve lost my nail clippers so I’m all grumpy.'[otherwise]’It’s a good day to have a dog.'”

Before printing the name of Ben, say “[attitude] “.

Instead of asking Ben about “nail clippers”:
say “‘I told you I lost them and I’m all grumpy about it.'”.

Instead of giving the nail clippers to Ben:
say “Ah thanks!”;
now Ben is upbeat.

Instead of examining Ben, say “[attitude] Ben.”

The Coffee Shop is east of the Airport. The description is “Smells great in here. You think about ordering a coffee. You see a Freezer in the corner. Maybe you could go inside it.” The printed name of the Coffee Shop is “The Airport Coffee Shop”. The Freezer is inside from the Coffee Shop.

The Backyard is south of the Airport. “A cool looking backyard with green grass and, oops, a snake traveling around. In the corner of this space is a shovel.”

North of the Airport is the gate. The gate is a door. The gate is locked. North of the gate is the Forest. A red key is in the Airport. The red key unlocks the gate.

The Glade is west of the Forest and northwest of the Airport.

Test me with “x Ben / ask Ben about dog / ask Ben about nail clippers / give Ben nail clippers / x Ben”.