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

Old July 19th, 2018, 04:38 PM
Add debug statements to test to see if the script is doing what you expect it to be doing:
Code:
var void as number
var tao as number
void = hero.childfound[xVoid].field[hTotal].value
debug "void " & void
tao = hero.tagcount[User.Tao] * 3
debug "tao tagcount " & tao
tao = tao + 5
debug "tao +5 " & tao

if (void >= tao) then
debug "Valid TRUE"
  @valid=1
endif
Then go to "Develop->Floating Info Windows->Show Debug Output". Then try and add the feat to a character and the debug output will get displayed.

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