Difference between revisions of "Script:Token Lock"
From Roll20 Wiki
Andreas J. (Talk | contribs) m |
Andreas J. (Talk | contribs) m |
||
Line 1: | Line 1: | ||
{{script overview | {{script overview | ||
|name=TokenLock | |name=TokenLock | ||
− | |author= | + | |author=[[Aaron|Aaron C. M.]] |
|version=0.2.8 | |version=0.2.8 | ||
|dependencies={{api repository link|IsGM}} | |dependencies={{api repository link|IsGM}} | ||
|lastmodified=2020-05-21}} | |lastmodified=2020-05-21}} | ||
− | '''TokenLock''' allows the GM to selectively prevent players from moving their tokens. | + | '''TokenLock''' allows the [[GM]] to selectively prevent [[players]] from moving their [[tokens]]. |
Determination of player tokens is based on whether that token has an entry in the <code>controlled by</code>-field of either the token or the character it represents(this is due to <code>change:graphic</code>-events to not specify who changed the graphic). | Determination of player tokens is based on whether that token has an entry in the <code>controlled by</code>-field of either the token or the character it represents(this is due to <code>change:graphic</code>-events to not specify who changed the graphic). | ||
Line 30: | Line 30: | ||
{{changelog version|0.11-0.2.7|2015-2020|* several updates}} | {{changelog version|0.11-0.2.7|2015-2020|* several updates}} | ||
{{changelog version|0.11|2015-02-01|* Release}} | {{changelog version|0.11|2015-02-01|* Release}} | ||
+ | ==See Also== | ||
+ | * [[API:Script Index]] (partial) list of other APIs | ||
+ | * '''{{fpl|2948292/ DryErase}}''' – An API that can stop players from [[Drawing Tool|drawing]] on the map, deleting any drawing instantly. | ||
+ | <br> | ||
+ | <br |
Revision as of 17:52, 4 April 2021
Version: 0.2.8
Last Modified: 2020-05-21
Code: TokenLock
Dependencies: IsGM
Conflicts: None
TokenLock allows the GM to selectively prevent players from moving their tokens.
Determination of player tokens is based on whether that token has an entry in the controlled by
-field of either the token or the character it represents(this is due to change:graphic
-events to not specify who changed the graphic).
If controlled by
is empty, the GM can freely move the token at any point. If there is any entry in controlled by
, the token can only be moved when TokenLock is unlocked.
Moving of player-controlled Cards is still permissible.
Commands
!tl
Executing the command with no arguments prints this help.- The following arguments may be supplied in order to change the configuration. All changes are persisted between script restarts.
lock
-- Locks the player tokens to prevent moving them.
-
unlock
-- Unlocks the player tokens allowing them to be moved.
-
!tl-config [<Options>|--help]
Swaps the selected Tokens for their counterparts on the other layer.--help
-- Shows the Help screen.--toggle-allowmoveonturn
-- Sets whether tokens can be moved if they are at the top of the turn order.
Changelog
v0.2.8 (2020-05-21)
v0.11-0.2.7 (2015-2020)
- several updates
v0.11 (2015-02-01)
- Release
See Also
- API:Script Index (partial) list of other APIs
- DryErase(Forum) – An API that can stop players from drawing on the map, deleting any drawing instantly.
<br