Adaptive Hints
version 6 by Eric Eve
Part 4 - Requesting Hints
Asking for hints is an action out of world.
Understand the command "hint" as something new.
Understand the command "hints" as something new.
Understand "hint" or "hints" as asking for hints.
This is the display hints rule:
consider the hint activation rules;
consider the hint deactivation rules;
if the number of filled rows in the Table of Active Hints is 0
begin;
say "Sorry, no hints are available at this time.";
rule fails;
end if;
now the current menu is the Table of Active Hints;
now the current menu selection is 1;
carry out the displaying activity;
Carry out asking for hints (this is the carry out displaying hints rule):
abide by the display hints rule;
clear the screen;
say "[paragraph break][paragraph break]";
try looking.
Check asking for hints for the first time (this is the first time hinting rule):
say "Some players may find the temptation to rely on hints overwhelming, and you may prefer to remove temptation by disabling hints for the rest of this game. If you do so, however, you will not be able to access the hints unless you restart. Do you wish to disable hints? >>";
if player consents, silently try disabling hints;
otherwise say "Okay - but if you change your mind later you can use the HINTS OFF command to disable hints."
Check asking for hints (this is the block disallowed hints rule):
if hint access is disallowed, say "Hints have been disabled. The only way you can access hints now is by restarting." instead.
To disallow hints:
now hint access is disallowed.
disabling hints is an action out of world.
Understand "hints off" or "hint off" as disabling hints.
Check disabling hints (this is the query disabling hints rule):
say "If you disable hints now, you will not be able to access hints again unless you restart. Are you sure you wish to disable hints for the remainder of this game? >>";
if player consents, do nothing;
otherwise say "[line break]Okay, you can carry on using hints for now." instead.
Carry out disabling hints (this is the hint disabling rule):
disallow hints.
Report disabling hints (this is the standard report disabling rule):
say "[line break]Hints are now disabled for this game. The only way you can regain access to hints from now on is by restarting."
A permission is a kind of value. The permissions are allowed and disallowed.
Hint access is a permission that varies. Hint access is allowed.
Table of Active Hints
| title | subtable | description | toggle |
| text | table-name | text | a rule |
| with 20 blank rows |
Table of Potential Hints
| title | subtable |
| text | table-name |
Adaptive Hints ends here.