fvtt-fria-ligan / morkborg-foundry-vtt

An unoffical, community-supported system for playing MÖRK BORG on Foundry VTT.
Other
31 stars 17 forks source link

How to call abilities with a macro #180

Open Kigali01 opened 9 months ago

Kigali01 commented 9 months ago

I'm attempting to use the code below (scrounged from Reddit) to roll on a table using the player's presence modifier, but obviously it won't work by calling DEX.

What is the correct way to call the abilities from this module? & where can I find them?

const table = game.tables.getName("table_name");

const roll = new Roll("1d20 + @abilities.dex.mod", actor.getRollData());

table.draw({roll});

Cheers!