Re: Dual Class Spells

From: Daniel Koepke (dkoepke@california.com)
Date: 12/22/96


On Sun, 22 Dec 1996, Corey Hoitsma wrote:

> Hello all!
> 
> Umm, I've put in a dual class system where, if you are level 51, then
> you are dual level 1, in whatever dual class you are in, and I'm
> trying to figure out a way to test and see if the spell
> you are trying to cast is from your dual class or normal class.
> Any pointers? Thanks!

That really depends upon how you coded your dual class system, but if
you are saving the dual class (like 'byte dual_class;') then couldn't
you do something like:

  if (spell_info[spellnum].min_level[GET_DUAL_CLASS(ch)] <=
      GET_DUAL_LEVEL(ch) && 
      spell_info[spellnum].min_level[GET_CLASS(ch)] > GET_LEVEL(ch)) {
    .
    .
    .
  }

Essentially meaning if the spell has a min_level below their current
second level for their dual class (eg., they have learned the spell
from their dual class) and they don't have the spell in their first
class, yet.  Rough translation being that they have the spell from
their dual class, but not from their first class.


--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


+-----------------------------------------------------------+
| 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