summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTaylor Locke <kisuka@kisuka.com>2014-10-22 03:07:37 +0200
committerHaru <haru@dotalux.com>2014-10-24 00:59:21 +0200
commitec8aa5c770bcaaaa6f5066e68a2113a8b583066f (patch)
treeb3343c185b9018fc81756a7d1a1283b34c3ea61e /doc
parent3be853cff81fbdc590fc5538b60951f0179945f8 (diff)
downloadhercules-ec8aa5c770bcaaaa6f5066e68a2113a8b583066f.tar.gz
hercules-ec8aa5c770bcaaaa6f5066e68a2113a8b583066f.tar.bz2
hercules-ec8aa5c770bcaaaa6f5066e68a2113a8b583066f.tar.xz
hercules-ec8aa5c770bcaaaa6f5066e68a2113a8b583066f.zip
Re-commit of 4ac673941714032ada6d26fb60936ec510bbe496 (part 3)
Some Quality of Life Changes - setdragon, setmadogear and setriding deprecated; use setmount instead. - checkdragon, checkmadogear, checkriding deprecated; use checkmount instead. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt55
1 files changed, 55 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index c72910d12..651ce05e2 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -3819,9 +3819,60 @@ falcon and 0 if they don't.
---------------------------------------
+*setmount {<flag>};
+*checkmount()
+
+If <flag> is MOUNT_NONE (or 0) this command will remove the mount from the
+character.
+
+Otherwise it gives the invoking character the desired combat mount, where
+allowed by their class and skills.
+
+If no flag is specified, the mount is automatically chosen according to the
+character's class and skills.
+
+The following flag values are accepted:
+
+ MOUNT_NONE:
+ - Dismount
+ MOUNT_PECO:
+ - PecoPeco (Knight series class)
+ - GrandPeco (Crusader series class)
+ - Gryphon (Royal Guard)
+ MOUNT_WUG:
+ - Warg (Ranger)
+ MOUNT_MADO:
+ - Mado Gear (Mechanic)
+ MOUNT_DRAGON:
+ MOUNT_DRAGON_GREEN:
+ MOUNT_DRAGON_BROWN:
+ MOUNT_DRAGON_GRAY:
+ MOUNT_DRAGON_BLUE:
+ MOUNT_DRAGON_RED:
+ - Dragon (Rune Knight)
+ if MOUNT_DRAGON is specified, a the default (green) dragon will be used.
+
+Unlike 'setfalcon' and 'setcart' this will not work at all if they aren't of a
+class which can ride a mount.
+
+The accompanying function will return 0 if the invoking character is not on a
+mount, and a non-zero value (according to the above constants) if they are.
+Note: in case of dragons, the returned value will always be MOUNT_DRAGON,
+regardless of color.
+
+ if (checkmount())
+ mes "Leave your mount outside! No riding mounts on the floor here!";
+
+ if (checkmount() == MOUNT_DRAGON)
+ mes "Wow, your dragon is cool! Can I pet it?";
+
+---------------------------------------
+
*setriding {<flag>};
*checkriding()
+[ DEPRECATED - Please use setmount / checkmount]
+
If <flag> is 0 this command will remove the mount from the character.
Otherwise it gives the invoking character a PecoPeco (if they are a Knight
series class), a GrandPeco (if they are a Crusader series class), or
@@ -3839,6 +3890,8 @@ riding a bird and 0 if they aren't.
*setdragon {<color>};
*checkdragon()
+[ DEPRECATED - Please use setmount / checkmount]
+
The 'setdragon' function toggles mounting a dragon for the invoking
character. It will return 1 if successful, 0 otherwise.
@@ -3860,6 +3913,8 @@ riding a dragon and 0 if they aren't.
*setmadogear {<flag>};
*checkmadogear()
+[ DEPRECATED - Please use setmount / checkmount]
+
If <flag> is 0 this command will remove the mount from the character.
Otherwise it gives the invoking character a Mado (if they are a Mechanic).