Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 21st, 2013, 02:40 PM
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.
AndrewD2 is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old July 21st, 2013, 03:01 PM
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.
ShadowChemosh is offline   #2 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 21st, 2013, 03:18 PM
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]
?
AndrewD2 is offline   #3 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 21st, 2013, 04:36 PM
That seems like it'd work, off the top of my head. Did you try it? Did it not work?
Aaron is offline   #4 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 21st, 2013, 04:55 PM
I haven't tried yet, I was working on something else when I posted this and haven't switched back to that file.
AndrewD2 is offline   #5 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 21st, 2013, 07:57 PM
Well keep me posted if it doesn't work out then.
Aaron is offline   #6 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 22nd, 2013, 09:22 AM
I'm getting 'tag Helper.ChgDisabl1 not defined'
AndrewD2 is offline   #7 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old July 22nd, 2013, 09:54 AM
Looks like a typo, should have no "l".

Helper.ChgDisab1
Aaron is offline   #8 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 22nd, 2013, 10:51 AM
Worked wonders, thanks Aaron
AndrewD2 is offline   #9 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old July 22nd, 2013, 02:59 PM
Quote:
Originally Posted by Aaron View Post
Looks like a typo, should have no "l".

Helper.ChgDisab1
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.
ShadowChemosh is offline   #10 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:46 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.