Difference between revisions of "Scripts"

From Anarchy Online Wiki [AOWiki]
m
Line 1: Line 1:
Scripts in AO are textfiles, they are located in "...\Anarchy Online\Scripts\", they have usually no fileextention for better handling ingame. They are basically a list of chatcommand to be executed on call.
+
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 make and use a script:
+
How to create and use a script:
  
 
* Open your windows-explorer and go to "...\Anarchy Online\Scripts\"
 
* Open your windows-explorer and go to "...\Anarchy Online\Scripts\"
 
* Create a new Textfile "testscript" in this folder.
 
* Create a new Textfile "testscript" in this folder.
 
* Open it and type: "/w well well, this is a script, who would have figured...."
 
* 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 whil logged in.)
+
* Save and close the file. Go ingame (scripts can be modiefied while logged in.)
 
* type "/testscript" in some chatwindow
 
* type "/testscript" in some chatwindow
** watch your self whispering: "well well, this is a script, who would have figured...."
+
** 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:
 
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:

Revision as of 06:25, 19 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)
  • /targetself = not sure what this does ;)