| Chapter 8: Change |

| 8.5. Change of properties with values

Changing properties with values is very similar:

> change the printed name of the Closet to "Suddenly Spooky Closet"

Inform checks three different things to ensure that this change is safe to perform. Firstly, the value must be the right kind for the property in question, so this for instance would be rejected:

> change the printed name of the Closet to 7

Secondly, the object in question has to be allowed to have the given property. This, for instance, would be disallowed:

> change the initial appearance of the Closet to "Dusty"

(since "initial appearance" is a property which only things can have, not rooms). Finally, the object has to actually have the property, not just have the right to have that property. Thus:

> change the printed name of the Closet to "Suddenly Spooky Closet"

...is only permitted if the Closet is designed with a "printed name". In fact this is certain to be true: all rooms and things automatically have a printed name, which is the short boldface description in the case of rooms, and the usual text briefly describing something in the case of things.

98
| Example Thirst A waterskin that is depleted as the player drinks from it, and a campfire he can light.

Previous | Contents | Next