Eranziel / foundryvtt-lancer

A Foundry VTT game system for LANCER RPG.
GNU General Public License v3.0
108 stars 64 forks source link

[FEATURE] Improve custom status effect creation #749

Open BoltsJ opened 3 months ago

BoltsJ commented 3 months ago

Is your feature request related to a problem? Please describe. The system currently merges in custom statuses from lcp data or even manually created ones in the status compendium, but there are limitations. Manually created statuses are easily wiped, and lcp don't use icon the icon parameter, meaning the imported statuses will need to be manually edited to set the desired icon.

Describe the solution you'd like Allow merging in statuses from a custom world compendium not managed by the lcp importer and/or allow imported lcp statuses to supply a filepath or base64 data uri for icon data/

Describe alternatives you've considered Condition Lab & Triggler, but this module has several quirks and interacts poorly with the system

Additional context Allowing statuses to be merged in from additional compendiums could also be leveraged by automation modules that rely on custom statuses.

In the lcp spec, a status has an icon_url key for the statuses which is unused by comp/con and not specified in KTB, but could be fetched at import time. If it's a data uri, it could be stored directly in the img field of the item, where foundry will store it server-side and rewrite into a valid path. This LCP has some custom statuses included. https://boisegang.itch.io/khepri-industrial-equipment-unofficial-lancer-expansion/download/eyJpZCI6MTg0OTg0OSwiZXhwaXJlcyI6MTcyMzI2MzA3Nn0%3d%2ePXDGa0niyPhbMh1PZ%2b7pCXk%2fJ%2fQ%3d

Discord contact info boltsj

Eranziel commented 1 month ago

With d6bb93bbf749acf11ad1795e0e5e507b0f5010ba, status items in the world merged in as well. Improves the situation; I'm not sure if it fully covers what's being asked for here or if there is still a use case that could be improved.