summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authoreuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-29 01:34:17 +0000
committereuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-29 01:34:17 +0000
commit92edc3c1a3fff932737a1922aede941388912648 (patch)
tree68311302fd562c4512ff33f89305daf146128d06 /doc
parent6f34fff59a234f7ac32572033fdeff7c68b88eea (diff)
downloadhercules-92edc3c1a3fff932737a1922aede941388912648.tar.gz
hercules-92edc3c1a3fff932737a1922aede941388912648.tar.bz2
hercules-92edc3c1a3fff932737a1922aede941388912648.tar.xz
hercules-92edc3c1a3fff932737a1922aede941388912648.zip
* Added missing bindatcmd documentation (tid:74882).
* Follow-up r16976: spell check and other minor changes. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16978 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt21
1 files changed, 9 insertions, 12 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index bbb988307..0362e5a87 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -6575,8 +6575,13 @@ The commands can also run without an attached rid.
*bindatcmd("command","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>});
This command will bind a NPC event label to an atcommand. Upon execution of the
-atcommand, the user will invoke the NPC event label. An array .@atcmd_parameters$[]
-will be filled with the given parameters, starting with an index of 0.
+atcommand, the user will invoke the NPC event label. Each atcommand is only allowed
+one binding. If you rebind, it will override the original binding.
+
+The following variables are created upon execution:
+ .@atcmd_command$: The atcmd used.
+ .@atcmd_numparameters: The number of parameters defined.
+ .@atcmd_parameters$[]: Array containing the given parameters, starting from an index of 0.
Example:
@@ -6603,16 +6608,8 @@ This command will unbind a NPC event label from an atcommand.
*useatcmd "command";
*useatcmd("command");
-This command will execute a custom atcommand on the attached RID from a script.
-Whether invoked by a script or command, an array .@atcmd_parameters$[] will be
-filled with the given parameters, starting with an index of 0.
-
-Example:
- @test Testing Command
-
-The following array values will be generated:
- .@atcmd_parameters$[0] = "Testing"
- .@atcmd_parameters$[1] = "Command"
+This command will execute an atcommand binding on the attached RID from a script.
+Variables will not be created when invoking scripts with this command.
---------------------------------------