1. The fact that you only know how to do it with brackets doesn't mean that any other way is wrong (if that's not what you thought, you ought to have mentioned "alternative way" or something of the sort - basic etiquette and common sense).

2. Your way of creating dynamic local variables is wrong because of a mirc bug: the = sign will be included in the var's value. Apart from that, you don't even need brackets there (as you don't need them in /set either).