Okay. I don't get how the aliases works. Completely. I need to make some if statements to be used by few other commands.

One is set of nicknames, that I want to change.

Code:
if ($nick == nick) var %nick = NiCK
      elseif ($nick == anothernick) var %nick = AnotherNick
      elseif ($nick == supercoolguy) var %nick = SuperCoolGUY
      else var %nick = $nick


Sth like this. But how to make an alies (or whatever to allow me using this in plenty of scripts)?

I want the bot to know that when I wrote %nick, he should do if statement to check what the nick is and change it to appropriate nickname.

The same thing goes with if statement with (currently) 667 if/elseifs, so I don't have to copy that large ammount of code (2000 lines...) just to make command using the same vars. Second one looks like that:

Code:
var %rch = $rand(1,667)
      if (%rch == 1) {
        var %pre = Dark Sun
        var %char = Gwyndolin
      }
      elseif (%rch == 2) {
        var %pre = Black Dragon
        var %char = Kalameet
      }


It would be pretty stupid to make this pasted any time I need it, except for some alias thing or what the mirc need to storage this data.

Thanks in advance.