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
Brolthemighty
Senior Member
 
Join Date: Jan 2013
Posts: 267

Old September 4th, 2020, 12:44 AM
So I'm trying to figure out an Eval Script to increase # of dice at certain levels, like Superiority Dice. So I grabbed it's script...

~ Increase the number of dice at level 7 and again at 15
if (field[xAllLev].value >= 15) then
field[trkMax].value += 2
elseif (field[xAllLev].value >= 7) then
field[trkMax].value += 1
endif

But when I try to use it in my boon, it tells me:

Attempt to access field 'xAllLev' that does not exist for thing 'EP5CbnTidofWar'

I for the life of me, cannot figure out the field tag for total character level.
Brolthemighty is offline   #1 Reply With Quote
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 590

Old September 4th, 2020, 07:06 AM
I thought the total level variable were only used for certain contexts, I can't remember the rule of thumb though.

There is a useful macro: #totallevelcount[] that you can use where the context is not right though:

Here's the help example.

~ Check whether you're at least a 5th-level hero
@valid = 0
if (#totallevelcount[] >= 5) then
@valid = 1
endif

There's a companion macro that narrows it down to a single class, but you need to know the class ID:

~ Check whether you have at least 5 levels of the Fighter class
@valid = 0
if (#levelcount[Fighter] >= 5) then
@valid = 1
endif
dungeonguru is offline   #2 Reply With Quote
Brolthemighty
Senior Member
 
Join Date: Jan 2013
Posts: 267

Old September 4th, 2020, 02:43 PM
I had found that macro and tried to simply substitute that in for the AllLev wording, and that hadn’t worked. I assumed it was because I wasn’t using the macro right.

How does that target the TrkMax value?

Edit: NVM, I input that macro in place of the check for AllLev, and it worked perfectly. Thank you!

Last edited by Brolthemighty; September 4th, 2020 at 09:16 PM.
Brolthemighty is offline   #3 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 07:08 PM.


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