Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
Hey guys,
I noticed there's a level adjustment field for templates, but I haven't been able to find a place for challenge rating adjustment. When I make a vampire, for instance, the level adjustment reads correctly as +8 in the output, but the challenge rating of the creature is still equal to the creature's level. How do I let hero lab know to increase the CR by two? Thanks, -GLBIV |
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
You need to use an eval script to adjust the CR:
Code:
herofield[tCR].value += 2 |
#2 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
Brilliant, thanks.
|
#3 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
Here's a trickier one.
What would be the code for something like fiendish, where there's no adjustment for creatures with fewer than 3 HD, a +1 for 4 to 7 HD and a +2 for 8 or more HD? I'd look at the fiendish template, but I don't think HL calcs it. |
#4 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Personally, I would use a string of if statements. So, something like:
Code:
if (herofield[tHitDice].value > 7) then herofield[tCR].value += 2 elseif (herofield[tHitDice].value > 4) then herofield[tCR].value += 1 endif |
#5 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
Looks pretty straight forward to me, I'll give it a shot.
|
#6 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
Code:
if (herofield[tHitDice].value > 7) then herofield[tCR].value += 2 elseif (herofield[tHitDice].value > 4) then herofield[tCR].value += 1 endif I made a copy of srd_templates.dat, added the eval script then replaced the main .dat file in the source folder. For some reason, it's not applying the CR adjustment. Any ideas, is there some different file I'm supposed to be editing? |
#7 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
The source folder is a reference library, not the actual data that's used by Hero Lab.
|
#8 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
I see, so where is the data HL uses?
|
#9 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
|
#10 |
|
|