Is there any way to check for a file before trying to use dofile() on it? Or, probably more usefully, is there any way to trap the error for when there is no file and do something instead of displaying something like the following?
Run-time error
World: Aardwolf - Balaam
Immediate execution
cannot open asdf.lua: No such file or directory
stack traceback:
[C]: in function 'dofile'
[string "Command line"]:1: in main chunk