I'm getting this error with using kitchen.visited (kitchen is a room):
Error running script: Error compiling expression 'game.pov.parent = hallway and kitchen.visited=true': CompareElement: Operation 'Equal' is not defined for types 'Object' and 'Boolean'
I looked at the attributes for kitchen, and I don't see a 'visited' attribute. I'm using the latest version of Quest (or at least whatever was on textadventures.co.uk on Friday), so did I miss something? Some feature I need to check?
I'll try to help a little. So basically you're using "visited" like a "flag". For example,
kitchen.visited=True or
kitchen.visited=False. Right?
1. I would say go to your Kitchen's
Attributes Tab2. Click "Add"
3. visited (Boolean) unchecked (making it False)
4. Then go to
Script Tab of the room, find the "After Entering" or "Before Entering" whichever you prefer (before might work better).
5. Add a "Script", "Set variable or attribute" then write
kitchen.visited=TrueMake sure that everything matches up. That's really important in Quest.
For example, your room-name is kitchen. So Kitchen.Visited (will cause errors), KITCHEN.visited (will cause errors), Kitchen.visited (will cause errors). If you write the name in lower case, every time you use it, it must be lower-case. Same goes for the attribute, visited. Also, make sure True and False are capitalized, otherwise they may not work in some instances.
I hope this helps to solve your problem, make sure you delete your old code that was causing the errors in the first place!