control of objects shown in 'require another object' menus
bergedorfcacher
25 Jul 2016, 16:05Hi,
My game works entirely without a command line, everything is clickable. This allows me nearly everywhere to just not offer an options that do not work, so the user rarely gets messages like 'you can't do that'. One exception is the 'require another object' menus. They seem to offer all visible non-scenery objects in the room. Is there any way to exclude objects being shown there? Also, is there a way to add (specific) scenery objects there?
bergedorfcacher
25 Jul 2016, 17:41I think I found this myself (after looking at a somewhat related thread). I hope I can achieve what I want by changing these parts in the command script:
menu = NewStringDictionary()
objectlist = ListCombine (ScopeReachableInventory(), ScopeReachableNotHeld())
excludelist = NewObjectList()
list add (excludelist, game.pov)
list add (excludelist, object)
candidates = ListExclude(RemoveSceneryObjects(objectlist), excludelist)
Thanks for listening! :-)