Hello,

I'm a complete dunce for aliases and scripting, and need some help.

Using some information I gleaned from this thread, I have a working dice roller, customized to fit the game I'm playing. I want to use it in a bot to do the following.

Whenever a player uses the word "roll", followed by a number, I want the bot to do the following:

/msg $chan $nick is rolling [number] dice.
then execute the dice-rolling script.

The bot I have will do everything but accept the number after the word "roll." So it always tries to execute without a number.

How do I get the bot to accept the number? Also, how do I make the bot ignore the word "roll" whenever there isn't a number following the word.

EDIT: Okay, It now works if the user types ONLY "Roll [Number]" If I type (for example) "I roll 4 dice." it still won't execute.

Thanks,

Longspeak

Last edited by Longspeak; 01/05/05 05:32 PM.