-
Notifications
You must be signed in to change notification settings - Fork 44
Macros
This page explains the built-in macros in Delta Green. General information on macros in Foundry VTT can be found in Macro Commands.
There is currently a built-in item macro that lets you roll a weapon’s attack and damage.
Dragging a weapon from an Actor to the macro bar creates a macro like this, which rolls both attack and damage:
game.deltagreen.rollSkillTestAndDamageForOwnedItem("Actor.UUID.Item.UUID", true);
If you do not want damage to roll automatically on a successful attack, change the last argument from true to false:
game.deltagreen.rollSkillTestAndDamageForOwnedItem("Actor.UUID.Item.UUID", false);If you only want to roll to attack, use the following, replacing Combat Dagger with the weapon’s name:
game.deltagreen.rollItemSkillCheckMacro("Combat Dagger");Important
The macro searches the currently selected token for the first Item that matches the name passed to the function.
If you only want to roll damage, use the following, replacing Combat Dagger with the weapon’s name:
game.deltagreen.rollItemMacro("Combat Dagger");Important
The macro searches the currently selected token for the first Item that matches the name passed to the function.
Getting Started
- System Settings
- Agent Sheet
- Agent creation
- Rolling dice
- Combat
- Sanity
- Hypergeometry
- Items
- NPC
- Vehicles
Advanced Usage