summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-02-25 13:36:52 -0500
committergumi <mekolat@users.noreply.github.com>2017-02-25 19:33:19 -0500
commit138ce2e9f9e75e1590990fc08e90c777fb499073 (patch)
treee2e343c5b22a7142ec7995e156a0d2270dc073f3 /doc
parent9a7a165d4dbad598907d3ecd54196e8f76c4f3f5 (diff)
downloadhercules-138ce2e9f9e75e1590990fc08e90c777fb499073.tar.gz
hercules-138ce2e9f9e75e1590990fc08e90c777fb499073.tar.bz2
hercules-138ce2e9f9e75e1590990fc08e90c777fb499073.tar.xz
hercules-138ce2e9f9e75e1590990fc08e90c777fb499073.zip
allow strcharinfo() and strnpcinfo() to take a GID
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 1737f8796..fa86419a8 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -2341,7 +2341,7 @@ deleted.
//=====================================
---------------------------------------
-*strcharinfo(<type>)
+*strcharinfo(<type>{, <default value>{, <GID>}})
This function will return either the name, party name or guild name for
the invoking character. Whatever it returns is determined by type.
@@ -2349,6 +2349,10 @@ the invoking character. Whatever it returns is determined by type.
(1) PC_PARTY - The name of the party they're in if any.
(2) PC_GUILD - The name of the guild they're in if any.
(3) PC_MAP - The name of the map the character is in.
+
+If <GID> is passed, it will return the value of the specified player instead
+the attached player. If the player is not found, it will return
+<default value>, if any, or else return an empty string.
If a character is not a member of any party or guild, an empty string will
be returned when requesting that information.
@@ -2358,7 +2362,7 @@ using only numbers reduces script readability
---------------------------------------
-*strnpcinfo(<type>)
+*strnpcinfo(<type>{, <default value>{, <GID>}})
This function will return the various parts of the name of the calling NPC.
Whatever it returns is determined by type.
@@ -2369,6 +2373,10 @@ Whatever it returns is determined by type.
(3) NPC_NAME_UNIQUE - The NPC's unique name (::name)
(4) NPC_MAP - The name of the map the NPC is in.
+If <GID> is passed, it will return the value of the specified NPC instead of
+the attached NPC. If the NPC is not found, it will return <default value>,
+if any, or else return an empty string.
+
---------------------------------------
*charid2rid(<char id>)