Difference between revisions of "Triggers"
Ytodasexoc (Talk | contribs) |
m (Reverted edits by Ytodasexoc (Talk) to last revision by Dvough) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
This page is a link to the trigger repository for the [http://www.bat.org/play Official Game Client]. Listed here are only scripts specifically donated to this repository or otherwise homeless. Please do not add scripts that are published elsewhere without permission from the author(s). | This page is a link to the trigger repository for the [http://www.bat.org/play Official Game Client]. Listed here are only scripts specifically donated to this repository or otherwise homeless. Please do not add scripts that are published elsewhere without permission from the author(s). | ||
Line 15: | Line 7: | ||
==About Triggers== | ==About Triggers== | ||
− | Trigger scripts are stored in the | + | Trigger scripts are stored in the <code>batclient/scripts</code> directory and are files that end in .bcs. Triggers can be written manually or generated using Era's Bat [http://www.bat.org/batclient/plugins/trigs.html Era's BatClient trig generator thingie 1.0]. Once you've added/edited a trigger or script of triggers you can use the following two commands to reload and re-read your triggers. |
/scriptreload | /scriptreload | ||
Line 25: | Line 17: | ||
This is probably already explained in the client help but here goes: | This is probably already explained in the client help but here goes: | ||
− | # Find your batclient directory. For the rest of this help we will call this directory | + | # Find your batclient directory. For the rest of this help we will call this directory <code<$BATCLIENT</code>. |
::On Linux this is probably ~/.batclient or something like that. | ::On Linux this is probably ~/.batclient or something like that. | ||
− | ::On Windows XP it is | + | ::On Windows XP it is <code>c:\Documents and Settings\<username>\batclient</code> |
− | ::On Windows Vista it is C:\Users\ | + | ::On Windows Vista it is C:\Users\<username>\batclient |
− | ::On Windows 7 it is C:\Users\ | + | ::On Windows 7 it is C:\Users\<username>\batclient |
− | # Cut and paste the script that you want from this page and save it in the | + | # Cut and paste the script that you want from this page and save it in the <code>$BATCLIENT/scripts</code> directory. |
## On windows do this by running notepad | ## On windows do this by running notepad | ||
## copy/paste the desired script into a new text file. | ## copy/paste the desired script into a new text file. | ||
## Save the file in the scripts directory. | ## Save the file in the scripts directory. | ||
::If you are using Linux and don't know how to do this... | ::If you are using Linux and don't know how to do this... | ||
− | # Either restart Batclient or type | + | # Either restart Batclient or type <code>/scriptreload</code> followed by <code>/scriptbootup</code>. |
==Trigger Library== | ==Trigger Library== | ||
− | Please put each trigger on a separate page named | + | Please put each trigger on a separate page named "batclient triggers foo" where foo is the script name. |
* [[Batclient triggers partyprots|Party Prots Batclient Triggers]] - from Rigger - originally posted [http://www.bat.org/forum/index.php?showtopic=343 here]. | * [[Batclient triggers partyprots|Party Prots Batclient Triggers]] - from Rigger - originally posted [http://www.bat.org/forum/index.php?showtopic=343 here]. |
Revision as of 23:51, 24 November 2010
This page is a link to the trigger repository for the Official Game Client. Listed here are only scripts specifically donated to this repository or otherwise homeless. Please do not add scripts that are published elsewhere without permission from the author(s).
There are a great many examples on the web for other clients such as tiny fugue and zmud.
As one might expect, these triggers come with no warranty of any sort. Use at your own risk and all of that.
About Triggers
Trigger scripts are stored in the batclient/scripts
directory and are files that end in .bcs. Triggers can be written manually or generated using Era's Bat Era's BatClient trig generator thingie 1.0. Once you've added/edited a trigger or script of triggers you can use the following two commands to reload and re-read your triggers.
/scriptreload /scriptbootup
Check for parsing errors after reload and execution errors after bootup. More (and possibly) better information can be found in the Batclient help files which can be accessed from within the client.
Installing These Trigger Scripts
This is probably already explained in the client help but here goes:
- Find your batclient directory. For the rest of this help we will call this directory <code<$BATCLIENT</code>.
- On Linux this is probably ~/.batclient or something like that.
- On Windows XP it is
c:\Documents and Settings\<username>\batclient
- On Windows Vista it is C:\Users\<username>\batclient
- On Windows 7 it is C:\Users\<username>\batclient
- Cut and paste the script that you want from this page and save it in the
$BATCLIENT/scripts
directory.- On windows do this by running notepad
- copy/paste the desired script into a new text file.
- Save the file in the scripts directory.
- If you are using Linux and don't know how to do this...
- Either restart Batclient or type
/scriptreload
followed by/scriptbootup
.
Trigger Library
Please put each trigger on a separate page named "batclient triggers foo" where foo is the script name.
- Party Prots Batclient Triggers - from Rigger - originally posted here.
- Tzarakk Triggers - a set of triggers to make life as a Tzarakk easier.
At some point a zip file of all of these scripts will be attached to this page.