summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authoreuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-01 02:39:47 +0000
committereuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-07-01 02:39:47 +0000
commit85b119962ce618097aa58e513975e4454cc15610 (patch)
tree47eea241d6fa81804196ecf5766288e8a4bdbcd2 /doc/script_commands.txt
parent20ea235901d685237af6317d54f8087ab10a8e48 (diff)
downloadhercules-85b119962ce618097aa58e513975e4454cc15610.tar.gz
hercules-85b119962ce618097aa58e513975e4454cc15610.tar.bz2
hercules-85b119962ce618097aa58e513975e4454cc15610.tar.xz
hercules-85b119962ce618097aa58e513975e4454cc15610.zip
* Fixed Elemental Sword database entry, bugreport:6134
* Clarified documentation for "doevent" and "donpcevent", as per bugreport:428 (doc\script_commands.txt) * A major cleanup/rewrite of the "Whisper System" documentation (doc\whisper_sys.txt) * A few other minor documentation corrections git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16358 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt25
1 files changed, 15 insertions, 10 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 6ce6b186f..ffdd16061 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -5390,11 +5390,13 @@ while hidden then revealing.... you can wonder around =P
*doevent "<NPC object name>::<event label>";
This command will start a new execution thread in a specified NPC object at the
-specified label. The execution of the script running this command will not stop.
-No parameters may be passed with a doevent call.
+specified label. The execution of the script running this command will not stop,
+and the event called by the 'doevent' command will not run until the invoking
+script has terminated. No parameters may be passed with a doevent call.
The script of the NPC object invoked in this manner will run as if it's been
-invoked by the RID that was active in the script that issued a 'doevent'.
+invoked by the RID that was active in the script that issued a 'doevent'. As
+such, the command will not work if an RID is not attached.
place,100,100,1%TAB%script%TAB%NPC%TAB%53,{
mes "This is what you will see when you click me";
@@ -5412,13 +5414,16 @@ invoked by the RID that was active in the script that issued a 'doevent'.
*donpcevent "{NPC NAME}::<event label>";
-This command invokes the event label code within an another NPC or NPCs. If
-event label has the form "NpcName::OnLabel", then only given NPC's event label
-will be invoked (much like 'goto' into another NPC). If the form is "::OnLabel"
-(NpcName omitted), the event code of all NPCs with given label will be invoked,
-one after another. In both cases the invoked script will run without an attached
-RID, whether or not the invoking script was attached to a player. The event
-label name is required to start with On.
+This command invokes the event label code within an another NPC or NPCs. It
+starts a separate instance of execution, and the invoking NPC will resume
+execution its immediately.
+
+If the supplied event label has the form "NpcName::OnLabel", then only given
+NPC's event label will be invoked (much like 'goto' into another NPC). If the
+form is "::OnLabel" (NPC name omitted), the event code of all NPCs with given
+label will be invoked, one after another. In both cases the invoked script
+will run without an attached RID, whether or not the invoking script was
+attached to a player. The event label name is required to start with "On".
This command can be used to make other NPCs act, as if they were responding to
the invoking NPC's actions, such as using an emotion or talking.