Difference between revisions of "Script:Map Lock"
From Roll20 Wiki
Andreas J. (Talk | contribs) m |
Andreas J. (Talk | contribs) m |
||
(3 intermediate revisions by one user not shown) | |||
Line 2: | Line 2: | ||
{{main|API:Script Index}} | {{main|API:Script Index}} | ||
− | + | {{notebox|For the Roll20 feature, see: '''[[Token Lock]]''' ''(April 2022)''}} | |
− | + | ||
{{script overview | {{script overview | ||
|name=MapLock | |name=MapLock | ||
Line 10: | Line 9: | ||
|dependencies={{api repository link|IsGM}} | |dependencies={{api repository link|IsGM}} | ||
|lastmodified=2020-05-22}} | |lastmodified=2020-05-22}} | ||
+ | Provides locking of graphics to prevent you from accidentally moving/resizing/rotating them. Also highlighting. | ||
+ | |||
'''MapLock''' provides a way to lock individual graphics in place. This prevents them from being moved, resized, or rotated by reverting any of those changes that are made to them. It also provides tinting of locked items. | '''MapLock''' provides a way to lock individual graphics in place. This prevents them from being moved, resized, or rotated by reverting any of those changes that are made to them. It also provides tinting of locked items. | ||
− | '''Note:''' Even though it's called MapLock, it works for any graphics on any {{layers}}. | + | '''Note:''' Even though it's called MapLock, it works for any graphics on any {{layers}}, like [[tokens]]. |
You could for example lock down individual [[Map Pins|Map Pin]] tokens on a world/city map, so that the [[players]] have full access to the [[token]]'s info, while preventing them from being accidentally moved by anyone. Might also be useful for keeping things in place on a [[Landing Page]]. | You could for example lock down individual [[Map Pins|Map Pin]] tokens on a world/city map, so that the [[players]] have full access to the [[token]]'s info, while preventing them from being accidentally moved by anyone. Might also be useful for keeping things in place on a [[Landing Page]]. | ||
Line 33: | Line 34: | ||
==See Also== | ==See Also== | ||
+ | * [[Token Lock]] | ||
* [[API:Script Index]] curated list of APIs | * [[API:Script Index]] curated list of APIs | ||
** [[TokenLock]] - specifically preventing [[players]] from moving any of their tokens, without affecting the [[GM]] | ** [[TokenLock]] - specifically preventing [[players]] from moving any of their tokens, without affecting the [[GM]] | ||
Line 39: | Line 41: | ||
[[Category:Maps]] | [[Category:Maps]] | ||
+ | [[Category:Tokens]] |
Latest revision as of 12:03, 23 April 2022
Page Updated: 2022-04-23 |
Main Page: API:Script Index
For the Roll20 feature, see: Token Lock (April 2022) |
Version: 0.4.6
Last Modified: 2020-05-22
Code: MapLock
Dependencies: IsGM
Conflicts: None
Provides locking of graphics to prevent you from accidentally moving/resizing/rotating them. Also highlighting.
MapLock provides a way to lock individual graphics in place. This prevents them from being moved, resized, or rotated by reverting any of those changes that are made to them. It also provides tinting of locked items.
Note: Even though it's called MapLock, it works for any graphics on any b Layers, like tokens.
You could for example lock down individual Map Pin tokens on a world/city map, so that the players have full access to the token's info, while preventing them from being accidentally moved by anyone. Might also be useful for keeping things in place on a Landing Page.
- MapLock(Forum) use and examples
[edit] Commands
!map-lock < lock | unlock | toggle-highlight | --help >
Adjusts locking options for selected graphics.
-
lock
-- Adds these graphics to the list of locked items. -
unlock
-- Removes these graphics from the list of locked items. -
toggle-highlight
-- Turns on or off the red tinting of locked graphics. -
--help
-- Shows the help
[edit] Changelog
v0.4.2 (2020-05-22)
v0.1 (2015-02-28)
- Release
[edit] See Also
- Token Lock
- API:Script Index curated list of APIs
- Map Pins
- Landing Page