PDA

View Full Version : template validation?


Mindcloud
May 16th, 2010, 01:02 PM
I am trying to create an eval rule in a class special ability that checks if the hero has an animal companion and then weather a specific template has been applied by the user to the animal companion. This is from unapproachable east the blightlord prestige class forces the blightspawn template on any animal companions the character may have. I could use some help on how to go about this.

Mathias
May 17th, 2010, 09:32 AM
if (hero.childlives[cAnimComp] <> 0) then
validif (hero.childfound[cAnimComp].minion.tagis[Template.tm?] <> 0)
endif



(Of course you'll need to replace the "tm?" in "Template.tm?" with the unique Id of the blightspawn template)