From 28541315ec48d21204638203996c2049857fc3f8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 5 Dec 2018 23:08:06 +0300 Subject: Update docs from hercules. --- server/scripts/script_commands.txt | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'server/scripts/script_commands.txt') diff --git a/server/scripts/script_commands.txt b/server/scripts/script_commands.txt index 33d1ee4..90d4d77 100644 --- a/server/scripts/script_commands.txt +++ b/server/scripts/script_commands.txt @@ -2579,15 +2579,12 @@ playerattached() to check for the character attached to the script. --------------------------------------- -*getnpcid({, ""}) +*getnpcid({""}) Retrieves IDs of the currently invoked NPC. If a unique npc name is given, -IDs of that NPC are retrieved instead. Type specifies what ID to retrieve -and can be one of the following: +IDs of that NPC are retrieved instead. - 0 - Unit ID (GID) - -If an invalid type is given or the NPC does not exist, 0 is returned. +If the NPC does not exist, 0 is returned. --------------------------------------- @@ -8604,6 +8601,18 @@ Example: --------------------------------------- +*data_to_string() + +Returns a string representation of the given data, similar to the .toString() +method in JavaScript. + +Example: + + data_to_string(DATATYPE_VAR) // "DATATYPE_VAR" + data_to_string(.@foo) // ".@foo" + +--------------------------------------- + *charisalpha("", ) This function will return true if the character number Position in the given -- cgit v1.2.3-70-g09d2