Latest version | 2.2.0 |
---|---|
Minimum Core | 12 |
Compatible Core | 12 |
Last updated | 2 months ago |
Created | 2 years ago |
Authors |
|
Languages |
English |
Systems | All systems |
Dependencies |
libWrapper |
Project source | Project URL |
Read-me | Readme URL |
Module for granting players permissions to move/rotate tiles and tokens.
Once the module is activated for tiles and/or tokens via Tile Controls and Token Controls settings a new button will be added to their HUDs:
Toggle it to enable/disable the ability for players to move the tile or token they normally shouldn't be able to:
Right-clicking the button will grant the players permission to rotate them:
Movement can also be restricted to boundaries you can draw by either going to modules settings > Boundary Configuration or pressing the shortcut key Shift+B.
Move and Rotate permissions can also be toggled scene-wide using Tile Layer controls:
This setting which is enabled by default will insert the above mentioned button to Tile/Token HUDs. However you may choose to disable this and control move
and rotate
permissions via flags instead:
Toggle move
permissions for currently selected Tile/Tokens:
const controlled = canvas.tiles.controlled.length
? canvas.tiles.controlled
: canvas.tokens.controlled;
for (const placeable of controlled) {
const allowMove = Boolean(placeable.document.getFlag('move-that-for-you', 'allowPlayerMove'));
if (allowMove) placeable.document.unsetFlag('move-that-for-you', 'allowPlayerMove');
else placeable.document.setFlag('move-that-for-you', 'allowPlayerMove', true);
}
Toggle rotate
permissions for currently selected Tile/Tokens:
const controlled = canvas.tiles.controlled.length
? canvas.tiles.controlled
: canvas.tokens.controlled;
for (const placeable of controlled) {
const allowRotate = Boolean(placeable.document.getFlag('move-that-for-you', 'allowPlayerRotate'));
if (allowRotate) placeable.document.unsetFlag('move-that-for-you', 'allowPlayerRotate');
else placeable.document.setFlag('move-that-for-you', 'allowPlayerRotate', true);
}
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: move-that-for-you or copy its manifest URL:
And paste it to the input box at the bottom of your window.
You can install this package directly to your Forge account.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to deliver visitors with customized advertisements based on the pages they visited before and analyze the effectiveness of the ad campaign.