Junior Member
Join Date: Nov 2016
Posts: 6
|
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 (Sorry I'm still very new to editing things in Hero Lab.) |
#1 |
Senior Member
Join Date: Feb 2013
Posts: 357
|
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 by Illyahr; November 17th, 2016 at 01:47 PM. |
#2 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
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.
|
#3 |
Junior Member
Join Date: Nov 2016
Posts: 6
|
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.
|
#4 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
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 |
#5 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
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 |
#6 |
|
|