I’m trying to build a system in my I7 game where a large number of
things exist which are related to each other, but only in small
numbers. I’ve decided to do this by using a table (to define the
things) and lists, rather than relationships, since I don’t need to
worry about the possibility that Thing A might suddenly become related
to Thing Z. Whenever I try to test this, though, I get an error.
Here’s some simple code which exemplifies the problem:
#begin code
"Test" by Tiefling
A monarch is a kind of thing. Some monarchs are defined by the Table
of Monarchy.
Table of Monarchy
monarch offspring
John {}
Richard I {}
Henry II {Richard I, John}
Matilda {Henry II}
Henry I {Matilda}
William II {}
William I {William II, Henry I}
#end code
And here’s the error messages:
Problem. In ‘Some monarchs are defined by the Table of Monarchy’ you
give a value of the offspring property as ‘{ Richard I, John }’, but
this ought to be a list of a complex value of some sort, not a list of
monarchs.
Problem. In ‘Some monarchs are defined by the Table of Monarchy’ you
give a value of the offspring property as ‘{ Henry II }’, but this
ought to be a list of a complex value of some sort, not a list of
monarchs.
Problem. In ‘Some monarchs are defined by the Table of Monarchy’ you
give a value of the offspring property as ‘{ Matilda }’, but this
ought to be a list of a complex value of some sort, not a list of
monarchs.
Problem. In ‘Some monarchs are defined by the Table of Monarchy’ you
give a value of the offspring property as ‘{ William II, Henry I }’,
but this ought to be a list of a complex value of some sort, not a
list of monarchs.
I’ve no idea what ‘a list of a complex value’ looks like. The
intention is very much that every entry in the ‘offspring’ column
should be a (possibly null) list of monarchs.
Can anyone help me untangle this?
Many thanks,
T.