Sort of amazing how this working script, that has no complaints at all, has a rating of 2 (otherwise known as an "Incomplete"). As for your question Riachu: Yes, just need to reformat the code to match the html of the website
The ?: I never knew about. I have never come across that any tutorials or from messing around with it, As I said to Yoinx "Yoinx, I guess I just learned something new ;p." As for the digit, I know 1 and 0 represent a "true/false" value in a way, but it's a habit of mine that, as if someone didn't know I have OCD, bothers me if I don't follow through with it ;/ I'll try to quit, lol. Anyways, thanks for this tips FiberOptics ;p
Two things, 1. Use the var command only once (var %channel.numbers = $chan(me),%temp = 0 2. Why not use a while loop. It's much cleaner:
while (%temp <= %channel.numbers) {
commands
inc %temp
}
Why not put all the commands in one text event, and if in the future you use commands don't do this:
on *:text:*!command*:#: {
if (!command == $1) commands
use:
on *:text:!command *:#: { commands }
The >= 4 is to set certain chances (If it answers to the same common thing all the time, it's really annoying), and as for the hey/hi/hello, you can choose between the 3. So it'd be Hello, <Bot Nick>. or Hey, <Bot Nick>.. your choice
@Rapid, I know it's easier, but this was to help teach $regex, not to make a script. That's the point of snippets.
Yoinx, I guess I just learned something new ;p
the point of snippets is to teach people how to script mirc. The point to mirc is to make life easier on IRC. You'd find things a lot easier doing it the way i suggested, than typing everything out, not to mension faster
What if people don't want to use those words? It'd be better to do something like
var %a = $left($1,1)
$remove($1,$left($1,1))
$1 $+ %a ay
(that's for translating into)