• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Ascetic Hunter

Lawful_g

Well-known member
I'm trying to add the Ascetic Hunter feat from Complete Adventurer, which allows you to add your ranger levels to the monk's hieghtened unarmed strike damage. I found the example in the help files, but there was one line I didn't understand.

levels = root.field[cTotalLev].value

So I modified it like this

Phase: Levels Priority: 999999
~ Make sure this is done as one of the last things in the "Level" phase, before the "PostLevel" scripts run - we need to set the "xExtraLev" field before then.

~ Get our total number of levels from the Ranger class and add it to our monk levels for Unarmed Strike damage
var levels as number
levels = #levelcount[Ranger]
hero.child[cMnkUnarm].field[xExtraLev].value += levels

But upon testing, it is not working, even after adding 7 levels or ranger, unarmed strike damage remains d6. Any help/explainations?
 
I am also having trouble checking for smite evil as a prereq for a related feat. Here is what I am trying, since I can't seem to do @valid = tagis[Hero.Smite]

var total as number
total = hero.childfound[cPalSmite1].field[hTotal].value
if (total >= 1)
then @valid = 1
endif

It gives me an "invalid use of reserved word in script" error message
 
Nevermind the Smite evil prereq. I got it working with

if (picklives[cPalSmite1] <> 0) then
@valid = 1
endif
 
Lawful_g said:
I'm trying to add the Ascetic Hunter feat...

I don't know, but the code you have here seems to work for me... I have 4 levels of Monk, plus 6 levels of Ranger, and my damage is listed as 1d10. Without the feat, it's listed as 1d8.

All I did was copy/paste from your post, set for "Levels" and 999999.
 
Huh, yeah, it is working for me as well now. Maybe it was one of those that the Test Now button wasn't sufficient for, and I had to close the program and restart it for the effects to take. I've noticed a few things like that.

Anyway, there is one more part of the feat that I forgot until now. It allows the character to freely multiclass between Monk and Ranger, how would I code to allow this? Currently after taking my first level of ranger, monk becomes greyed out.
 
A related feat (Devoted Performer, the Paladin/bard crossover feat), allows Bards to be lawful, is there an eval script to make the validation error for alignment go away?
 
How are animal companions/special mounts/familiars being handled currently? Another hybrid feat, Devoted Tracker, allows a paladin's special mount to also be his animal companion, and receive the benefits of both. Any way to handle this at the moment?
 
Noticed an error in the Help files. In the section about making a class ability X levels higher, the ID for Bardic Music is listed as "cBrdMusic" but it is actually "hBrdMusic" in my copy of Hero Lab.
 
For your monk question, I looked at the tags for the monk class helper (cHelpMnk, specifically). It has the tag Helper.NoMultiAdv, and after another class is added, it also has the tag Helper.NoMoreCls. I'd say deleting one or both of those should remove the restriction, although you'll have to work a bit on the timing.

For your bard question, the cBard class item has the tag AlgnForbid.Lawful, you may be able to delete that.
 
How do you find those tags, if I may ask, and can you tell somehow when they are being added? I'm not that familiar with the manipulation of tags, but I'm giving it a shot here. The script I am using is:

if (tagis[Helper.NoMultiAdv] = 1) then
perform delete[Helper.NoMultiAdv]
endif
if (tagis[Helper.NoMoreCls] = 1) then
perform delete[Helper.NoMoreCls]
endif

For the bard I am doing:

if (tagis[AlgnForbid.Lawful] = 1) then
perform delete[AlgnForbid.Lawful]
endif

HL doesn't give me any errors from the scripts, but I have been trying to run it at various points in each phase, and having absolutely no luck. Any suggestions?
 
Add a version of the item, then right-click on it - the menu will offer you the option of looking at the debug tags or debug fields of the item. You can also get them from the debug menu, floating info windows, "show selection tags" or "Show selection fields". Hero tags/fields, at the top of the floating info windows, are the other common reports I use while coding.

Where are you running those scripts from? If they're in a feat, you're checking whether the feat has those tags.

hero.childfound[cHelpMnk].tagis[NoMultiAdv] moves you from wherever you started, to the hero context, then to the cHelpMnk context (using childfound[] instead of child[], so there are no errors if the feat is added without any monk levels). Once it's in the right context, then check if the tag is there. You'll need to change contexts within the deletion, too.
 
Lawful_g wrote:
>
>
> A related feat (Devoted Performer, the Paladin/bard crossover feat),
> allows Bards to be lawful, is there an eval script to make the
> validation error for alignment go away?


Assign the tag 'thing.skipprereq' to the bard class levels like so:


foreach pick in hero where "thingid.cBard"
perform eachpick.assign[thing.skipprereq]
nexteach


This will stop the validation error from appearing, although the Bard
class will still be greyed out in the class list.



--
Colen McAlister, colen@wolflair.com
 
Lawful_g wrote:
>
>
> How are animal companions/special mounts/familiars being handled
> currently? Another hybrid feat, Devoted Tracker, allows a paladin's
> special mount to also be his animal companion, and receive the benefits
> of both. Any way to handle this at the moment?


Yikes! I never even considered that - unfortunately I don't think
there's a way to handle that in Hero Lab. Sorry :(



--
Colen McAlister, colen@wolflair.com
 
krathen wrote:
>
>
> DnD: creating more broken rules to make colen work harder every day


I just saw this post and had to acknowledge it - it's been the story of
my life for the last 2 years ;)


Hey, according to an old news item on our web site, Hero Lab is 2 years
old today! Happy birthday Hero Lab! :)


--
Colen McAlister, colen@wolflair.com
 
Back
Top