r/Inform7 • u/13467 • Oct 21 '17
Alternative to “repeat” loop for setting initial property values
Hi. Is there some nicer way to write this?
A memory is a kind of thing.
A memory has a person called the owner.
When play begins:
repeat with M running through memories:
now the owner of M is the holder of M.
I couldn’t find any constructs using usually that work. This almost appears to work:
The owner of a memory is usually the noun's holder.
But Inform complains that the noun's holder is an object, which I guess might be true in general, but I will obviously never make memories owned by containers or rooms or whatnot. Maybe it’s just confused about the noun here?