From 92edc3c1a3fff932737a1922aede941388912648 Mon Sep 17 00:00:00 2001 From: euphyy Date: Thu, 29 Nov 2012 01:34:17 +0000 Subject: * 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 --- doc/script_commands.txt | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'doc') 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","::"{,,}); 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. --------------------------------------- -- cgit v1.2.3-60-g2f50