Is there a similar Helper command to SpcDisable? What I'm trying to do is gray out one of the options in the charges list based on an if statement (like how they get grayed out when all charges are used).
Currently, I'm using this code:
This works fine except that it then says "Requirements not met." in both the charges list and the special tab. This seems less than ideal. Is there another way to do this? Note that this particular ability doesn't have a number of charges, so there's no option to use them up. It's just that it's not available to use under certain conditions.
Also note: I tried using ShowCharge for when the value is 1, but using this ability requires expending Psionic Focus, which brings me to a second, somewhat related question. Is there a way to turn off a condition from a different tab? For example, if I turned something on in the charges list, could that automatically turn off something in the conditions list?
Currently, I'm using this code:
Code:
if (hero.childfound[pPsiFocus].field[pIsOn].value = 0) then
perform assign[Helper.SpcDisable]
endif
This works fine except that it then says "Requirements not met." in both the charges list and the special tab. This seems less than ideal. Is there another way to do this? Note that this particular ability doesn't have a number of charges, so there's no option to use them up. It's just that it's not available to use under certain conditions.
Also note: I tried using ShowCharge for when the value is 1, but using this ability requires expending Psionic Focus, which brings me to a second, somewhat related question. Is there a way to turn off a condition from a different tab? For example, if I turned something on in the charges list, could that automatically turn off something in the conditions list?
Last edited: