• 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

Non-Spellcaster needs caster levels

Frodie

Well-known member
Ok, trying to make a class special ability (for a non-spellcaster) count his hit dice as caster levels.

herofield[tHitDice].value = field[tMaxCaster].value

Basically, I am trying to give access to the craft magic item feats.
 
yea this is the Master Crafter script. I need to pick through it and see how to replace skill ranks for hit dice.



~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)

~ set our focus to the selected pick
call fTargetFoc
doneif (state.isfocus = 0)

~ Add 2 to our chosen skill
focus.field[Bonus].value += 2

~ set the hero's master craftsman total to the ranks in our chosen skill
~ item creation feats can look for this value to figure out whether they're valid
herofield[tMastCraft].value += focus.field[skUser].value + focus.field[skInnate].value + focus.field[skExtRanks].value

~ Assign a tag so we know we've taken master craftsman
perform focus.assign[Broadcast.MastCraft]
 
Yikes so their are 2 different methods that HL uses to figure out caster level on the Craft Feats. tMaxCaster and it counts tags. So the below script does set all both for you.

Post-Levels/5000
Code:
~if we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)

~ Now set the Max Caster Level
herofield[tMaxCaster].value += herofield[tHitDice].value
~ Now set Caster Tags.
var iX as number
~Add number of tags here
for iX = 1 to herofield[tHitDice].value
  perform hero.assign[Hero.Caster]
next
 
No problem. Yea it took me a bit to work out also. Had to take apart each craft feat as they each do stuff a little different. Then had to figure out that anything going into tMaxCaster also goes into tMastCraft. Once I saw it doing that I was finally able to make the script work for all craft feats.

I do think "Craft Construct" should look at "tMaxCaster" also instead of counting tags....
 
Back
Top