Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
odinlowejr88
Junior Member
 
Join Date: Nov 2016
Posts: 6

Old November 17th, 2016, 12:46 PM
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.)
odinlowejr88 is offline   #1 Reply With Quote
Illyahr
Senior Member
 
Join Date: Feb 2013
Posts: 357

Old November 17th, 2016, 01:37 PM
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.
Illyahr is offline   #2 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old November 17th, 2016, 04:02 PM
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.
Sendric is offline   #3 Reply With Quote
odinlowejr88
Junior Member
 
Join Date: Nov 2016
Posts: 6

Old November 17th, 2016, 05:11 PM
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.
odinlowejr88 is offline   #4 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old November 18th, 2016, 04:58 AM
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
Sendric is offline   #5 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old November 18th, 2016, 05:12 AM
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
Sendric is offline   #6 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:10 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.