Thanks in advance.
I’ve tried searching the documentation, and have found a way of doing some of what I want, but I need a way include complex descriptions. I’ve included “The Fancy Examining Rule” code from exercise 324 (Crusoe):
[code]Chapter 2 - The Fancy Examining Rule
The fancy examining rule is listed instead of the standard examining rule in the carry out examining rules.
Printing the description of something is an activity.
This is the fancy examining rule:
carry out the printing the description activity with the noun;
rule succeeds.
Rule for printing the description of something (called item):
if the description of the item is not “”:
say “[description of item] [run paragraph on]”;
otherwise:
say “You see nothing special about [the item]. [run paragraph on]”.
Last after printing the description of something:
say “[paragraph break]”.
[/code]
This code does some of what I want, but I want the description to accumulate - ie if the player is wearing more than one of the following then print the sentence pertaining to all the items the player is wearing. I have the following code:
The description of the player is "Short, you stand just 5 foot in your bare feet. [if the player is wearing the shoes]Though, of course, you're not. [otherwise if the player is wearing the dress]Your plain brown dress covers you decently from neck to knee. [otherwise if the player is wearing the trousers]Your legs are clad in lose fitting trousers. [otherwise if the player is wearing the shirt] The shirt hangs down to your thighs. [end if]"
Obviously the ‘otherwise’ blocks printing more than one thing. How would I work this?
EG I want the description of the player, if she’s wearing the dress and the shoes to be:
x me
Short, you stand just 5 foot in your bare feet. Though, of course, you’re not. Your plain brown dress covers you decently from neck to knee.
I couldn’t find any way of having more advanced descriptions (but then maybe I was looking in the wrong place). Cheers!