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

Old March 10th, 2018, 10:38 PM
Quote:
Originally Posted by DeltaMasterMind View Post
Would someone please write up that code and post it here? I am not sure how to use the foreach in that way specifically. Thanks for the suggestion otherwise Aaron.
I would actually just count the Ability tags to know how many times the feat was taken.

Like this:
Code:
~ Improve our maneuverability based on how many copies of this feat we have.
field[abValue].value += hero.tagcount[Ability.XXXXXXXX]

if (field[abValue].value = 1) then
  perform hero.childfound[xFly].tagreplace[Maneuver.Clumsy,Maneuver.Poor]
elseif (field[abValue].value = 2) then
  perform hero.childfound[xFly].tagreplace[Maneuver.Poor,Maneuver.Average]
elseif (field[abValue].value = 3) then
  perform hero.childfound[xFly].tagreplace[Maneuver.Average,Maneuver.Good]
elseif (field[abValue].value >= 4) then
  perform hero.childfound[xFly].tagreplace[Maneuver.Good,Maneuver.Perfect]
endif
Just replace XXXXXXXX with the Unique ID of your Feat.

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