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).
I would like to do something similar with languages and spells.
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.