diff options
author | Murilo_Bio <murilopereti@gmail.com> | 2017-08-25 19:33:49 +0100 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2018-06-30 00:32:10 +0100 |
commit | a2cfc93a840e51fb1cc1ab132273890c200a9cd3 (patch) | |
tree | 83311c678533389e311ff9e56e86405c88ccbbc4 /doc | |
parent | fe476d318579755b30bb0ed5f61d402e5fa5754b (diff) | |
download | hercules-a2cfc93a840e51fb1cc1ab132273890c200a9cd3.tar.gz hercules-a2cfc93a840e51fb1cc1ab132273890c200a9cd3.tar.bz2 hercules-a2cfc93a840e51fb1cc1ab132273890c200a9cd3.tar.xz hercules-a2cfc93a840e51fb1cc1ab132273890c200a9cd3.zip |
add option to hide names from unittalk() and npctalk()
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index a00756056..efccf799b 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -6631,12 +6631,16 @@ Examples: *unitwarp(<GID>, <Mapname>, <x>, <y>) *unitattack(<GID>, <Target ID>) *unitstop(<GID>) -*unittalk(<GID>, <Text>) +*unittalk(<GID>, <Text>{, show_name}) *unitemote(<GID>, <Emote>) Okay, these commands should be fairly self explaining. For the emotions, you can look in db/constants.conf for prefixes with e_ PS: unitwarp() supports a <GID> of zero, which causes the executor of the +PS: unittalk() can receive a third parameter: + show_name: + true: Shows Unit name like "UnitName : Message" (default) + false: Hides Unit name script to be affected. This can be used with OnTouchNPC to warp monsters: @@ -6750,12 +6754,16 @@ A debug message also shows on the console when no events are triggered. --------------------------------------- -*npctalk("<message>"{, "<npc name>"}) +*npctalk("<message>"{, "<npc name>"{, <show_name>}}) + +show_npcname values: + true: shows npc name (default) + false: hide npc name This command will display a message to the surrounding area as if the NPC object running it was a player talking - that is, above their head and in -the chat window. The display name of the NPC will get appended in front of -the message to complete the effect. +the chat window. If show_npcname is true the name of the NPC will get appended in front of +the message, otherwise the npc name will not be shown. // This will make everyone in the area see the NPC greet the character // who just invoked it. |