List not recognized after initial script (Solved)

Some of you know I was working on a combination lock. I wanted that combination to be different every time the game is played. The random number generator to create the combination lock works great. I have that set in the Game script. When I test it in the Game script (at the end) it calls the list flawlessly.

When I call the function to start the combination lock procedure,

Error running script: Error compiling expression 'ListItem (comb, 0)': Unknown object or variable 'comb'

Does the list need to be global? Why isn't it recognized in the function?


Does the list need to be global? Why isn't it recognized in the function?

Kind of. Quest does not have globals, so you need to make it an attribute of something. I would make it an attribute of the lock/container/exit. You will need to set the attribute in your start script.


Ok Thank you.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums