• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Disabling activated abilities

AndrewD2

Well-known member
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.
 
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
 
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]

?
 
I haven't tried yet, I was working on something else when I posted this and haven't switched back to that file.
 
Back
Top