Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
I tried making some Madness Conditions, but I think the Phase and Priority are wrong.
The effects seem to show up even if the Condition is check or not checked. Here is the script. foreach pick in hero from BaseSkill if (eachpick.islinkage[skillattr] = 0) then ~ do nothing elseif (eachpick.linkage[skillattr].tagis[thingid.aCHA] + eachpick.linkage[skillattr].tagis[thingid.aDEX] + eachpick.linkage[skillattr].tagis[thingid.aCON] <> 0) then eachpick.field[Penalty].value -= 2 endif nexteach |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Their is nothing their telling the script to look for a Check mark or not. Add the following to the very top of your script
Code:
~if we're not active, just get out now doneif (field[pIsOn].value = 0) 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. |
#2 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Cool thanks, works great!
|
#3 |
|
|