RQG 5.1.1
This is a pure bugfix release.
Bug Fixes & Improvements
- No scrollbar in attack dialog. The attack dialog was not usable on smaller screens. This update makes all roll dialogs work more like standard Foundry dialogs.
This is a pure bugfix release.
This release adds two bigger features, and fixes a really bad bug related to combat.
The drag-ruler module is not compatible with Foundry v13. This release introduces a system native implementation that uses the new Foundry Token Drag Measurement API to color code token movement.
There is some integration with the Foundry movement actions. If you change the token movement to swim or fly, then the MOV will be updated to reflect that according to the setting on the actor sheet.
How the drag ruler looks when dragging a token. The line is color coded according to the MOV of the token and the settings (see below). The hexes / squares are colored by Foundry to match the user color.
Actor sheet in edit mode where you can set the MOV for various locomotion modes. If you change the token movement, it will use the MOV values from the actor sheet to match the selected locomotion mode. see Foundry 13 Haul and Drag. The drag ruler is only visible for tokens that are in combat.
You can find the settings for the drag ruler in the system settings dialog.
The settings dialog for the drag ruler. The settings are explained in the dialog. The colors are for the different ranges.
This adds the possibility to write scripts that run when you click on regions. It's done in the form of a region behavior called "Click to Execute Script". You add one by creating a region, go to the Behaviors tab and press +
Adding a behavior will open the settings dialog. The top part with "Behavior Identity" and "Behavior Status" behaves in the same way as other Foundry behaviors. You can name and disable the behavior here.
In the next section the "Hover Pointer" lets you decide if the mouse pointer should change while hovering over the clickable region.
The two text boxes for "Left Click Script" and "Right Click Script" accepts javascript and that javascript will be run when you left or right-click on the region.
Each region can have multiple behaviors, even multiple "Click to Execute Script" behaviors. And you can have multiple regions that may overlap each other. If you have multiple "Click to Execute Script" behaviors they all will run even if they overlap.
As the hint text between the script boxes says you have access to variables in the scripts in case you want to check something about the event, behavior, region or scene. You could for example check if the shift key was pressed while you clicked and do something else in that case.
The click is only detected while you are on the TokenLayer - in other words while you are editing the regions it will not register the clicks, you have to have the top left tool selected.
This makes it quite powerful, but also less user-friendly since you need to know a bit of javascript to make something happen. Here are some snippets to get started:
game.system.api.rqid.renderRqidDocument("je..axis-mundi", "en");
// This can open anything in the world
fromUuidSync("Actor.BKBAy0w4MgvgYeKZ").sheet.render(true);
// With this syntax you can also open documents from the compendiums
(await fromUuid("Compendium.wiki-en-rqg.cults.Item.61zfpHEpM9RtE6XS")).sheet.render(true);
fromUuidSync("Macro.ufYFMHFOpuncTeiq").execute();
game.user.targets.forEach((token) => token.actor.applyDamage(5, 20));
let message = "You clicked this region";
if (event.ctrlKey) {
message += " and held the ctrl key at the same time";
}
if (event.altKey) {
message += " and held the alt key at the same time";
}
if (event.shiftKey) {
message += " and held the shift key at the same time";
}
ui.notifications.info(message);
This release drops support for Foundry 12 and introduces support for Foundry 13, so you need to update Foundry to v13 before you can update this system to v5.0.0
There are a lot of changes under the hood to follow the Foundry v13 way of doing things. The amount of deprecation warnings are greatly reduced, but there are some still left since they require larger rewrites that will come later. They should not impact the functionality though.
There are not a lot of new features in this release, but the styling in various places have been updated to look more like Foundry v13. The system no longer uses the deprecated TinyMCE editor, instead it uses ProseMirror for text editing.
Also in the previous versions you did not get strike rank buttons for unlinked actors, this release will show those buttons for unlinked actors as well. See SR Buttons for more info about how they work.
Foundry v13 have a system where you can see the last chat even if you have the chat collapsed. This RQG version introduces a user level setting so you can decide if the chat should be expanded when you roll something. That should make the feeling more similar to how it was before. It is off by default, so you need to enable it in the settings if you want that behavior.
There are now links to the Release Notes (this), Documentation and Bug Reports (Github issues) under the settings sidebar for easy reference.
A small new feature in this version is that you can now get a premade Rqid link string that you can
paste into your journals if you want a link to a "type" of document. This is not a new feature, but
before you had to type the link manually. Now you get a premade string that you can use from the
Rqid editor that you can open via the icon in the
document titlebar. The styling of the dialog was also slightly improved.
After pasting that string into the journal it will look like this. You can tell if the link is a default Foundry UUID link or a RQID link by the surrounding border. RQID links have a dashed, rounded border where the UUID links have a thin solid border without rounding instead.