From 138ce2e9f9e75e1590990fc08e90c777fb499073 Mon Sep 17 00:00:00 2001 From: gumi Date: Sat, 25 Feb 2017 13:36:52 -0500 Subject: allow strcharinfo() and strnpcinfo() to take a GID --- doc/script_commands.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'doc') 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() +*strcharinfo({, {, }}) 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 is passed, it will return the value of the specified player instead +the attached player. If the player is not found, it will return +, 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() +*strnpcinfo({, {, }}) 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 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 , +if any, or else return an empty string. + --------------------------------------- *charid2rid() -- cgit v1.2.3-70-g09d2