View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old December 15th, 2017, 05:14 AM
The procedure fTargetId only works if one Target tag is applied.

Code:
    var id as string
    var name as string

    ~ if we have a single Target tag, use it as the id. If we have more,
    ~ something is wrong - we need to return a single id.
    if (tagcount[Target.?] = 1) then
      id = tagids[Target.?, "???"]
      id = replace(id, "Target.", "", 0)
      name = tagnames[Target.?]
    else
      id = field[fChosen].chosen.idstring
      name = field[fChosen].chosen.field[name].text
      endif
There are cases where the feat in question will have more than one Target tag applied (such as Favored Deity Weapon). In this case, the code to apply the tagids and names to the variables is skipped.

Note: This is likely intentional, but it's causing a bug with Favored Deity Weapon. Is there a way to do this with multiple Target tags?

To clarify, what Favored Deity Weapon really needs is a way to take multiple "Target.?" tags and apply them to the hero as "WepProf.?" tags. Is this possible?

Last edited by Sendric; December 15th, 2017 at 07:07 AM.
Sendric is online now   #38 Reply With Quote