Thread: Comparing Tags
View Single Post
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,243

Old May 3rd, 2011, 08:24 AM
If you're a cleric, won't both of your domains have come from the allowed domains? If that's so, is that an error for what you're searching for?

If not, you can use intersect:

hero.child[wherever you have stored the domain tags that were chosen].intersect[AllowDom,AllowDom] <> 0

(the first AllowDom is looked for wherever hero.child[] takes you, and the second is checked on whatever's running the script)

It sounds like those tags may be on the hero, so

hero.intersect[HasDomain,AllowDom] <> 0

Should work.

Another option that my work:

The druid class cancels the restriction that a deity's allowed domains match the hero's domains chosen by assigning the Hero.AllowAllDom tag to the hero (at First/1600), so by deleting that tag from the hero, you'd impose the same restriction a cleric has to follow - that they select domains from their deity's list.
Mathias is offline   #4 Reply With Quote