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

Old April 24th, 2019, 10:43 AM
As part of the Artificer (2019) class, I am trying to set the number of spells known at 1st level to the character's Intelligence modifier.

This is the script I am trying to use:

Quote:
Phase: Post-attributes
Priority: 10000

doneif (tagis[Helper.Disable] <> 0)

~ Spells Known Array
var iIntMod as number
iIntMod = hero.child[aINT].field[aModBonus].value
hero.child[cHelpArR].field[cArrKnSpl].arrayvalue[0] = iIntMod
I think my issue is with timing. Anyone know what timing I should be using with this script?

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #1 Reply With Quote
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 591

Old April 25th, 2019, 08:15 AM
I know in the timing report there's a task in post-levels at 10000 that calculates the "Field cMaxKnSpl: Calculate (Max Spells Known This Level)".

I would try before that step and see what happens.
dungeonguru is offline   #2 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old April 25th, 2019, 09:32 AM
Any idea where I can find an example? I know I need to go Post-atrtribute (I thing) to get the final INT modifier.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #3 Reply With Quote
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 591

Old April 28th, 2019, 09:03 AM
The only thing I could think of was the logic baked into things like the Cleric memorization limits (allow level + Wis mod)- code we can't see directly.

I think you'll have to ping Shadow.

For some reason I thought there was an example where script #1 ran post-attribute and put the attribute modifier into a field like abValue2.

Then script #2 ran post-level, but before the official one and grabbed the modifier from abValue2.

But I may be mis-remembering something else, I have not had time to play with it.
dungeonguru is offline   #4 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 09:21 PM.


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