• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Making class feats qualify as prereqs for other classes

I'm trying to make the Magister template's 'Spell Focus' supernatural ability allow you to qualify for the Master Specialist class which requires you to have spell focus in your specialized magic school but I'm not sure how exactly to code it.

What I believe needs to be done is in the Master Specialist Class Level pre-reqs a simple if/then statement needs to be added like:

Code:
   if (*******) then
      @valid=1
   endif

with ******* replaced by a check to see if the char has the xMagSpeFoc SU ability. I'm just not sure how write it to have it check if a char has that ability.

(Sorry I'm still very new to editing things in Hero Lab.)
 
Wait, the Magister's Spell Focus ability tells the system to give you Spell Focus in all schools of magic. It should already work.

I see now. The Master Specialist isn't checking if the school has focus (which would be more efficient), it's checking to see if you actually have the feat and that the feat is selecting a school. The only way around this, other than actually having the feat, is to re-code the pre-req for Master Specialist.
 
Last edited:
This should be pretty doable. I will take a look at it in the morning. It's possible the Master Specialist's pre-req should be re-coded anyway.
 
I've noticed similar issues with initiate of the sevenfold veil's requirement for greater spell focus when I get it from Master Specialist's class ability and with archmages req for 2 spell focus feats in regard to the magister class ability listed above.
 
So the Master Specialist pre-req is overly complicated. It can be completely replaced by the following:

Code:
if (hero.tagis[WizSpec.Abjur] <> 0) then
  validif (hero.child[ssAbjur].tagis[Broadcast.SpellFocus] <> 0)
elseif (hero.tagis[WizSpec.Conjur] <> 0) then
  validif (hero.child[ssConjur].tagis[Broadcast.SpellFocus] <> 0)
elseif (hero.tagis[WizSpec.Divination] <> 0) then
  validif (hero.child[ssDivin].tagis[Broadcast.SpellFocus] <> 0)
elseif (hero.tagis[WizSpec.Enchant] <> 0) then
  validif (hero.child[ssEnchant].tagis[Broadcast.SpellFocus] <> 0)
elseif (hero.tagis[WizSpec.Evocation] <> 0) then
  validif (hero.child[ssEvoc].tagis[Broadcast.SpellFocus] <> 0)
elseif (hero.tagis[WizSpec.Illusion] <> 0) then
  validif (hero.child[ssIllusion].tagis[Broadcast.SpellFocus] <> 0)
elseif (hero.tagis[WizSpec.Necromancy] <> 0) then
  validif (hero.child[ssNecro].tagis[Broadcast.SpellFocus] <> 0)
elseif (hero.tagis[WizSpec.Transmutat] <> 0) then
  validif (hero.child[ssTrans].tagis[Broadcast.SpellFocus] <> 0)
endif
 
Sevenfolds Initiate has incorrect requirements. To fix this, remove the pick-req and add a new pre-req with the following script:

Code:
child[ssAbjur].tagis[Broadcast.SpellGrFoc] <> 0
 
Back
Top