• 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

Template: Removing Languages and Spells

frumple

Well-known member
I am working on the corspsespun template (from Tome of Horrors). The template needs to remove all supernatural, spell-like and languages from the target creature. I am able to remove supernatural and spell-like abilities using a mechanism smiliar to the Zombie template. However, I cannot remove any spells or languages. I believe my problem is that I do not know what component spells and languages are stored in.

Here is the code I am using to remove the supernatural and spell-like abilities (cribbed from the Zombie template).
Code:
First, 100

~ Disable all supernatural, spell-like and psi-like special abilities

var searchexpr as string
searchexpr = "!component.BaseFeat & (AbilType.SpellLike | AbilType.Super | AbilType.PsiLike) & !thingid.typUndead & !SpecType.Movement "
        foreach pick in hero from Ability where searchexpr
          perform eachpick.assign[Helper.SpcDisable]
          perform eachpick.assign[Hide.Special]
          nexteach

I would like to do something similar with languages and spells.
 
Back
Top