I think Mike might have missed a comma, then again i think u might have missed one as well. (unless the contents of %var holds another var name ie: %var. is "%somevarname"
Anyway heres some examples, assuming your wanting vars like %var.DaveC %var.Mikechat etc
set $+(%,var.,$nick) 1234
inc $+(%,var.,$nick)
echo $($+(%,var.,$nick),2)
* $( ,2) aka $eval( ,2) means evaluate the stuff in here twice, once makes the varaible name up, the second one looks at the contenmts of the variable.
Simpling rules are (1) break the % of the front, becuase otherwise it well try and get the contents of a var called "%var.", which is normally nothing
and (2) When you have something that refences the var like SET or INC or DEC dont add the $( ,2)
and (3) Whne you have something that wants the value of the variable add the $( ,2)