summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2018-10-02 12:13:21 +0100
committerHaru <haru@dotalux.com>2018-10-22 00:30:24 +0200
commitdb3e3bc2df1467565b4e8efbe69cdbde7510cfd7 (patch)
tree632a02e0e24d4873f1ad4fd4ca89783c1eeed773 /doc/script_commands.txt
parentb196e2b794bb96c1584c885f50e63326678ae89e (diff)
downloadhercules-db3e3bc2df1467565b4e8efbe69cdbde7510cfd7.tar.gz
hercules-db3e3bc2df1467565b4e8efbe69cdbde7510cfd7.tar.bz2
hercules-db3e3bc2df1467565b4e8efbe69cdbde7510cfd7.tar.xz
hercules-db3e3bc2df1467565b4e8efbe69cdbde7510cfd7.zip
Add missing documentation for script command achievement_progress()
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 64468ed49..42235ce33 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -10199,3 +10199,17 @@ camera.
Works for 20160525 clients or newer.
---------------------------------------
+
+*achievement_progress(<ach_id>, <obj_idx>, <progress>, <incremental>{, <account_id>});
+
+Make the player progress in the specified achievement.
+aid - achievement ID
+obj_idx - achievement objective index.
+progress - objective progress towards goal.
+incremental - (boolean) true to add the progress towards the goal,
+ false to use the progress only as a comparand.
+account_id - (optional) AID to perform on (default to attached player).
+
+returns progress on success and false on failure
+
+---------------------------------------