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

Old May 30th, 2017, 02:16 PM
Your script is running at 'User Post Attributes'. Don't use any of the "user" timing phases. Change to "Post Attributes". "User" timing phases are going to be deprecated in a future release...

Next step to help yourself use "debug" statements to see what the script is doing.

Code:
debug "Running"
~ -1 Skill Check Penalty at 10th level
  if (hero.tagcount[Hero.HitDice] >= 10) then
   foreach pick in hero from BaseSkill
    eachpick.field[Penalty].value -= 1
   nexteach
  endif

~ -1 Spell save DC at 6th level
debug "Hit Dice Count: " & hero.tagcount[Hero.HitDice]
  if (hero.tagcount[Hero.HitDice] >= 6) then
debug "In IF"
    hero.child[cHelpWiz].field[cSplSaveDC].value -= 1
debug "Wiz Save DC:" & hero.child[cHelpWiz].field[cSplSaveDC].value
  endif
Then go to "Develop->Floating Info Windows->Show Debug Output". Then you can see the output of the "debug" info in the window. That should provide you with good info to see "what" is going on.

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