I wrote some sample code, and I think I got most of it to work but not all of it.
[code]“8thgradedance” by Andrew
printing room nonsense is an activity.
a procedural rule: ignore the room description paragraphs about objects rule.
rule for printing room nonsense:
if number of visible men > 0:
say “You see [list of visible men] huddling on the left by the cookies.”;
otherwise:
say “Nobody is hanging near the cookies.”;
if number of visible women > 0:
say “You see [list of visible women] huddling on the right by the punch bowl.”;
otherwise:
say “Nobody is hanging near the punch bowl.”;
carry out looking (this is the room description lump guys rule):
begin the printing room nonsense activity;
if handling the printing room nonsense activity:
say “2”;
end the printing room nonsense activity;
High School Gymnasium is a room. Alex is a man in high. Debbie is a woman in high. Billy is a man in high. Erica is a woman in high. Chuck is a man in high. Frannie is a woman in high.
the punch bowl is in high. the punch bowl is fixed in place. the cookies are in high. the punch bowl is fixed in place. the tacky party hat is in high.[/code]
Now, I’m pleased with myself for splitting groups of people into different paragraphs–but there are some definite problems going forward.
First, I’m totally clueless WHY “if handling the printing room nonsense activity” is needed. But it is. I’ve basically parroted from the Standard Rules til I got what I wanted. Should I be using an extension for this to make it easier? I’ve looked at them and don’t see how to use them for this. What examples/docs should I study to make this clearer to me?
Second, the party hat is not displayed. My procedural rule seems too sweeping. What can I do to tone it down?
Thanks!