foundryvtt / foundryvtt

Public issue tracking and documentation for Foundry Virtual Tabletop - software connecting RPG gamers in a shared multiplayer environment with an intuitive interface and powerful API.
https://foundryvtt.com/
192 stars 10 forks source link

Allow for free-form entries for `statuses` in the base `ActiveEffectConfig` #10803

Closed krbz999 closed 2 weeks ago

krbz999 commented 2 weeks ago

User Experience

(v12.320)

Since the <multi-select> element in ActiveEffectConfig limits the options to those in CONFIG.statusEffects, it is not possible to add any custom string to ActiveEffect#statuses (via script) and retain it if one should want to make changes to the ActiveEffect at any point through the UI.

Additionally it is not possible to add such a string by any means other than by script.

It would be perfect if this field was instead a "tags" input (example of what is meant by that).

aaclayton commented 2 weeks ago

This is not a good candidate for free-form user input. These statuses have mechanical significance and need specific string IDs to function properly. Those string IDs (and their corresponding labels) need to be pre-registered in CONFIG so they can be honored by the system. I'm sure there are use cases for free-form input, but I would encourage you to think about alternative ways to pursue your desired design.