From ec8aa5c770bcaaaa6f5066e68a2113a8b583066f Mon Sep 17 00:00:00 2001 From: Taylor Locke Date: Wed, 22 Oct 2014 03:07:37 +0200 Subject: 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 --- doc/script_commands.txt | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'doc/script_commands.txt') 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 {}; +*checkmount() + +If 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 {}; *checkriding() +[ DEPRECATED - Please use setmount / checkmount] + If 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 {}; *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 {}; *checkmadogear() +[ DEPRECATED - Please use setmount / checkmount] + If is 0 this command will remove the mount from the character. Otherwise it gives the invoking character a Mado (if they are a Mechanic). -- cgit v1.2.3-70-g09d2