;; Not strictly a token identifier as the name would suggest ;; It generates a list of output from a specific identifier which accepts an N parameter ;; ;; Usage: $fulltok(name,C,params[,params...])[.prop] ;; ;; For example: $fulltok(nick,44,#mirc) ;; Will call $nick(#mirc,N) to retrieve all nicknames and put them in a comma delimited list ;; ;; $fulltok(fline,32,#chan,word) ;; Calls $fline(#chan,word,N)..
;; Random $replace by Sigh_ ;; ;; Like $replace but replaces a random number of matched substrings ;; Usage: same as $replace i.e. $randreplace(string,substring,newstring,...) ;; ;; For example, $randreplace(abcabcabc,a,x,b,y,c,z) ;; Randomly replaces a with x, b with y and c with z ;; ;; Use the .cs property for case sensitivity -- $randreplace().cs
; Simple picture window script that allows you to simulate the motion ; of a projectile at varying angles/speeds acting under conditions ; similar to those encountered in real life ; ; Copy the code into Remotes and type /cannon to start it. ; The rest should be quite self explanatory, you start it moving by ; pressing "project", pause it at any time with "pause", and reset it ; to the beginning..
; $_iswm by Sigh ; Lets you escape characters when performing a wildmatch ; Usage: $_iswm(string,match1,match2,...,matchN) ; Returns $true if any of the matches given is a wildmatch of the string ; Characters are escaped with a backslash character \ ; For example, to check if "ab" exists anywhere in $1- you could use if ($_iswm($1-,*a*b))
A good idea, only thing I\'d fault is the use of checking if ($1) && ($2) && ($3) to make sure 3 parameters were specified. It fails if I want to choose 0 as the beginning of a range, i.e. $rs(10,0,9) to get 10 random numbers since if (0) is false. A better method to check 3 parameters have been supplied is to see if ($0 = 3) where $0 returns the number of params passed to the alias
You can use a $findfile loop for iterations involving operations on each file returned by $findfile, so as an example: //var %x | .echo -q $findfile($mircdir,*.mrc,0,inc -s %x $file($1-)) | echo -a %x - also note that /var creates a local variable, one that terminates at the end of the running process, to avoid setting/unsetting global variables