That solved the errors problem, but I also had to uncheck "Global" from the NPC properties to make the dialogue fire because I don't have all the main module scripts in my StoryEditor. This guy's tutorial seems to work for custom module dialogue: http://www.youtube.com/watch?v=uXnbwL5ATu0

Is there an easy way to import the main module codes into my custom game?