I have defined a kind of value known as “valuation”, and I have stated that things have a valuation. This works fine, of course. But when I try to invoke this kind of value in a to-phrase, like this:
To place (i - a number) of (worth - a valuation) things in (coffer - a thing):
let n be the number of off-stage worth things;
let m be i;
if m is greater than n, now m is n;
while m is greater than 0:
let item be a random off-stage worth thing;
move item to coffer;
if generation info is true, say "* Putting [item] in [coffer].";
decrease m by 1.
Inform throws errors for the second and sixth line, as it doesn’t understand what an “off-stage worth thing” is. (Or what a “worth thing” is, for that matter; the problem does not lie in adding the off-stage property.) Why is it failing to understand me, and how do I get Inform to do what I want?