Is this even possible?
Posted: Mon Nov 27, 2017 1:50 pm
I'm developing a more complicated Damage macro for Pathfinder. I'm planning to take into account various things that complicate the calculations (e.g., DR). As a specific example, I want to have a check box in my input that allows the GM to note if this attack ignores DR or not.
I can get that check box in, and I have no concerns about the coding to take DR out of the total damage dealt. I was wondering if there is any way to set up the Input call so it deactivates the "Does this ignore DR" check box when DR == 0. Basically, I'd like to have the option not available if the selected token doesn't have any DR to ignore.
All in all, this is not a big deal at all - nothing that I can think of would break my code if the options are set incorrectly. It is more my desire for a clean interface than any real practical considerations. I poked around in the macro functions, and I didn't see anything that seemed to be a likely path forward with this. However, before I gave up my search I figured I'd poll the wisdom of the crowd on this.
I can get that check box in, and I have no concerns about the coding to take DR out of the total damage dealt. I was wondering if there is any way to set up the Input call so it deactivates the "Does this ignore DR" check box when DR == 0. Basically, I'd like to have the option not available if the selected token doesn't have any DR to ignore.
All in all, this is not a big deal at all - nothing that I can think of would break my code if the options are set incorrectly. It is more my desire for a clean interface than any real practical considerations. I poked around in the macro functions, and I didn't see anything that seemed to be a likely path forward with this. However, before I gave up my search I figured I'd poll the wisdom of the crowd on this.