summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 7b8330e2d..07819d238 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -4561,7 +4561,7 @@ character.
---------------------------------------
-*specialeffect <effect number>{,<send_target>};
+*specialeffect <effect number>{,<send_target>}{,"<NPC Name>"</NPC>};
This command will display special effect with the given number, centered on the
specified NPCs coordinates, if any. For a full list of special effect numbers
@@ -4569,6 +4569,19 @@ known see 'doc/effect_list.txt'. Some effect numbers are known not to work in
some client releases. (Notably, rain is absent from any client executables
released after April 2005.)
+<NPC name> parameter will display <effect number> on another NPC. If the NPC
+specified does not exist, the command will do nothing. When specifying an NPC,
+<send_target> must be specified when specifying an <NPC Name>, specifying AREA
+will retain the default behavior of the command.
+
+ // this will make the NPC "John Doe#1"
+ // show the effect "EF_HIT1" specified by
+ // Jane Doe. I wonder what John did...
+ mes "[Jane Doe];
+ mes "Well, I never!";
+ specialeffect EF_HIT1,AREA,"John Doe#1";
+ close;
+
---------------------------------------
*specialeffect2 <effect number>{,<send_target>};