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

Macro for increasing an decreasing #46

Closed Zamino closed 2 years ago

Zamino commented 2 years ago

Hi there, could you please make a macro code available for increasing and decreasing resources. Maybe something like

To add 1 value: window.pr.api.add('resourceA', 1, { notify: true })

davelens commented 2 years ago

Hi there, could you please make a macro code available for increasing and decreasing resources. Maybe something like

To add 1 value: window.pr.api.add('resourceA', 1, { notify: true })

@Zamino This already exists, but I didn't include these in the FAQ (until now):

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)
Zamino commented 2 years ago

great! Thank you