Difference between revisions of "Scripts"

From Anarchy Online Wiki [AOWiki]
Line 19: Line 19:
 
* %f similiar to %t but its the fighting target.
 
* %f similiar to %t but its the fighting target.
 
* /delay x = will pause the script for x milliseconds ( x = 1000 = 1 second)
 
* /delay x = will pause the script for x milliseconds ( x = 1000 = 1 second)
* /targetself = not sure what this does ;)
+
* /selettself = target yourself
  
 
A great location for premade scripts is [http://www.zanthyna.com Zanthyna's Website].
 
A great location for premade scripts is [http://www.zanthyna.com Zanthyna's Website].
 
[[Category:Glossary]]
 
[[Category:Glossary]]

Revision as of 15:54, 21 October 2005

Scripts in AO are textfiles, they are located in "...\Anarchy Online\Scripts\", they have usually no file extention for better handling ingame. They are basically a list of chat commands to be executed on call.

How to create and use a script:

  • Open your windows-explorer and go to "...\Anarchy Online\Scripts\"
  • Create a new Textfile "testscript" in this folder.
  • Open it and type: "/w well well, this is a script, who would have figured...."
  • Save and close the file. Go ingame (scripts can be modiefied while logged in.)
  • type "/testscript" in some chatwindow
    • watch yourself whispering: "well well, this is a script, who would have figured...."

All chat commands can be used in scripts, from emotes (/ymca) over shouting (/s) to specific groups (/g "<orgname>"). Some special command usually only used in scripts are:

  • %m = a variable replaced with your name
  • %1 = a variable, it is the 1st word you typed after the scriptname
    • script: "/s Watch out! A %1!"
    • macro: "/macro watch_out /script %t"
    • will result in a shout: "Watch out! A <name of your target>!".
  • %f similiar to %t but its the fighting target.
  • /delay x = will pause the script for x milliseconds ( x = 1000 = 1 second)
  • /selettself = target yourself

A great location for premade scripts is Zanthyna's Website.