What is Scripting?
Scripting in Anarchy Online is a great way of maximising what you can out of text, emotes and chat commands - it allows you to string together these things to give you some great automated textual content. Khuri's Script Editor is a great tool featured on AO Universe to make your scripting really straight forward. However in this guide, we will give you some information about potential uses of scripting and commands you can input to it.
With AO, basically each line in your script - is one you could have potentially typed or /emoted in game. It works exactly the same with whichever active chat channel you have selected, or you can write the script to go to a specific channel all the time, irrelevant of what you have selected ingame.
What can I not do with a script?
The client does NOT allow any attacks, nano casting or perk specials automation to be performed in this way.
Also, as mentioned in Khuris information on the script editor :
Please Note:
- Do not make Chatlines larger then 1024 chars at once. It will crash your Client!
- Do not make a Script larger then 4096 chars in total. It will crash your Client!
- Do not use fake-references of items for sellings items! It's not nice to other people
So, what can I really use a script for?
Scripting is great for use in raid situations when people are dependant on knowing when you can next cast something, or if you are the main caller in a raid - then you can use a script instead of a macro if you wanted to let the team or raid force know what you are currently attacking and what you will be targetting next.
Scripts are really useful when running or participating in RP events - such as giving a talk about something at the Science Symposeum, or perhaps receiting a poem at a reading night.
Script Commands
These are all commands you can input into your script
Command Description
/ <text> or /say This will send text to vicinity. Remember to put a space between the / and your text!
/t <text> This will send text to your team channel
/o <text> This will send tex to your organisation channel
/s <text> This text will shout into vicinity
/w <text> This text will whisper into vicinity
/ch <channel> Change default channel to the channel of your preference
/me <text> Emote <text> into vicinity
/lft <message> Turns LFT on and off and inputs <message> as your LFT description
/afk <message> Turns afk on and off and inputs <message> as your away message
/anon Turns anonymous mode on and off. When on, /list will not show your name
/list Shows upto 20 other players currently in the same zone as you
/camp Exit out of AO
/quit Exits AO immediately
/ignore <name> Add or remove <name> from your ignore list
/selectself Targets yourself
/text <text> Shows <text> in your own chat window
/voice <sound> Plays <sound> from your voicepack file
/start <target> Runs an external program or opens an URL in your internet browser
/option <option> <value> Changes the games settings. See this [url=]guide[/url]*
/setoption <option> <value> Similar to /option, but this command will also display changes in the chat window**
/delay <time> Makes the script wait <time> miliseconds. This is a VERY important command
There are also a set of commands for pet users to use and you can find them here in this guide.
In addition, all the emotes can be used as found in XXX
Setting Variables in your Scripts
So, not only can you use all those above commands - but you can also input some variables as shown in the table below:
Variable Action
%m Inserts your own character name
%0 Inserts the name of the script you are running
%t Inserts the name of your current primary target
%f Inserts the name of the target you are currently fighting
%1 to %9 Replaces with parameters you gave to your script
How do I use these Script Commands?
Well, it really is very simple. Either you can use the ScriptEditor Tool here on AOU. Or you can open wordpad or a similar textual document creator.
Your scripts can really be as simple or as complex as you want to make them, lets have a look at some examples.
When you have made your script, you need to save it into your AO Directory in a folder called Scripts. If this is your first time making a script, you will need to make yourself a completely new folder in your Anarchy Online folder.
Then, when you are ingame you just need to type /SCRIPTNAME (with file extension if it has one e.g. .txt )
and hit enter and your script will start! Alternatively, you can set up a [url=]macro[/url] and pop the macro on your quick bar to make things even more simple for you!
Need an example?
Of course you do! Here are some great examples of scripts you could try using
Code:
/say Greetings, may I have your attention.
/delay 3000
/me looks around
/delay 3000
/say Welcome to Rubi Ka!
Code:
/greet
/delay 3000
/say Hello %t, please could I trouble you for %1 %2?
Remember when you run this script to insert your parameter for %1 and %2, for example - Riot Control
Also, you need to target whoever you are requesting for this buff so their name appears in the %t part.
This one is really handy for Soldiers.. can be modified with different timings for TMS. Also the same idea can be applied for other nano programs.
Code:
/text -._.-._AMS UP_.-._.-
/delay 40000
/text AMS: 40 seconds remaining
/delay 25000
/text AMS: 15 seconds remaining
/delay 10000
/text AMS: 5 seconds remaining
/delay 5000
/text -._.-._AMS DOWN_.-._.-
So, that really is the basics, more complex ideas for scripting are discussed within Khuris Script Editor.
There will also be more guides to follow to cover some areas that this guide hasnt really touched on.
-------------------------------------------
* This guide will be written separately in the near future
** Information will be in the same guide as the "options" guide.