Party Resources is a system-agnostic FoundryVTT module that allows you to manage party-wide, numeric values that persist between sessions.
Currently, development on this module is on indefinite hiatus due to certain lifestyle changes I had to make for my health. I will do what is necessary to keep the module play nice with Foundry's major updates, at least until they decide to overhaul the way the module stores its data. Pull requests without major changes (translations, typos, CSS bugs,...) will continue to be reviewed and merged, with the occassional release.
Thank you for understanding!
CTRL
(Win) or CMD
(macos) when clicking to jump by +/- 10SHIFT
when clicking to jump by +/- 100CTRL
(Win) or CMD
(macos) and click a resource to open its edit formhttps://raw.githubusercontent.com/davelens/fvtt-party-resources/master/module.json
Party Resources
module in the active game world.If your desired translation is missing, you can help out through the Weblate page for Party Resources! In return you will receive my eternal gratitude, and quite possibly various riches in an eventual afterlife.
You need to enable it in the module's settings.
By default, any permission level can access it through the button at the top of the Actor directory. However, a DM has the option to hide this button.
No, the intent for this module was to have global numeric values everyone could keep an eye on. However, ardittristan/5eSheet-resourcesPlus would probably serve your players better by having custom resources assigned to their character sheet.
Because resources are an amalgam of settings scoped on world
, to make them persist in the world for all players. Foundry requires explicit permission to allow players to adjust the values linked to these settings with a scope of world
. Not doing so will result in error popups stating a player is not allowed to edit settings.
You need to separate the name of the items with a semicolon, like so:
window.pr.status_bar.render()
window.pr.dashboard.redraw(true)
As an example, say you wanted to change a resource called Fate Counters
that you gave a resource ID of fate
when you created it.
To retrieve the value of the fate
resource:
window.pr.api.get('fate')
To set the value of the fate
resource to 5
:
window.pr.api.set('fate', 5)
To increment the value of the fate
resource by 2
:
window.pr.api.increment('fate', 2)
To decrement the value of the fate
resource by 1
:
window.pr.api.decrement('fate', 1)
To set the value of the fate
resource to 5
, and notify players with a chat
message. Note that this will only work if "Notify players of value changes" is checked in the resource settings:
window.pr.api.set('fate', 5, { notify: true })
The resource dashboard will then process the change in real time.
No, I don't have a Patreon going and don't get paid to write or maintain modules. I'm a software engineer by trade, and I've been writing web apps for 15 years. My main stack is both Ruby and Elixir, and I'm somewhat proficient in JavaScript, HTML, and CSS. Most of my work is backend-related so I'm not a frontend developer, and I'm sure it shows in the source code for those among you who are. I get by, though.
Sure: Pretzl#0001
- I'm in the official FoundryVTT Discord.
This work is licensed under the MIT license, as well as Foundry Virtual Tabletop EULA - Limited License Agreement for module development from May 29, 2020.