• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Magic Item: Choose Deity, match against Patron Deity

Matt Droz

Well-known member
I have a magic item that can be specific to certain good-aligned deities. So, if the wielder of the item's patron deity matches the deity of the item, they get to use extra powers of the item. I'm looking for two things:

  1. How do I generate a list of all good-aligned deities available to the character?
  2. How do I compare the chosen to the bgDeity field of the hero?
 
1 - You'd have to do a "foreach thing in hero" to cycle through all the deities looking for the good alignment tag and append the name/unique id of each to a string variable. Does that make sense?

2 - When the hero chooses a deity, that applies a HasDeity tag which you can match to the one on the item (if it chooses among a list of deities and pulls the HasDeity tag from the chosen), or it can just check for the presence/abscence of the tag if you make a new version of the item for each god.
 
1) That does make sense, but will it restrict it to just the deities available to the hero?

3) a) That's what I was thinking, regarding the HasDeity tag, but I wasn't sure how exactly to code it.
b) I was afraid you might suggest an item for each deity. The problem is, I'm looking at the Forgotten Realms pantheon. At last count, there are 57 good deities (20 if I use just the Faerûnian pantheon).
 
What do you mean "available to the hero"? You mean as in, which sources are checked? I don't think you can exclude things linked to this or that source. If this is something you intend for FR, you may be better served to Mark each of your new dieties with a Forgotten Realms tag you can include in the foreach.

3 - It is certainly possible to have just 1 version that picks a deity. Once you have set the candidate expression, have the user pick the deity on the item, and then have it pull the HasDeity tag from the chosen deity.

You can then use tagmatch or intersect to confirm there is the same tag on the hero.
 
Look at the eval scripts for Greater Elemental Focus feat for pulling and pushing to the hero. Then the eval rule does a tagmatch between the hero and the feat.
 
Back
Top