AQ Guides  
  About AQ
Config
LAN Guide
Ping Guide
Scripts
 
     

  Sites  
  Actiongames
Action Quake
Counter Strike
DungeonSiege
 
     

  Columns  
  Coming Soon  
     
Dedicated to all things Action Quake. The Ultimate Quake 2 Mod
   Config Part 4
 

The Alias Command

Alias is arguably the most powerful command available to you when making your config, it enables you to set up routines (known as scripts) to allow you to do more complex things with keys than is normally possible (e.g. automatically changing your sensitivity when you zoom in with the sniper rifle).

The alias command sees it's end in Q2 (probably) because it was removed from Q3A because id thought it made it too easy for people to cheat (I disagree but hey, it's not my game) with the exception of the Q3F mod which has alias built into it.

Scripting

The command is used in the following manner (Thanks go to [TNN]Crimead for writing this) :

//TNN
alias TNN "say Clan TNN....The Newbie's Niche...#####.#..#.#..#;TN1"
alias TN1 "say Visit the Newbie's Niche at........#...##.#.##.#;TN2"
alias TN2 "say http://www.actiongames.co.uk/tnn...#...#.##.#.##;TN3"
alias TN3 "say For all your AQ2 needs.............#...#..#.#..#"
bind backspace "TNN"

(Depending on your resolution that may looks messy, if this is the case copy and paste it into a plain text file and you will be able to see clearly what it's meant to be)

As you can see the command follows the same basic form as the bind command, first come the word alias to tell Q2 that we are scripting, the next word (in this case 'TNN') is the name of the new command, you cannot use the name of a currently existing command. The section enclosed in speech marks is what you want the new command to do, whenever the command TNN is called it will broadcast the message above then execute TN1 (the next line).
Almost any console command or variable can be used in an alias enabling you to set up very complex scripts.

The best way to learn scripting is simply to look at other peoples scripts (you can find some to download in the extras section) and play about, if you need any help with anything just ask me, I'll be happy to help.

PREV   NEXT



 
  © Copyright Actiongames.co.uk 2001  
actiongames.co.uk



Advert