• 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

Class ability that changes the creature's type.

Redcap's Corner

Well-known member
I'm programming a very strange class into Hero Lab. It has an ability that permanently changes the hero's type to undead and gives it a custom subtype. It's important that I make the class ability responsible for this change and not the class because there are archetypes that replace this ability.

The class has a second ability that grants the incorporeal subtype when enabled. Following Mathias's help thread on conditional bootstrapping I was easily able to make this second ability work. I merely bootstrapped the incorporeal subtype with the following first/450 condition:

Code:
fieldval:abilActive <> 0

It couldn't have been easier. Unfortunately, bootstrapping the undead type and the custom subtype to the "always-on" ability have yielded no results. I did have success bootstrapping the undead traits to the class ability, but that didn't actually change the hero's type. And undead traits should be bootstrapped to the undead type already anyway.

So, my question is: How do I change the hero's type to undead using a class ability?
 
Monks have an ability which changes their type at 20th level, perhaps you could look at that for a start?
 
Can you think of any core rulebook classes that count as an outsider at 20th level? How does it implement that change?

(Note that there's handling in the way the class deals with the type change to handle archetypes that replace the ability).
 
First/505 did the trick:

Code:
doneif (hero.tagis[AbReplace.cEnsAbBody] <> 0)

perform hero.findchild[ClassSort,"thingid.cEnspirit & fieldval:cThisIndex >= 1"].assign[TypeAndAug.tpUndead]

It's working, but I think most of the ClassSort business might be extraneous. The class I'm working on becomes undead at 1st level, not 20th, so all I should need to check for is whether or not the ability in question has been replaced, right?

And what's the rationale for doing this in the class and not the relevant ability?

Thanks, as always!
 
Back
Top