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

Old December 2nd, 2017, 07:58 AM
Quote:
Originally Posted by Bob G View Post
Thanks Shadow. I'm still very new to the editor, where do I define Listname and xCount?
You don't.

Listname is the field name that is displayed on classes tab name when you click the star:
Image3.png

xCount is a field that is defined on all Class Abilities Things. In addition xCount automaticlaly increases its value as more abilities become active. So if you have an ability bootstrapped at levels 1, 4, 8, 12, etc. Then when a character is level 1 to 3 xCount = 1. When character level is 4-7 xCount = 2. Etc.

Put this script on your ability at Post-Level/10000:
Then bootstrap it at the correct levels when the bonus increases 1,4,8, etc. You will see the bonus all work without having to know anything else about your ability:
Code:
      ~ Set the list name
      field[listname].text = field[thingname].text & " " & field[xIndex].value

      ~ If we're not shown, just get out now
      doneif (tagis[Helper.ShowSpec] <> 1)
      ~ if we've been disabled, get out now
      doneif (tagis[Helper.SpcDisable] <> 0)

      ~ Set the bonus based on the number of active abilities
      field[abValue].value += field[xCount].value
      field[livename].text = field[thingname].text & " " & field[abValue].value

      ~ The following should only happen once on the first copy
      doneif (tagis[Helper.FirstCopy] = 0)

      ~ Give a Competence Bonus (BonComp) to the Stealth Skill
      #applybonus[BonComp,hero.child[skStealth],field[abValue].value]

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