Thread: 5E - Capital Gains
-
November 19th, 2021, 22:50 #1
5E - Capital Gains
Current Version: 2.2.4
A Fantasy Grounds extension that adds support for managing custom resources.
A new Resources section has been added to both that character sheet and NPC sheet. Resources can be configured to have an upper limit or be left limitless. They may also be configured to gain and/or lose value periodically, such as on the start of the turn or after a long rest, for example. Resource definitions may also be shared amongst multiple characters by dropping a reference to the "Share with" list in the resource editor. (Resource sharing requires all participants to be in the CT for full automation.)
There is also a new Resource action type, which may be configured to spend or gain the associated resource. A resource spending action may be configured as variable to specific a minimum and (optional) maximum value to spend when using the action, enabling the value to be changed on the fly via Ctrl+Mouse Wheel on either the action text or mini-action button.
The following syntax additions have been made for effect processing:
- [CURRENT(n*Resource Name)] - When the effect is applied this notation will be replaced with the current value of the named resource, multiplied by n. n is optional.
- [SPENT(n*Resource Name)] - When the effect is applied this notation will be replaced with the amount of the named resource that has been spent this turn, multiplied by n. n is optional.
- CURRENT(n*Resource Name) - When the effect is evaluated this notation will be replaced with the value of the named resource, multiplied by n. n is optional.
- SPENT(n*Resource Name) - When the effect is evaluated this notation will be replaced with the amount of the named resource that has been spent this turn, multiplied by n. n is optional.
The following effects have been added:
- RSRCHEALS: d, Resource Name - While this effect is active any time the named resource is spent by the bearer of this effect, the bearer of the effect is healed by d (which can be any dice string).
- RSRCHEALT: d, Resource Name - While this effect is active any time the named resource is spent by the bearer of this effect, the targets of the bearer are healed by d (which can be any dice string).
- GRANTS: d, Resource Name - While this effect is active on the start of the bearer's turn, the applier of the effect will gain d (which can be any dice string) of the named resource.
- SGRANTS: d, Resource Name - While this effect is active on the start of the applier's turn, the applier of the effect will gain d (which can be any dice string) of the named resource.
Check it out on The Forge or at GitHub and please let me know if you have any comments or concerns.
Hope it helps!
If you wish to buy me a coffee, I would be extremely grateful. Though please don't feel any pressure or obligation to do so!Last edited by MeAndUnique; July 16th, 2023 at 17:09. Reason: Version update
My Forge creations: https://forge.fantasygrounds.com/crafter/9/view-profile
My GitHub: https://github.com/MeAndUnique
Buy me a coffee: https://ko-fi.com/meandunique
Discord: MeAndUnique#6805
-
November 20th, 2021, 02:38 #2
- Join Date
- Jan 2020
- Posts
- 280
Well this is really neat, thanks for sharing. I really appreciate your extensions!
-
November 20th, 2021, 14:44 #3
I'm still trying to wrap my head around this. I think there are a lot of possibilities. Would it be possible to automate arcane ward with this? Can you post some screenshots of examples so I can get a better idea how this works?
-
November 21st, 2021, 11:44 #4
- Join Date
- Jan 2019
- Posts
- 17
This seems to stop me from adding NPCs to the combat tracker. I've tried loading only this extension and immediately adding an unmodified NPC to the tracker and it just doesn't work. If I add an encounter I get '[ERROR] Unable to create NPC record. ([NPC name])' in the chat.
Very cool extension though, I can already see a lot of potential uses!Last edited by randomnumber46; November 21st, 2021 at 11:46.
-
November 21st, 2021, 19:36 #5
While I work on getting something a bit more complete put together I hope this will suffice as a bit of a high level visual intro.
CapitalGains.jpgMy Forge creations: https://forge.fantasygrounds.com/crafter/9/view-profile
My GitHub: https://github.com/MeAndUnique
Buy me a coffee: https://ko-fi.com/meandunique
Discord: MeAndUnique#6805
-
November 21st, 2021, 19:38 #6My Forge creations: https://forge.fantasygrounds.com/crafter/9/view-profile
My GitHub: https://github.com/MeAndUnique
Buy me a coffee: https://ko-fi.com/meandunique
Discord: MeAndUnique#6805
-
November 22nd, 2021, 02:40 #7
- Join Date
- Jan 2020
- Posts
- 280
So far, I'm using it for sorcery points and paladin's lay on hands pool. I'll be exploring ways to use it for a radiant soul monk next week, too!
-
November 23rd, 2021, 13:07 #8
I don't know if this has been reported but there is a conflict with Zarestia's Spell action info ext. When you right click to add a resource it throws:
[string "campaign/scripts/power_item.lua"]:119: attempt to index global 'powertknbutton' (a nil value)
-
November 23rd, 2021, 19:34 #9
Zarestia and I have been in communication and hope to have this resolved soon.
My Forge creations: https://forge.fantasygrounds.com/crafter/9/view-profile
My GitHub: https://github.com/MeAndUnique
Buy me a coffee: https://ko-fi.com/meandunique
Discord: MeAndUnique#6805
-
November 23rd, 2021, 19:56 #10
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks