Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Is there a way to disable (grey out) an ability check box? I have a feat that says it can't be used with Power Attack or Combat Expertise, so I was thinking if it was checked making it so the user couldn't check the other two.
|
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Yep the Helper.ChgDisabl1 or Helper.ChgDisabl2 will disable the check boxes.
Code:
~ Disable check box if Power Attack or Combat Expertise is active If (hero.tagis[Activated.fComExpert] + hero.tagis[Activated.fPowerAtt] <> 0) Then perform assign[Helper.ChgDisabl1] perform assign[Helper.ChgDisabl2] Endif 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: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
what if I want to disable power attack and combat expertise instead of the feat these are on?
Code:
perform hero.child[fComExpert].assign[Helper.ChgDisabl1] |
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
That seems like it'd work, off the top of my head. Did you try it? Did it not work?
|
#4 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
I haven't tried yet, I was working on something else when I posted this and haven't switched back to that file.
|
#5 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Well keep me posted if it doesn't work out then.
|
#6 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
I'm getting 'tag Helper.ChgDisabl1 not defined'
|
#7 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Looks like a typo, should have no "l".
Helper.ChgDisab1 |
#8 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Worked wonders, thanks Aaron
|
#9 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Whats an L among friends.
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. |
#10 |
|
|