summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-12-16 19:27:15 +0100
committerGitHub <noreply@github.com>2018-12-16 19:27:15 +0100
commit52360f0cee7916f58da6eda0399f74199f957c44 (patch)
treefac36b1c82dcde7128326b4d82a13f3fd5d13bd6 /doc
parent176d6d61d1946018398c598a842185745fb0312e (diff)
parentd7bbebdf8526667b288223c8adc2d110204814c5 (diff)
downloadhercules-52360f0cee7916f58da6eda0399f74199f957c44.tar.gz
hercules-52360f0cee7916f58da6eda0399f74199f957c44.tar.bz2
hercules-52360f0cee7916f58da6eda0399f74199f957c44.tar.xz
hercules-52360f0cee7916f58da6eda0399f74199f957c44.zip
Merge pull request #2246 from Emistry/scriptcommand_pcneedstatuspoint
Implement status reduction script command.
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 5171d65f3..57d47b1b5 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -6048,6 +6048,22 @@ Amount can be negative. See statusup().
---------------------------------------
+*needed_status_point(<type>, <val>, {<char_id>});
+
+Returns the number of stat points needed to change the specified stat <type> by <val>.
+If <val> is negative, returns the number of stat points that would be needed to
+raise the specified stat from (current value - <val>) to current value.
+
+List of <type>:
+bStr - Strength
+bVit - Vitality
+bInt - Intelligence
+bAgi - Agility
+bDex - Dexterity
+bLuk - Luck
+
+---------------------------------------
+
*bonus(<bonus type>, <val1>)
*bonus2(<bonus type>, <val1>, <val2>)
*bonus3(<bonus type>, <val1>, <val2>, <val3>)