keaven

keaven

Joined
Jul 15, 2011

Activity Stream

keaven commented on a Page, Die Roll 3d6+2  -  Jul 23, 2011

Multiple people issuing commands to the bot, all at the same time, is something I've been thinking about. Since this particular snippet is just one of many possible commands, I didn't embed trigger flood protection here specifically. It is my hope I'll be able to work out a better solution at a higher level. But I do appreciate it being mentioned :) keep me honest guys ;D

@SReject: I actually did start off with something similar .. not nearly as elegant as what you posted here, but along the same lines. I ended up expanding it mostly because of people wanting to see individual rolls, and to identify natural 20's

 Respond  
keaven commented on a Page, Die Roll 3d6+2  -  Jul 22, 2011

[EDIT] Added %goodDice to limit rolls to valid die types. Added checks for natural 20's (when rolling d20s). Added comments to better break up what's going on.

 Respond  
keaven commented on a Page, Die Roll 3d6+2  -  Jul 21, 2011

Added event. This is how i'm using it.. inline with a slew of other !commands, thus the [if ($1 == !roll)] around the whole thing.

If !roll is called from a PM, all output is limited to that window, regardless of other channels you may be in. If !roll is called from within a channel containing the bot, rolls are reported in a PM to the user who called it, with final output being sent both to the PM as well as a notice to the channel where the command originated.

 Respond  
keaven commented on a Page, Die Roll 3d6+2  -  Jul 21, 2011

I added a max to the script. If the number of dice is greater than the max, it now suppresses individual roll results.

 Respond  
keaven commented on a Page, Die Roll 3d6+2  -  Jul 21, 2011

@Aha2Y: Thanks :)

@Jethro_: Yeah, i saw on some other dice roller they had a limiter for the maximum number of dice allowed. I should probably throw that in there. Also, the output is in a PM only, so as long as you're not doing something outlandish it should be okay. Granted, you don't want to go doing something like 500d12 .. cause, yeah.. that would flood you :P

 Respond  
keaven created a Page  -  Jul 21, 2011
368 

This is my first posting, so please be gentle ;P hehe

keaven commented on a Page, Simple Seen System  -  Jul 18, 2011

thanks jaytea! works like a charm :D
I've had to change ($1 = !seen) to (!seen isin $1) though... for some reason, ($1 = !x) or ($1 == !x) never triggers for me with mIRC 7.19 :\

 Respond  
keaven commented on a Page, Simple Seen System  -  Jul 15, 2011

how difficult would it be to tweak this to accept wildcards, and return all fitting entries?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.