summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRidley <ridley8819@gmail.com>2017-02-26 10:15:57 +0100
committerGitHub <noreply@github.com>2017-02-26 10:15:57 +0100
commitaf4fbc19e20a02e515af9fa2d4a249e30edb8d4f (patch)
tree256232ea03ae098d7ee5fe17f40bbe8cdc462ff0 /doc
parent113865cd441c1ebd04f8d0b9d7380cc852a08fb9 (diff)
parenteb5fc0076764d2f604e6a484fe144988f6e9da9b (diff)
downloadhercules-af4fbc19e20a02e515af9fa2d4a249e30edb8d4f.tar.gz
hercules-af4fbc19e20a02e515af9fa2d4a249e30edb8d4f.tar.bz2
hercules-af4fbc19e20a02e515af9fa2d4a249e30edb8d4f.tar.xz
hercules-af4fbc19e20a02e515af9fa2d4a249e30edb8d4f.zip
Merge pull request #1586 from mekolat/getd2
Allow getd to get vars if other players
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index ca7ebacca..77b361498 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -1371,10 +1371,11 @@ Examples:
---------------------------------------
-*getd("<variable name>")
+*getd("<variable name>"{, <GID>{, <default value>}})
Returns a reference to a variable, the name can be constructed dynamically.
-Refer to setd() for usage.
+If <GID> is present, it can be used to get a variable from another player or
+npc. If the target player or npc is not found, <default value> is returned.
This can also be used to set an array dynamically:
setarray(getd(".array[0]"), 1, 2, 3, 4, 5);