Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Options Option Type of Spell Selector #5657

Open
Lisonna opened this issue Feb 8, 2025 · 0 comments
Open

Custom Options Option Type of Spell Selector #5657

Lisonna opened this issue Feb 8, 2025 · 0 comments
Labels
🎨 Feature Request This is a request for a new feature, or an expansion of an existing feature.

Comments

@Lisonna
Copy link

Lisonna commented Feb 8, 2025

Is your feature request related to a problem? Please describe.
When creating a custom option, I sometimes want users to be able to specify an arbitrary Spell. However, there's no option to support data validation, leading to invalid inputs (or requiring me to implement my own data validation).

Describe the solution you'd like
Inside of basic Spell and Aura triggers, there is data validation on the spell fields. If you enter an invalid spell, the field will not validate and not allow entry.

I'd like a similar field option in Custom options, so I can specify an arbitrary spell input (either by name or by exact id, or Id-In-Name-Field for localization validation), and have the field validate and only allow valid entries.

Describe alternatives you've considered
A basic string or number input for name or ID, along with custom data validation in Init code (which doesn't prevent the user from entering the data, it can only notify them that it's invalid via Print prompts and not use the data).

Additional context
I'd like an option type that allows input similar to this (Screenshot from a basic Aura trigger)
Image

If I enter an invalid spell ID, the field doesn't accept the value and the field is cleared. This behavior is what I'd like to see in a custom option.

For example, if creating a spell Id exclusion list.
Image

Alternatively, add a sub-option to the String custom option type for a set of preset types of data validation (Spell is the only type of preset data validation I can think of, I figure that a custom type of data validation is perhaps a bit much to implement (but food for thought)).

@Lisonna Lisonna added the 🎨 Feature Request This is a request for a new feature, or an expansion of an existing feature. label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 Feature Request This is a request for a new feature, or an expansion of an existing feature.
Projects
None yet
Development

No branches or pull requests

1 participant