Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD

Notices

Reply
 
Thread Tools Display Modes
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
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old September 21st, 2016, 10:03 AM
Try using this:

Phase: Post-Levels, Priority: 10000

Quote:
perform linkage[table].setfocus

doneif (state.isfocus = 0)

var numslots as number
var iLevel as number

iLevel = hero.child[cHelpRog].field[cTotalLev].value

if (iLevel >= 13) then
numslots = 3
elseif (iLevel >= 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 (iLevel >= 19) then
perform focus.assign[sLevel.4]
elseif (iLevel >= 13) then
perform focus.assign[sLevel.3]
elseif (iLevel >= 7) then
perform focus.assign[sLevel.2]
else
perform focus.assign[sLevel.1]
endif
According to the Spellthief pdf, the archtype only ever gets up to 3 spell slots.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!

Last edited by Mergon; September 21st, 2016 at 10:08 AM.
Mergon is offline   #12 Reply With Quote
eldamir
Member
 
Join Date: Aug 2014
Posts: 30

Old September 21st, 2016, 12:16 PM
Getting there.

It's triggering on Rogue levels, but still not separate from warlock levels..
eldamir is offline   #13 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old September 21st, 2016, 12:21 PM
You don't have any warlock levels . . .

Spellthief levels are your rogue levels only.

I'm not sure how you are getting a level 40 character.

A warlock, at 20th level. gets 4 spell slots.
A spellthief rogue , at level 20, gets 3 spell slots.

Total spell slots, for a level 20 rogue + level 20 warlock = 7 spell slots.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #14 Reply With Quote
eldamir
Member
 
Join Date: Aug 2014
Posts: 30

Old September 21st, 2016, 03:18 PM
Yeah, I understand the division there - i added the 20 warlock levels to show that it progresses the warlock slots on both warlock and rogue levels.

The two sets of slots should remain separate, so ideally, this hypothetical 40th level character would have 4 warlock slots (at 5th lvl) and 3 rogue slots (at 4th level).
eldamir is offline   #15 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old September 21st, 2016, 03:32 PM
Actually not. It's like multi-classing in wizard & sorcerer. Your spell slots are based on the sum total of both classes levels.

That part is actually working according to 5e rules. You just never see it since there is no other warlock-based classes until now.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #16 Reply With Quote
eldamir
Member
 
Join Date: Aug 2014
Posts: 30

Old September 21st, 2016, 04:04 PM
Actually, I think they should be separate spell slot pools.

P164 of the PHB seems clear that the slots from "Spellcasting" and "Pact Magic" are distinct.
For a 14 Spell Thief / 6 Warlock (what my character is headed towards), he should have 2 3rd level slots for Pact Magic and 3 separate 3rd level slots for Spell Thief.

If a character were to go 14 Spell Thief Rogue / 4 warlock / 2 ranger, he should have
2 2nd level slots for Pact Magic
2 1st level slots for ranger (i.e. 'normal' spellcasting)
and
3 3rd level slots for Spell Thief


I just don't know, at this point, if the objects are even exposed to be able to replicate a pact magic slot pool as a different pick based on a different class.

p.s. I asked my DM and this was his interpretation as well, so going with your interpretation for simplicity is out as well
eldamir is offline   #17 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old September 21st, 2016, 04:08 PM
Nope! Both use warlock spell slots. The descriptions of both the warlock and the spellthief spell slots are identical.

If the spell thief was using the sorcerer's spell slot system, you'd have a lot more spell slots and they'd be tied to spell levels.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #18 Reply With Quote
Reply

Thread Tools
Display Modes

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 08:56 PM.


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