PDA

View Full Version : 5E - Power Action Script Request



MeAndUnique
October 2nd, 2022, 16:32
I'd like to request that references to "onDataChanged" in 5E's power_action.lua all be made to "self.onDataChanged". Presently, it creates a difficult situation if there are multiple extensions that seek to add new action types. Specifically, the Critically Awesome Essentials extension adds new actions for placing tokens for area of effect spells, and the Capital Gains extension adds new actions for tracking dynamic resources such as Monk Ki. Due to the fact that CAE loads first but does not have an override for "onDataChanged", when CG attempts to set the override via "super.onDataChanged" the change is not cascaded down to the ruleset, resulting in the display text not updating dynamically for resource actions when both extensions are in use. However, with the requested change to the ruleset both extensions are able to easily work alongside each other. Thanks for your consideration :)

MrDDT
October 2nd, 2022, 17:11
Glad you guys are on the case!

Moon Wizard
October 9th, 2022, 05:59
I've pushed these changes for the 5E/3.5E/d20M/PFRPG/SFRPG rulesets to the Test channel.

Regards,
JPG

MeAndUnique
October 12th, 2022, 21:31
Awesome, thank you very much!