javierriveracastro / betteroll-swade

A Better Rolls port for SWADE
GNU General Public License v3.0
16 stars 32 forks source link

Custom Action: skillOverride option #727

Open david-a-rivera opened 1 month ago

david-a-rivera commented 1 month ago

Currently, if an action exists on an item that is a trait action, then the action is pulled into the Item Group and, if selected, will replace the default attribute die. For example, if open the Push action, which has an Athletics item action, I can select Athletics from the Item Group list. If I do, the system replaces Strength on the card with Athletics. It appears the way it does this is by setting a property called skillOverride.

Can we get this property as an option in the global action json? My goal is to create a Test and Support action which are currently not part of the core system. I would like to be able to attach a global action to each of these actions based on whether or not the character has the specific skill. I was hoping to do something like the below:

{ "id": "TestSupportAthletics", "name": "Athletics", "button_name": "Athletics", "skillOverride": "Athletics", "group": "Skil Override", "group_single": true, "selector_type": "actor_has_item", "selector_value": "Athletics", "or_selector": [ {"selector_type": "item_name", "selector_value": "Test"}, {"selector_type": "item_name", "selector_value": "Support"} ] }

david-a-rivera commented 1 month ago

I added a PR that should support this.