combat-utility-belt
combat-utility-belt copied to clipboard
Feature Request: Macro API to create a condition and remove condition with specific name
This request is for the following API:
- macro function to create a condition with a name, icon, compendium link, trigger in/out, and options to show as overlay, clear others, show in chat etc.
- macro function to check a token for condition with a specific name, and remove it.
These functions would allow in some systems to have Macros that use menus and input fields to create the name of a conditions, or fake numbers attached to the condition.
Example is PF2, where Persistent damage has different damage dice and types. A macro would allow to show a text field for the DM where he enters "1d4 bleed" and the macro creates a condition "Persisdent damage - 1d4 bleed" on the selected token. Then, a function could check to remover that condition, if any condition matches that name.
Another example in PF2, a homebrew condition like Taunted with numbers could use a macro where the DM enters the value of Taunted condition, and it creates a condition "Taunted 2", for example.
These conditions are throwaway and don't need to be added to Condition Lab.
macro function to check a token for condition with a specific name, and remove it.
is already present game.cub.removeCondition("Condition Name")
https://github.com/death-save/combat-utility-belt/blob/master/API.md#EnhancedConditions.removeCondition