Hello again everyone,
When a player enters a room, Quest can print a list (with hyperlinks) of all the objects in there. Is there some way I can get this to be reprinted as part of a script?
This will get the list as a string:
FormatObjectList(game.pov.parent.objectslistprefix, GetNonTransparentParent(game.pov.parent), Template("And"), ".")
Thanks. Unfortunately, if I try to add that into the coding on the web version it just says "an internal error has occurred" and crashes. It there a way of doing it via the options on the web version?
Yes; I tried again and got:
Call function FormatObjectList
However if I play the game I don't get a list.
Any suggestions? Presumably I need a function called FormatObjectList, but I don't know what this function should contain.
Sorry, this just gets a list. You need to do something with it. Eg:
s = FormatObjectList(game.pov.parent.objectslistprefix, GetNonTransparentParent(game.pov.parent), Template("And"), ".") msg(s)
That's brilliant, thanks!
Next question... is it possible to show a list like that but with, say, only 'Object1' in it?
I.e. "You can see [blue hyperlink] Object1."