From d075f25617f1306ad2aef2b1e87567f6c683aa7f Mon Sep 17 00:00:00 2001 From: Fate Date: Sat, 10 Jan 2009 04:52:20 -0700 Subject: Fixed broken function usage and menus --- npc/functions/magic.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'npc/functions/magic.txt') diff --git a/npc/functions/magic.txt b/npc/functions/magic.txt index 470323c2..0094e94a 100644 --- a/npc/functions/magic.txt +++ b/npc/functions/magic.txt @@ -20,7 +20,7 @@ function script MagicGainBasic { // ------------------------------------------------------------ // Initialise Menu for selecting a choice of things to ask about // ------------------------------------------------------------ -function script MagicTalkOptionsSetup { +function script MagicTalkOptionsSetup { set @QQ_ELANORE, 1; set @QQ_MANASEED, 2; set @QQ_MANAPOTION, 3; @@ -29,15 +29,17 @@ function script MagicTalkOptionsSetup { set @QQ_AULDSBEL, 6; set @QQ_IMP, 7; set @QQ_OLDWIZ, 8; + return; } // ------------------------------------------------------------ // Print and run menu for choice of things to ask about // Ignores the entry in @ignore -// Returns the result in `@c, or `0' +// Returns the result in @c, or returns 0 if there is no result // ------------------------------------------------------------ -function script MagicTalkMenu { + +function script MagicTalkMenu { setarray @choice$, "", "", "", "", "", "", "", "", ""; set @choices_nr, 0; setarray @choice_idx, 0, 0, 0, 0, 0, 0, 0, 0, 0; @@ -132,4 +134,5 @@ L_Q_post_imp: set @menu, 0; set @c, @choice_idx[@menu]; + return @c; } -- cgit v1.2.3-60-g2f50