summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorEmistry Haoyan <equinox1991@gmail.com>2018-10-02 22:41:53 +0800
committerEmistry Haoyan <equinox1991@gmail.com>2018-10-05 01:33:05 +0800
commitd7bbebdf8526667b288223c8adc2d110204814c5 (patch)
tree0a044119b50b06b3199aadc53e935bcc784cd1ff /doc/script_commands.txt
parent852c13305f67948531bd0277eb1922dbd02b1f26 (diff)
downloadhercules-d7bbebdf8526667b288223c8adc2d110204814c5.tar.gz
hercules-d7bbebdf8526667b288223c8adc2d110204814c5.tar.bz2
hercules-d7bbebdf8526667b288223c8adc2d110204814c5.tar.xz
hercules-d7bbebdf8526667b288223c8adc2d110204814c5.zip
Implement status reduction script command.
- for stat reduction support. - return the amount of status point required to increase a status.
Diffstat (limited to 'doc/script_commands.txt')
-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 343eb02cb..953cc86f3 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -6034,6 +6034,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>)