Achaea's alias system, including targets and variables - Achaea Online Help
2.10 Achaea's alias system, including targets and variables
What is an Alias? ----------------- An alias is a way to set up a shorthand: something you type that stands for something else. If you are always typing CREDITS FOR SALE, for example, wouldn't it be easier to just type CFS? Yes, of course it would. Here's how to do this: SETALIAS cfs credits for sale Every time you type cfs, Achaea will substitute CREDITS FOR SALE and issue that command for you. Let's say you try this: SETALIAS sayhi say Hi everyone! Now when you enter: sayhi Everyone will see you say: Hi everyone! Combat Targetting ----------------- The SETTARGET command will set your sights on a particular target. You can then use this information in your aliases. Let's say you want to use ml for maul. Here's how to accomplish this: Set up the main alias: SETALIAS ml maul &tar Then define the target: SETTARGET rat Or change the target: SETTARGET hyena Every time you want to maul something else, just use a new SETTARGET to change the value of your target 'tar.' Limits on Aliases ----------------- DON'T make alias names longer than 12 characters. DON'T put spaces in alias names, though you can put numbers. Problems with Aliases --------------------- Many problems can come from badly done aliases. If you find that a command just stops working for you, check your aliaslist (AL). Maybe you set up 'eat' or 'smoke' as an alias, then later tried to use the regular command and it got all messed up. Advanced Aliases ---------------- There is one more thing about aliases that could be useful. For setup, try this: SETALIAS s2 say to To use it, type this: s2 juliet Salutations, honoured Juliet! Which means you'll do this: say to juliet Salutations, honoured Juliet! Everything after the alias (in this case, everything after 's2') remains part of your command. Think of the implications! In fact, that's your assignment, gentle reader. Think of all the lovely things you might do with that. Commands -------- ALIASLIST : Lists your aliases. AL : same as ALIASLIST. CLEARALIAS <alias name> : Clears an alias. SETALIAS <alias name> <result> : Makes a new alias. CLEARTARGET <target> : Clears a target. SETTARGET <target name> <text> : Makes a new target. ST : Same as SETTARGET.