Inform 7 Home Page / Documentation
§19.5. Changing the behaviour of rules
Here is another way to abolish an already-existing rule:
The rule continues to be listed in any rulebook it would normally be listed in: but now it doesn't do anything. More usefully, we can attach a condition:
or:
The print final score rule does nothing unless the score is 100.
We can also substitute a rule of our own:
This is the print fancy final score rule:
say "Oh my, you scored a mammoth [score]!"
The print fancy final score rule substitutes for the print final score rule.
and once again a condition can be applied:
The print fancy final score rule substitutes for the print final score rule when the score is greater than 100.
Start of Chapter 19: Rulebooks | |
Back to §19.4. Listing rules explicitly | |
Onward to §19.6. Sorting and indexing of rules |
Access All Areas |