summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-01 21:38:00 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-09 22:15:43 +0200
commit66f9a2a1bc2fd509d13729ad6bc586a3b7ad2347 (patch)
treefbecb74b2af32ee2098e98e7fa1944ca31c4a536 /doc
parent08922748cfc4cd30cbe5d2e6bdee9f2f7c4c7c39 (diff)
downloadhercules-66f9a2a1bc2fd509d13729ad6bc586a3b7ad2347.tar.gz
hercules-66f9a2a1bc2fd509d13729ad6bc586a3b7ad2347.tar.bz2
hercules-66f9a2a1bc2fd509d13729ad6bc586a3b7ad2347.tar.xz
hercules-66f9a2a1bc2fd509d13729ad6bc586a3b7ad2347.zip
Update doc/script_commands.txt
* Add note about maximum length of a string variable's value * Add note about maximum length of a string read by input() script command
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 3b77aeb2c..3c0b37a85 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -536,7 +536,9 @@ variables or an empty string ("", nothing between the quotes) for string
variables. Once you set it to that, the variable is as good as forgotten
forever, and no trace remains of it even if it was stored with character
or account data. The maximum length of variable name including prefix and
-suffix is 32.
+suffix is 32. Permanent string variables (name$, $name$, #name$, ##name$)
+can store text with a maximum length of 255 characters. All other string
+type variables have no such limitation.
Some variables are special, that is, they are already defined for you by
the scripting engine. You can see the full list somewhere in
@@ -1710,7 +1712,8 @@ The default value of 'min' and 'max' can be set with 'input_min_value' and
For numeric inputs the value is capped to the range [min, max]. Returns 1
if the value was higher than 'max', -1 if lower than 'min' and 0 otherwise.
For string inputs it returns 1 if the string was longer than 'max', -1 is
-shorter than 'min' and 0 otherwise.
+shorter than 'min' and 0 otherwise. Note that an input string has a maximum
+length of 70 characters.
---------------------------------------