well i have the following code
on *:TEXT:*:#:{ if ($1 = .set){ set %$2 $3-}}}
that will set the variable name as %$2, but i want whatever text $2 is to be the vaiable name, say if .set egsample is entered, how would i edit this script so that the variable name would become %egsample instead of %$2?
im new to mirc scripting

(the above code is an abrieviated version of what i have allready done)