Re: CODE: Skill/Spell Choosing: Tree Structure

From: Edward Felch (dustlos@hotmail.com)
Date: 06/17/01


Actually, you really do need it to be just check_level, otherwise learn
would list spells/skills you already know, therefore don't need to learn.

>  if (!check_level(ch, i))
>    continue;

After some more tweaking of when spells are initialized it works fine, I
just need a break hehe.

If it seems like anyone is interested in this special skill/spell handling
that lets ya pick what you want as you advance in levels, email me
personally.

Small example of how this works now:
>learn
You could learn the following:
cure light
That is a total of 1 unlearned abilities.

[1000/1000 1000/1000 1000/1000][]
>learn cure blind
You don't know cure light which is needed for cure blind!

[1000/1000 1000/1000 1000/1000][]
>learn cure light
You have been taught cure light.

[1000/1000 1000/1000 1000/1000][]
>learn
You could learn the following:
cure blind
remove curse
That is a total of 2 unlearned abilities.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST