gurps icon indicating copy to clipboard operation
gurps copied to clipboard

[Feature Request] Add currency field to Characters

Open LordOHelmet opened this issue 2 years ago • 3 comments

I know that it it possible/recommended to add a ressource traker for money. Having said this, I request a field/value on the character sheet for currency which corresponds to the cost field of Foundry items.

This would allow for a proper shop use with Monk's Enhanced Journal . Enabling an autonomous shopping/loot experience without the need for a GM.

LordOHelmet avatar Aug 06 '22 11:08 LordOHelmet

@LordOHelmet Do you know what the data path is to money that Monk's Enhanced Journal expects?

mjeffw avatar Aug 12 '22 21:08 mjeffw

@mjeffw Sorry, I don't know. But I asked ironmonk88 if he could help us out.

LordOHelmet avatar Aug 13 '22 05:08 LordOHelmet

@mjeffw

@LordOHelmet Do you know what the data path is to money that Monk's Enhanced Journal expects?

to Actor5e#system.currency and has .pp, .gp, .sp, .cp, and .ep

how i work in DnD to give money

const a = game.actors.getName("Milo");
const value = a.system.currency.gp;
await a.update({"system.currency.gp": value + 8});

Boifuba avatar Dec 15 '22 17:12 Boifuba