My first test NPC's dialog goes:
Oh, hello Princess! Didn't see you there!
Are you having a nice day?
$? Yes
$? No
Yes is "That's good!"
No is "Oh, pity."
The strange thing is, when I first did it, it worked fine. After moving the map into a different folder, it stopped working. There's nothing else wrong with the script, it doesn't throw out any errors or anything, it just doesn't give the proper response.
I'll address the second NPC when I get the first one working.