From ec5807f72c2956c3cc1ea5ddfe0498e3a8a6326e Mon Sep 17 00:00:00 2001 From: gumi Date: Sat, 27 May 2017 12:11:10 -0400 Subject: update the documentation for specialeffect() --- doc/script_commands.txt | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 861b9cc59..c11ee29a9 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -5819,7 +5819,8 @@ map as the invoking character. --------------------------------------- -*specialeffect({, {, ""}}) +*specialeffect({, {, {, }}}) +*specialeffect({, {, ""{, }}}) This command will display special effect with the given number, centered on the specified NPCs coordinates, if any. For a full list of special @@ -5832,13 +5833,25 @@ NPC specified does not exist, the command will do nothing. When specifying an NPC, must be specified when specifying an , 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!"); + behaves like except it can display the effect on +any kind of unit, not just NPC, by specifying its GID. + +When is SELF you can specify which player to send the effect +to by passing . + +Example usage: + + // To make a NPC do an effect and show it to everyone: specialeffect(EF_HIT1, AREA, "John Doe#1"); - close(); + + // To make a player do an effect and show it to everyone: + specialeffect(EF_HIT1, AREA, getcharid(CHAR_ID_ACCOUNT, "player")); + + // To make a NPC do an effect and show it only to the attached player: + specialeffect(EF_HIT1, SELF, "John Doe#1"); + + // To make a NPC do an effect and show it only to another player: + specialeffect(EF_HIT1, SELF, "John Doe#1", getcharid(CHAR_ID_ACCOUNT, "player")); --------------------------------------- -- cgit v1.2.3-70-g09d2