PDA

View Full Version : 5E Ruleset - action.label access in ActionAttack



deer_buster
January 27th, 2019, 05:56
So I'd really like to get access to the label property of the rAction parameter inside the getRoll function of the ActionAttack script. Currently it is part of a conglomeration of concatenated strings in sDesc that is passed into applyAttack, and there is no way that I can see to access the action.label from within applyAttack. Having a new property added to the rRoll inside the getRoll function would make this a LOT simpler to gain access to.

So anywhere after rRoll is defined, add the following line, and I'd be golden.



rRoll.sLabel = rAction.label;


I could then override the handlers to pass along the value from rRoll.sLabel and use it in my extension.

If anyone can think of a better way to do it, I'm all ears/eyes.

Thank you in advance