___ Dynamic Variables 101: ___
[Setting your dynamic variable]
mIRC 5.x: /set %MyVar. [ $+ [ $nick ] ] DATA
mIRC 5.x: /var % [ $+ [ $me ] $+ . $+ [ $ctime ] ] = DATA
mIRC 5.x: /set %MyArray. [ $+ [ %x ] $+ . $+ [ %y ] $+ . $+ [ %z ] ] DATA
mIRC 6.x: /var $+(%,MyVar.,$nick) = DATA
mIRC 6.x: /set $+(%,%xyzzy,.,%yatta,.,%zig) DATA
mIRC 6.1x: /var %MyVar. $+ $active = DATA
mIRC 6.1x: /set % $+ $network $+ . $+ $chan DATA
Those last two may also work in earlier versions of 6.x, though personally I prefer using $+(x,y,z)
[Reading your dynamic variable]
mIRC 5.x: /echo -a %MyVar. [ $+ [ $nick ] ]
mIRC 5.x: /echo -a % [ $+ [ $me ] $+ . $+ [ $ctime ] ]
mIRC 6.x: /echo -a $eval($+(%,MyVar.,$nick),2)
mIRC 6.x: /echo -a $($+(%,%xyzzy,.,%yatta,.,%zig),2)
Note that $(...,2) is short for $eval(...,2)
And $+(...) is the same as using many $+ 's
I'm sure there are other methods, but these are the most commonly applied.
- Raccoon