I'm probably just being an idiot by not working this out, but whenever I try to run the script, it just displays the following:

"Adventuring in The Gingerbread City stops.
Farming sprinkles...