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

Old October 21st, 2020, 02:27 PM
This should get you what you want as long as I understood it correctly. I wrote this without testing anything so you may have to modify it.
Code:
~ Loop through all the spells of X
foreach pick in hero from BaseSpell where "thingid.spXXXXXX"

  ~ Check to see if this spell is bootstrapped by something
  if (eachpick.isroot <> 0) then

    ~ Check the bootstrap to see if its the correct ability
    if (eachpick.root.tagis[thingid.AbilityThatBootstrappedSpell] <> 0) then
      eachpick.field[trkMax].value = maximum(1,#attrmod[aCHA])
    endif
  endif
nexteach

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   #13 Reply With Quote