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

Old May 2nd, 2015, 10:03 AM
Example of adding "debug". To view then go to "Develop->Floating Info Windows->Show Debug Output".

Code:
debug "Started Script"
field[livename].text = "Daring +" & field[abValue].value
field[abSumm].text = signed(field[abValue].value) & " to Will save vs. Fear"

debug "Before FirstCopy"
      ~only perform the calculations for the first copy
      doneif (tagis[Helper.FirstCopy] = 0)
debug "After FirstCopy"
debug "Before ShowSpec"
      ~ If we're not shown, just get out now
      doneif (tagis[Helper.ShowSpec] = 0)
debug "After ShowSpec"
debug "Before SpcDisable"
      doneif (tagis[Helper.SpcDisable] <> 0)
debug "After SpcDisable"

      #situational[hero.child[svWill], signed(field[abValue].value) & " vs. fear",field[thingname].text]

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