Here's how I modified it, it's working, just save it as "whatever.ash".
void main()
{
while(my_adventures() >= 5)
{
//adventure(1, $location[spooky forest]);
adventure(1, $location[deep fat friar's gate]);
adventure(1, $location[sleazy back alley]);
adventure(1, $location[knob goblin...