On Mon, 23 Sep 1996, Mikael Askernäs wrote: > -How do I make a check on the player to see if he knows a certain spell > before he is allowed to prac a certain other one... > > (He cant practise the BIG fireball until he learned the SMALL > fireball) > > -Also .. How do I set the maximum % of the "BIG fireball" to not exceed > the maximum % of the "SMALL fireball" You can make both checks at once, since obviously preventing BIG_FIREBALL from exceding SMALL_FIREBALL will keep them both at 0% until SMALL has been learned to some degree. How about this... if (GET_SKILL(ch, SKILL_BIG_FIRE) >= GET_SKILL(ch, SKILL_SMALL_FIRE)) { sprintf(buf, "You do not have the background to learn %s now.\r\n", spells[SKILL_BIG_FIRE]); send_to_char(buf, ch); return; } In the guildmaster process. -Sky +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST