View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old December 17th, 2017, 09:16 AM
Quote:
Originally Posted by Sendric View Post
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?
Correct its intentional as how could it target "two" different Things?

I need more info cause I can't find a "Favored Deity Weapon" ability and not sure I am following how/why the feat would be getting multiple tags?

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #40 Reply With Quote