If an object can be lit in any of various ways (frotz spell, coated in phosphorus, turned on), is there an elegant way to redefine its lit property to be true if any of those are? Or do I need to write an every-turn rule?
I would like to be able to do something like this:
Definition: the lamp is lit:
if it is soot-coated, no;
if it is switched on, yes;
if it is phosphorus-coated, yes;
if it is frotzed, yes;
no.
This is a contrived example, but you see the point.
Obviously this doesn’t work because “lit” refers to the I6 property “light”, not anything in I7 itself. But is there a simple way to make I6 sometimes check an I7 property as well? (For example, could a modified light-check routine first check for a “special-light” I7 property, which switches whether it uses the normal “light” behavior or calls an I7 rulebook to determine whether it is lit?)
EDIT: I’m working on an I6 workaround, but I’ve run into a problem: how do you call a rulebook on objects from I6? I see how to translate and call a rule, which could call the full rulebook, but a simple rule can’t take objects, can it?