davelens / fvtt-party-resources

A simple module for FoundryVTT to manage (and track) custom party-wide numeric values.
MIT License
6 stars 16 forks source link

Feature Request: Ability to store/display string values as Party Resources #88

Open PlasticMohawk opened 1 year ago

PlasticMohawk commented 1 year ago

As a Foundry VTT GM, I want to code a weather generation system around this module's API. I want the ability to store and replace values of type string in resource objects using the API. I want the string value to optionally display in the top UI bar on the canvas.

For example, if my script configures "Sunny" weather, I want a "Weather" Party Resource object which can store the value "Sunny". I also want that to display as "Sunny" and I want my script to reference the "Sunny" value via your API for the next time I need to generate some weather.

I can already accomplish the mechanics of what I want using simply numbers, for example: "Sunny" = 1 "Rainy" = 2 "Death Moon" = 3 etc.

However using strings gives me some added options as a coder and also helps me convey game information to the players via the Party Resources UI.