in reply to more than I can chew

Before you dive into using Perl, I'd take a good hard look at built-in triggering systems in the MUD clients out there, if you can. Most I've used are custom-built already to have the functionality you're looking for. Some (ZMud comes to mind) have pretty powerful scripting languages built in.

That said, Expect probably is your best bet if you're determined to go with Perl. Build up your trigger list in an array and pass it to $instance->expect. I'd probably structure it to simulate an event-driven app which dispatched subs based on the list return value of expect.

Replies are listed 'Best First'.
RE: Re: more than I can chew
by csorensen (Beadle) on Jul 04, 2000 at 01:49 UTC
    I checked out the client that you're supposed to use with this particualr mud... it has a really basic scripting system which is strictly linear. The best I can do is create a horibble system of if/then loops.

    I really want to do this in Perl .. the scripting language that's built into this client is soooo lame. A typical loop is constructed with "if <something> then <goto label>". There aren't any triggers .. only a "matchwait" command which cannot accept more than one value at a time.

    what I would really like to do is develop a program that can be used with the existing mud client ..