misthero / dnd5e-spellpoints

FoundryVTT module for spellpoints magic system 5e
MIT License
10 stars 16 forks source link

[Question] - Reference for Spell Points #79

Closed notaWizard11 closed 1 week ago

notaWizard11 commented 7 months ago

Forgive my ignorance, I'm brand new to the world of Foundry and macros/code in general,

Is there a way to reference spell points through a macro or roll? I want to have a potion that, when consumed, replaces some spell points for an actor. I've looked as best I can through the console and can't find a reference of how to call or modify spell points other than editing the spell point max in the character sheet itself.

I'm thinking something similar to these: https://github.com/foundryvtt/dnd5e/wiki/Roll-Formulas

Any guidance/advice on if this is the wrong approach would be most appreciated!

misthero commented 7 months ago

hello @mbrueckl, that depends on what you are doing and the version of the module you are using. the new version uses an Item to handle spellpoints, so you can refer to the item.uses

immagine

the old version uses resources:

immagine

notaWizard11 commented 7 months ago

Thanks for taking the time to reply! That's great, I'm using the item version, so I'll play around with that,