Room Description Control
version 10 by Emily Short
Section 3 - Debugging - Not for release
Understand "paragraphs" or "paragraphs off" as paragraph-debugging. paragraph-debugging is an action out of world.
Paragraph-debug-state is a number that varies. Paragraph-debug-state is 0.
Carry out paragraph-debugging:
if paragraph-debug-state is 1, now paragraph-debug-state is 0;
otherwise now paragraph-debug-state is 1.
Report paragraph-debugging:
say "Paragraph debugging is now [if paragraph-debug-state is 1]on[otherwise]off[end if]."
The table-debugging rule is listed after the description-ranking rule in the description-priority rules.
This is the table-debugging rule:
if paragraph-debug-state is 1
begin;
repeat through the Table of Seen things
begin;
if the output entry is unmentioned
begin;
say "[output entry]: rank [current rank entry][line break]";
now output entry is unmentioned;
otherwise;
say "[output entry]: rank [current rank entry] (already mentioned)[line break]";
end if;
end repeat;
say "[line break]";
end if;
Room Description Control ends here.