in reply to Re: Wizard v1.2
in thread Wizardv1.1

How come when I kill Demons in combat, I only get 3 gold, but when I zap them with a spell, I get 6?

Also, I hit a "deep recursion" at one point, which I thought was odd, but it didn't affect gameplay, which is, of course, smooth and realistic. :-)


Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^3: Wizard v1.2
by wazoox (Prior) on May 09, 2005 at 19:27 UTC
    Hmmm, looks like a bug :) For the deep recursion problem, I didn't really understand what happened, but I didn't care too much because it works fine anyway :)
    BTW I'm surprised to see that there so few text-based adventure games on perlmonks, and I started working on it more seriously :)
      The deep recursion is due to, well, everything recursing. You have battle calling freedale, which calls battle, which calls toad, which calls....

      I've revamped the game quite a bit. I got rid of the recursion, in favor of (usually) redo. Freedale is like a main event loop, and everything else is called from there, and eventually returns to there. I introduced some randomness into how much gold you get, gave each zone a limited supply of monsters (and limited the types), got rid of the "you don't find any monsters" thing, added a couple of jokes, changed formatting, just bunches of stuff. Still, it's basically the same game.

        Wow, nice improvements :)

        update: However you forgot some \n here and there! ;)

        I just added that...