An Introduction to writing Scripts for Anarchy Online.
Basically a script is a list of commands that you want to do often and don't want to keep typing, usually for combat situations where time is short. You can make a macro of a script and have a button for it on your hotbar. Since I am a Meta-Physicist I use scripts so my pets can attack and heal on command so I will be using these as examples. The first hurdle to creating scripts is that most people don't have a scripts folder in AO. You must start by adding one, the default location is C:\programfiles\funcom\anarchyonline\scripts Once you have a folder you can save all your scripts in it Scripts need to be in .txt format to be read, so if you use Word to write them make sure you specify plaintext when you save. Notepad saves as plain text and is a better option
OK, here's my script for getting my pets renamed and ready to go...
Fairly straight forward, the delays are optional, each 1000 is a second. (There was a time when pets needed to be paused or they'd go a bit screwy.)
So, having written this literary gem I need to make a macro for in-game use, I save it into my scripts folder as Guard.txt and fire up AO. The basic template for a script macro is.....
/macro [name] [/script]
so I type /Macro Guard /Guard.txt-- this gives me a button for my hotbar labeled 'Guard', when I click this button in-game, all my pets are renamed and set about their duties.
OK, here's some of the others I use to give you a few ideas.........
Heal other, for when my healpet needs to save the life of a valued team mate.
/pet "the Vivificator" rename Pookie /pet "Pookie" behind /delay 200 /pet "Pookie" heal /delay 100 /tell %t [ I let Pookie cuddle you ] /say Pookie is making you better %t /pet "Pookie" chat "Pookie loves you thiiiiiiiiiiiiiis much"
An explanation of the parts; First a rename command in case this is a new Pookie, re-using my Guard script would alter what my attack and mez pets are already doing. Then a 'behind' command to get it to stay put long enough to receive the new commands or to make it come back from following another target. The heal command, I have to select who I'm going to heal as my target before I execute the script, Pookie will now begin healing the target. The chat..... A 'tell' from me to the target so they know they are safe from harm, (%t inserts the target's name) say in vicinity 'Pookie is making you better (inserts target name again)' Pookie says her bit. (She refers to herself in the 3rd person because she is a pet and not a real person, it's just a habit she has and is not a necessary condition for pet speak) Everyone is happy
My All Attack script from when I had 3 meatballs....
Again, self-explanatory I hope. Pointfor makes me point forward, hopefully at the intended target, it's dramatic and convinces people around me that I am a real character interacting with his environment and not a toon.......if they ever notice, which they don't....... (Note to all classes, watch any MPs in your party as often as you can, they really are fantastic people and you can learn a lot about deportment and style from them.)
Last two, a couple of social ones...
Hello--
/bow /delay 150 /say Greetings, %t
(MPs are always polite, especially to buff-begging no hopers who are rude and cannot say 'please' and 'thank you')
A final note of explanation, Sylvester, Pookie and Nermal are 3 of my cats, my Demon pet is called Frances (my wife) but NOT because it stands behind me in shops and complains incessantly)
Command List
You can use these in your scripts.
"/actionbar help" ; opens actionbar help menu "/afcm_AddProgram" "/afcm_RemoveProgram" "/afk" ; sets the user into afk mode "/anon" ; makes you anonymous from the /list command "/assist" ; assists target in a fight "/camera help" ; opens camera help menu "/camp" ; log out, must be sitting to use this command "/cc" ; command subsystem, "/cc help" for info "/cc addbuddy" ; add a buddy to friends list "/cc help" ; lists avail /cc commands and also how to use those commands "/cc rembuddy" ; remove a buddy from friends list "/cc rembuddy ?" ; remove all buddies in the unknown list "/ch" ; switch channel "/channel" ; switch channel "/char&viewdist" first variable is "/chardist" second is "/viewdist" "/chardist" ; changes view distances of characters "/chat help" ; opens chat help menu "/close" ; close an open info window "/delay" ; for scripting, accepts a integer, then delays in seconds for that amount "/emote help" ; opens emote help menu "/flash" "/funcom" ; tells the user that funcom made this game, etc "/g" ; switch chat to group "/group" ; switch chat to group "/help" ; main help interfact "/ignore" ; ignores all private, and public messages of a user "/invite" ; invites a player to private chat "/kick" "/list help" ; opens /list command help menu "/list" ; lists all the users in the playfield. use /list help for more info "/macro help" ; opens macro help menu "/macro" ; used to create a text macro "/me" ; used in general chat "/messagebox" ; accepts a line of text then displays a messagebox with the text "/misc help" ; opens misc help menu "/nexttip" ; displays next tip in sequence "/o" ; send a message to organization chat "/option" ; changes options to amount you specify "/org help" ; opens organization help menu "/pet help" ; opens pet help menu "/petition help" ; opens petition help menu "/petition" ; command to request ingame assistance "/played" ; displays time played on character in hour format "/quit" ; fast exits the anarchy online client "/r" ; reply to message recieved "/reply" ; reply to message recieved "/s" ; shout a message in vicinity chat "/say" ; talk in vicinity chat "/script help" ; opens script help menu "/script" ; executes a script file in the "scripts" folder "/selectself" ; target player "/set" ; gm command: unknown "/setoption" ; changes options to amount you specify "/shout" ; shout a message in vicinity chat "/showfile" ; shows the contents of a file in your anarchy directory "/showtooltip" ; shows tooltip message "/showview" "/start" ; start an application via the anarchy console "/team help" ; opens team help menu "/tell" ; send a private message to a user "/terminate" ; self-terminate your character "/text" ; echos text in the anarchy console "/TipOfTheDay" ; display tip of the day "/v" ; talk in vicinity chat "/viewdist" ; the max viewable distance from the players pov "/w" ; whisper a message in vicinity chat "/whisper" ; whisper a message in vicinity chat