I have a class special that requires a specific Diety and certain Domains as a pre-req. The #hasdeity[XXXXX]<>0 macro works spiffingly well however It would appear that Domain pre-requisites are an anomaly.
I tried #hasdomain[cdEvil] <> 0 but received a right side expression parsing error, presumably there isn't a has domain macro?
and then this script
Error message below
I referred to the hero fields and noticed that adding and removing domains altered the fields to HasAbility.cdEvil cdLaw respectively so I tried
if (hero.childfound[HasAbility.cdEvil] <> 0) which also didn't compile.
Exactly how can this be done??
Looking through the existing data I'm seeing a text placeholder stating script required (Ultimate Magic - Warrior Priest) or a huge search expression chooser that cycles through anything that grants a Domain ability (Domain Strike - Ultimate Combat) and allows the user to select a domain ability to apply effects to.
Edit: #hasability[cdLaw] <> 0 does work.
I tried #hasdomain[cdEvil] <> 0 but received a right side expression parsing error, presumably there isn't a has domain macro?
and then this script
Code:
~ Start out invalid
@valid = 0
~ Check for Evil or Law Domain
if (hero.childfound[HasDomain.cdEvil] <> 0) then
~ If so, we're valid.
@valid = 1
else
if (hero.childfound[HasDomain.cdLaw] <> 0) then
~ If so, we're valid.
@valid = 1
endif
endif
HTML:
Syntax error in 'pre-requisite rule' script for Thing 'arWoWUnBar' on line 6
-> Non-existent thing 'HasDomain' used by script
if (hero.childfound[HasAbility.cdEvil] <> 0) which also didn't compile.
Exactly how can this be done??
Looking through the existing data I'm seeing a text placeholder stating script required (Ultimate Magic - Warrior Priest) or a huge search expression chooser that cycles through anything that grants a Domain ability (Domain Strike - Ultimate Combat) and allows the user to select a domain ability to apply effects to.
Edit: #hasability[cdLaw] <> 0 does work.
Last edited: