Using $eval like you did is pointless, as not specifying the level of evaluation makes it default to level 1, which is the normal level when you execute a command from the command line with double // or from a script.
//var %a = $me
is the same as
//var %a = $eval($me)
Frankly, what you're asking makes no sense, if you do:
//set %var blabla $nick blabla
and you use this command in an event where $nick returns a value, fex it is 'sparta', then it wil set the var to "blabla sparta blabla".
You are probably doing something wrong again, but we cant help further unless you specify what exactly you are doing in what event, as in showing the exact code.