just another question for you pro's, would be cool if you could help me there. is it possible to set the trigger so that it will function (in this case) to not only "!game", but also to look in whole sentences like "why dont you type !game while we're at it" i've tried: bind pub ...
so... bind pubm o|* "!game" game proc game {nick host hand chan text} { if {[string equal -nocase "#channel:!game" $text]} {random_int} #or add set var text here and return $text or can i leave it at all?? } proc random_int { } { set myrand [expr int(rand() * 7)] return $myrand }...
yea, will do. ty, was trying to get my mirc script into tcl and as i've said i've never worked with tcl scripts, so u are right. but calling it "spaghetticode" is veeeery nice of u
hi all, as u've seen in the topic it's my first tcl one (did mirc scripts already). here's my code so far: bind pubm o|* "!game" game proc game {nick uhost hand chan rest} { if {[string equal -nocase "!game" $text]} {random_int} proc random_int { } { global myrand set myrand [exp...