Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
eldamir
Member
 
Join Date: Aug 2014
Posts: 30

Old September 21st, 2016, 03:37 AM
The issue that I'm having is that it's triggering off of warlock levels, not rogue levels.




Here are the 2 Eval Scripts as I have them now:
Code:
(Phase : Post-levels / Priority : 10000 / Index 2)
     perform linkage[table].setfocus

        doneif (state.isfocus = 0)

      var numslots as number

      if (field[cTotalLev].value >= 13) then
        numslots += 3
      elseif (field[cTotalLev].value >= 2) then
        numslots += 2
      else
        numslots += 1
        endif

      ~ Add the slots to the highest spell level allowed at the current level.
      perform hero.child[SlotHoldWa].setfocus
      focus.field[MaxAllow].value += numslots
      if (field[cMaxKnLev].value = 18) then
        perform focus.assign[sLevel.4]
      elseif (field[cMaxKnLev].value = 12) then
        perform focus.assign[sLevel.3]
      elseif (field[cMaxKnLev].value = 6) then
        perform focus.assign[sLevel.2]
      elseif (field[cMaxKnLev].value = 2) then
        perform focus.assign[sLevel.1]
        endif
and
Code:
(First / 1000 / 1)
      perform linkage[table].setfocus

        doneif (state.isfocus = 0)

        ~ Spellcasting attribute
        perform focus.setlinkage[castattr,BaseAttr,"IsAttr.aCHA"]

        ~ Spellcasting type
        perform focus.assign[CasterType.SpontKnow]
        perform focus.assign[CasterSrc.Arcane]
~        perform focus.assign[Helper.3rdCaster]
        perform focus.assign[Helper.WarlocCast]
        perform focus.assign[sClass.cHelpSor]

        ~ Cantrip Array
        focus.field[cArrKnCan].arrayvalue[2] += 2
        focus.field[cArrKnCan].arrayvalue[9] += 3

~ Spells Known Array
        focus.field[cArrKnSpl].arrayvalue[2] += 3
        focus.field[cArrKnSpl].arrayvalue[3] += 4
        focus.field[cArrKnSpl].arrayvalue[6] += 5
        focus.field[cArrKnSpl].arrayvalue[7] += 6
        focus.field[cArrKnSpl].arrayvalue[9] += 7
        focus.field[cArrKnSpl].arrayvalue[10] += 8
        focus.field[cArrKnSpl].arrayvalue[12] += 9
        focus.field[cArrKnSpl].arrayvalue[13] += 10
        focus.field[cArrKnSpl].arrayvalue[15] += 11
        focus.field[cArrKnSpl].arrayvalue[18] += 12
        focus.field[cArrKnSpl].arrayvalue[19] += 13

        ~ Max Spell Levels Array
        focus.field[cArrKnLev].arrayvalue[2] = 1
        focus.field[cArrKnLev].arrayvalue[6] = 2
        focus.field[cArrKnLev].arrayvalue[12] = 3
        focus.field[cArrKnLev].arrayvalue[18] = 4
The two lines bolded above are where I'm pretty sure the issue lies, but I've been unable to find a way to make it progress off of rogue levels.

Adding Warlock Levels makes makes the spell slots progress, as expected:
eldamir is offline   #11 Reply With Quote
 


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 07:20 PM.


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