• 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

Changing/Adding Subtypes on the fly?

I have been playing with this for quite a while now, but do not seem to get anywhere with it. Any help would be appreciated.

I am trying to create the Transcendence ability, which adds the Outsider Type to the character, and also adds subtypes where the character and patron's alignments match (i.e. NG cleric of LG deity gets Good subtype). I have gotten the ability to add the Outsider Type by using the script in the Monk class, but cannot get that script to work with Subtypes.

The closest I have come to get this to work is by using this script on the Transcendence ability, but the point I am at now, the Chaotic Subtype shows up in the Hero Tag window, but does not show on the Background Pane. What am I doing wrong? Or is there a better way to do this?

Code:
if (hero.tagis[Alignment.Chaotic] <> 0) then
    if (hero.tagis[DeityAlign.Chaotic] <> 0) then
        perform hero.assign[Subtype.stChaotic]
    endif
endif

~other sections based on alignments

Also, I tried a variety of other things, such as bootstrapping the subtype, but could never get the conditions of the bootstrap to work.
 
Back
Top