Relic Castle

Hey guys, I try to put this following pokemon script on my game, but when I try to to emulate the game it give me this error message:





I don't even try to call the script, the error appear in the compilation...
really don't know how to fix, any tips?
Top