How do I make an @variable

Hi all, I am new to system development. How do I make a @variable that can be used in dice formula. Do I have to write code to check for the @variable and swap it out. Or is there an easier way to make a global variable on a character sheet? I feel like this is a dumb question so I apologize if it is. So for an example I have a power die variable on characters this power die can be added to weapon damage. So I was hoping to be able to added it directly to the formula using an @ symbol like dnd5e does.
2 Replies
Forien
Forien3mo ago
that would be a getRollData() method on Actor Documents. https://foundryvtt.com/api/classes/client.Actor.html#getRollData
Grimwood_Games
Grimwood_GamesOP3mo ago
I knew it was a simple answer thanks
Want results from more Discord servers?
Add your server