spannclann
Well-known member
I have created a Custom "Deity of Arcane Magic" into my campaign. As a result, I want arcane users to have access to this Deity's custom spells if the PCs decide to worship them.
I am wanting the spells to be available in the list of spells for each Arcana based caster, but greyed out if they do not worship this particular god.
I am looking for a script to put in the spell that will check what god the PC worships; sort of as a prerequisite check. If the check is true, then the spell becomes available.
I am sure I will need the HasDeity.deiCustomDeityName tag in the check somewhere.
Would this work? Am I on the right track or way off?
if (hero.childfound[HasDeity.deiCustomDeityName].tagis[thing.activated] <> 0) then
I am wanting the spells to be available in the list of spells for each Arcana based caster, but greyed out if they do not worship this particular god.
I am looking for a script to put in the spell that will check what god the PC worships; sort of as a prerequisite check. If the check is true, then the spell becomes available.
I am sure I will need the HasDeity.deiCustomDeityName tag in the check somewhere.
Would this work? Am I on the right track or way off?
if (hero.childfound[HasDeity.deiCustomDeityName].tagis[thing.activated] <> 0) then