Hi,
What is the best way to print a description of a room and of an object?
At present I'm using this for rooms:
OutputTextNoBr ("Looking out the front window you see the small-holding outside.")
foreach (obj, ScopeVisibleNotHeldForRoom(smallholding)) {
if (HasAttribute(obj, "inroomdescription")) {
msg (obj.inroomdescription)
}
}
But its horribly over-wrought, and it doesn't expand TextProcessor entries that are in those "inroomdescription" entries.
I don't yet have a solution for objects.
I was sure there'd be some dynamic template or something I could activate?
UPDATE: This function FormatObjectList(...) looks like it should be most of a solution but I can't get it to work:
http://docs.textadventures.co.uk/quest/ ... tlist.htmlWhen I paste in the exact sample code I get an error
> look out
Error running script: Error evaluating expression 'FormatObjectList("You can see", player.parent, "and", "in this room.", false)': Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index