Skip to content
ProfessorPith edited this page Jan 4, 2021 · 9 revisions

This page is dedicated to various different useful macros people have asked for or contributed.

System Generated Macros

The system generates certain macros with drag and drop functionality.

Dragging Items from Actors

These macros can be used if the actor is selected. Note the only item types this supports currently are weapons, skills, prayers, spells, and traits.

2020-01-31_19-43-10

Dragging Actors and Journal Entries

These macros open the entity's sheet. 2020-02-02_17-16-52

Script Macros

These macros are custom scripts to provide useful functionality.


Test a Characteristic

Characteristics have been accommodated as "items" for convenience.

WFRP_Utility.rollItemMacro("ws", "characteristic");
WFRP_Utility.rollItemMacro("bs", "characteristic");
WFRP_Utility.rollItemMacro("s", "characteristic");
WFRP_Utility.rollItemMacro("t", "characteristic");
WFRP_Utility.rollItemMacro("i", "characteristic");
WFRP_Utility.rollItemMacro("ag", "characteristic");
WFRP_Utility.rollItemMacro("dex", "characteristic");
WFRP_Utility.rollItemMacro("int", "characteristic");
WFRP_Utility.rollItemMacro("wp", "characteristic");`
WFRP_Utility.rollItemMacro("fel", "characteristic");

Test a Skill

Since skills are not draggable, you can still easily make a macro to do so.

WFRP_Utility.rollItemMacro("Athletics", "skill");


Roll a Table

You can either use a chat macro /table hitloc

Or a script macro ChatMessage.create({content : WFRP_Tables.formatChatRoll("hitloc"), user : game.user.id})

Script macros are more powerful - for example: I want a macro to roll the Winds and Weather tables simultaneously

ChatMessage.create({content : game.wfrp4e.tables.formatChatRoll("winds"), user : game.user.id})
ChatMessage.create({content : game.wfrp4e.tables.formatChatRoll("weather"), user : game.user.id})

Or if I want to roll a sub-table from a table

ChatMessage.create({content : game.wfrp4e.tables.formatChatRoll("weather", {}, "Winter"), user : game.user.id})

You can find table names by entering /table help in the chat.

Note: Weather table requires Enemy in Shadows Module

Bypassing the Roll Dialog

WFRP_Utility.rollItemMacro takes an additional object as an optional argument that can bypass the roll dialog to instantly roll. {bypass: true, testModifier: <value>, slBonus: <value>, successBonus: <value>}

Example WFRP_Utility.rollItemMacro("Zweihander", "weapon", {bypass : true, testModifier: -10, slBonus: 2, successBonus : 1});