summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-09 21:09:53 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-09 21:09:53 +0000
commitef6249a84ac41ff029ee37dde1e8c9427515198f (patch)
tree2953e78f0340be0f592eab832290972ee2463a0f /doc
parentf405f3e4f972e26cf09f25363d6499b2f265ef8c (diff)
downloadhercules-ef6249a84ac41ff029ee37dde1e8c9427515198f.tar.gz
hercules-ef6249a84ac41ff029ee37dde1e8c9427515198f.tar.bz2
hercules-ef6249a84ac41ff029ee37dde1e8c9427515198f.tar.xz
hercules-ef6249a84ac41ff029ee37dde1e8c9427515198f.zip
- Updated setoption script command to receive a second (optional) argument flag. If the flag is 1, the option is added to what the player currently has; likewise using flag 2 removes only that option. No flag (or any other value) is the older behaviour of removing all other options and setting specificly what is passed.
- Updated script_commands information for setoption due to this change. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6538 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 7c0822bb8..9c87d2530 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -2654,7 +2654,7 @@ Note: Break won't work anymore, it has been commented out in src/map/script.c:
*checkoption(<option number>)
*checkoption1(<option number>)
*checkoption2(<option number>)
-*setoption <option number>;
+*setoption <option number>{,type};
The 'setoption' series of functions check for a so-called option that is set on
the invoking character. 'Options' are used to store status conditions and a lot
@@ -2669,19 +2669,15 @@ Option numbers valid for the first version of this command are:
2 - Frozen.
3 - Stunned.
4 - Sleeping.
-32 - Riding a Peco.
-
-'setoption' will set options on the invoking character. There are no second and
-third versions of this command, so you can only change the
-petrified/frozen/stunned/sleeping/riding status in this manner.
+6 - Petrifying (the state where you can still walk)
Option numbers valid for the second version of this command are:
1 - Poisoned.
2 - Cursed.
4 - Silenced.
-8 - Blinded (Notice that unless you specfy variable night darkness in the
- configuration, all characters will be 'blinded' during the night)
+8 - Signum Crucis (plays a howl-like sound effect, but otherwise no visible effects are displayed)
+16 - Blinded.
Option numbers valid for the third version of this command are:
@@ -2697,10 +2693,14 @@ Option numbers valid for the third version of this command are:
2048 - Orc head present.
4096 - The character is wearing a wedding sprite.
8192 - Ruwach is in effect.
+16384 - Chasewalk in effect.
Option numbers are bitmasks - add up option numbers to check for all of them
being present at the same time in one go.
+'setoption' will set options on the invoking character. There are no second and
+third versions of this command, so you can only change the values in the last list (cloak, cart, ruwach, etc). if flag is 1, the option will be added to what the character currently has; if 2, the option is removed; otherwise (or if omitted) the option is set to what is passed (that is, all other set option values are removed).
+
This is definitely not a complete list of available option flag numbers. Ask a
core developer for the full list.