Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Script:Map Lock"

From Roll20 Wiki

Jump to: navigation, search
m (fix link)
m (example uses)
Line 10: Line 10:
 
'''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}}.
 +
 
 +
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]].
  
 
* {{fpl|1660748/ MapLock}} use and examples
 
* {{fpl|1660748/ MapLock}} use and examples
Line 31: Line 33:
 
* [[API:Script Index]] (partial) list of other APIs
 
* [[API:Script Index]] (partial) list of other 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]]
 +
* [[Map Pins]]
 
<br>
 
<br>
 
<br>
 
<br>

Revision as of 10:51, 13 April 2021

API ScriptAuthor: Aaron C. M.
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.

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.

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

Changelog

v0.4.2 (2020-05-22)


v0.1 (2015-02-28)

  • Release


See Also