Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
GLBIV
Member
 
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76

Old September 15th, 2012, 07:01 AM
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
GLBIV is offline   #1 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old September 15th, 2012, 04:55 PM
You need to use an eval script to adjust the CR:

Code:
herofield[tCR].value += 2
Sendric is offline   #2 Reply With Quote
GLBIV
Member
 
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76

Old September 16th, 2012, 08:00 AM
Brilliant, thanks.
GLBIV is offline   #3 Reply With Quote
GLBIV
Member
 
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76

Old September 19th, 2012, 06:14 AM
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.
GLBIV is offline   #4 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old September 19th, 2012, 06:20 AM
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
Sendric is offline   #5 Reply With Quote
GLBIV
Member
 
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76

Old September 19th, 2012, 06:21 AM
Looks pretty straight forward to me, I'll give it a shot.
GLBIV is offline   #6 Reply With Quote
GLBIV
Member
 
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76

Old October 14th, 2012, 08:17 AM
Code:
if (herofield[tHitDice].value > 7) then
 herofield[tCR].value += 2
elseif (herofield[tHitDice].value > 4) then
 herofield[tCR].value += 1
endif
This works when I make a copy of the fiendish template and add this to the bottom of the first eval script, but I'd really rather just apply it to the main data file so I don't have a bunch of erroneous templates flying around. that doesn't seem to be working though.

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?
GLBIV is offline   #7 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old October 14th, 2012, 09:16 AM
The source folder is a reference library, not the actual data that's used by Hero Lab.
Mathias is offline   #8 Reply With Quote
GLBIV
Member
 
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76

Old October 14th, 2012, 08:59 PM
I see, so where is the data HL uses?
GLBIV is offline   #9 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old October 15th, 2012, 05:23 AM
Quote:
Originally Posted by GLBIV View Post
I see, so where is the data HL uses?
The data files used by HL are invisible to us. The only thing you can do is copy a thing in the editor. If you want to replace the original, then you have to use replacethingid or whatever its called.
Sendric is offline   #10 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:22 PM.


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