Use ][ brackets to evaluate the identifer within the scipt
Code:
var %something. [ $+ [ $nick ] ] = variable here

or "set" if you want keep the variable or you can use a hash table
Code:
hadd -m something $nick varible here
echo -a $hget(something,$nick)