From eb5fc0076764d2f604e6a484fe144988f6e9da9b Mon Sep 17 00:00:00 2001 From: gumi Date: Fri, 24 Feb 2017 13:04:34 -0500 Subject: allow to get vars of other players with getd --- doc/script_commands.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 1737f8796..a26482672 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -1371,10 +1371,11 @@ Examples: --------------------------------------- -*getd("") +*getd(""{, {, }}) Returns a reference to a variable, the name can be constructed dynamically. -Refer to setd() for usage. +If is present, it can be used to get a variable from another player or +npc. If the target player or npc is not found, is returned. This can also be used to set an array dynamically: setarray(getd(".array[0]"), 1, 2, 3, 4, 5); -- cgit v1.2.3-70-g09d2