Leeched with HTTrack Website Copier - Open Source offline browser
MapTool Documentation
ⓘ
Roll Options
count
code
count
dialog
dialog5
e
expanded
for
foreach
frame
frame5
g
gm
gmtt
gt
h
hidden
hide
if
macro
overlay
r
result
s
self
selftt
st
switch
t
token
tooltip
u
unformatted
w
while
whisper
Other bits
Dice Expressions
Fog of War
Forms tutorial
Guide to Initiative Events
Guide to onTokenMove
HP and Health Bars
Image Token
Introduction to Dialogs and Frames
Introduction to JSON Datatypes
Introduction to Lights and Sights
Introduction to Macro Branching
Introduction to Macro Loops
Introduction to Properties
Introduction to Tokens
JSON Array
Library Token
RESTful Functions Overview
String List
String Property List
Trusted Macro
Events
onCampaignLoad
onChangeSelection
onInitiativeChange
onInitiativeChangeRequest
onMouseOverEvent
onMultipleTokensMove
onTokenMove
Special Variables
bar.name
init.current
init.denyChange
init.round
macro.args
macro.catchAbort
macro.catchAssert
macro.return
roll.count
roll.result
state.name
token.gm_name
token.halo
token.init
token.initHold
token.label
token.name
token.visible
tokens.denyMove
tokens.moveCount
Categories
Audio Functions
Bar Functions
Dialog Functions
Dice Functions
Distance Functions
Draw Functions
Events
Experimentals
Find Functions
FoWs
Frame Functions
Hero Lab Functions
Impersonation Functions
Initiative Functions
JSON Functions
JSON Path Functions
Light Functions
Log Functions
Logical Functions
Loop and Recursion limitss
Map Functions
Mathematical Functions
MBL Functions
Metamacro Functions
Miscellaneous Functions
Overlay Functions
Permission Functions
Property Functions
RESTful Functions
Sight Functions
Special Variables
Speech Functions
State Functions
String Functions
String List Functions
String Property List Functions
Table Functions
Token Functions
Token Library Functions
User Defined Functions
VBL Functions
Functions
A
abort
abs
absolutevalue
add
addAllNPCsToInitiative
addAllPCsToInitiative
addAllToInitiative
addTableEntry
addToInitiative
arg
argCount
assert
average
B
band
bor
bnot
bxor
bar.name
base64.decode
base64.encode
bitwiseand
bitwisenot
bitwiseor
bitwisexor
bringDrawingToFront
bringToFront
broadcast
C
canSeeToken
capitalize
ceil
ceiling
clearLights
clearRolls
clearTable
closeDialog
closeFrame
closeOverlay
concat
copyMap
copyTable
copyToken
countStrProp
countsuccess
createMacro
createTable
createToken
createTokens
currentToken
D
d
decode
defineAudioSource
defineFunction
deleteStrProp
deleteTable
deleteTableEntry
deselectTokens
dice
divide
drawHillVBL
drawMBL
drawPitVBL
drawVBL
drop
dropHighest
E
editStream
encode
endsWith
eq
equals
eqs
equalsStrict
eraseHillVBL
eraseMBL
erasePitVBL
eraseVBL
eval
evalMacro
execFunction
execLink
execMacro
explode
explodingSuccess
exportData
exposeAllOwnedArea
exposeFogAtWaypoints
exposeFOW
exposePCOnlyArea
F
f
findDrawings
findToken
flipTokenIso
flipTokenX
flipTokenY
floor
formatStrProp
fudge
G
ge
getAllMapDisplayNames
getAllMapNames
getAllowsURIAccess
getAllPlayerNames
getAllPropertyNames
getAlwaysVisible
getAssetProperties
getBar
getBarImage
getCurrentInitiative
getCurrentMapName
getDefinedFunctions
getDialogProperties
getDistance
getDistanceToXY
getDrawingEraser
getDrawingInfo
getDrawingLayer
getDrawingOpacity
getDrawingProperties
getEnvironmentVariable
getExposedTokenNames
getExposedTokens
getFillColor
getFindCount
getFrameProperties
getGMName
getGMNotes
getGroup
getGroupCount
getGroupEnd
getGroupStart
getHalo
getHillVBL
getImage
getImpersonated
getImpersonatedName
getInfo
getInitiative
getInitiativeHold
getInitiativeList
getInitiativeRound
getInitiativeToken
getLabel
getLastPath
getLayer
getLibProperty
getLibPropertyNames
getLights
getLineCap
getMacroButtonIndex
getMacroCommand
getMacroContext
getMacroGroup
getMacroIndexes
getMacroLocation
getMacroName
getMacroProps
getMacros
getMapDisplayName
getMapName
getMapVisible
getMatchingLibProperties
getMatchingProperties
getMaxLoopIterations
getMaxRecursionDepth
getMBL
getMoveCount
getName
getNewRolls
getNotes
getNPC
getNPCNames
getPitVBL
getOverlayProperties
getOwned
getOwnedNames
getOwnerOnlyVisible
getOwners
getPC
getPCNames
getPenColor
getPenWidth
getPlayerName
getProperty
getPropertyDefault
getPropertyNames
getPropertyNamesRaw
getPropertyType
getRawProperty
getRecursionDepth
getRolled
getSelected
getSelectedNames
getSightType
getSize
getSoundProperties
getSpeech
getSpeechNames
getState
getStateImage
getStrProp
getTableAccess
getTableEntry
getTableImage
getTableNames
getTablePickOnce
getTablePicksLeft
getTableRoll
getTableVisible
getTerrainModifier
getTextLabelStatus
getTokenDrawOrder
getTokenFacing
getTokenGMName
getTokenHalo
getTokenHandout
getTokenHeight
getTokenImage
getTokenLabel
getTokenLayoutProps
getTokenMap
getTokenNames
getTokenNativeHeight
getTokenNativeWidth
getTokenOpacity
getTokenPortrait
getTokenRotation
getTokens
getTokens/ja
getTokenShape
getTokenStates
getTokenVBL
getTokenWidth
getTokenX
getTokenY
getVBL
getViewArea
getViewCenter
getVisible
getVisibleMapDisplayNames
getVisibleMapNames
getVisibleTokenNames
getVisibleTokens
getWithState
getWithStateNames
getZoom
goto
gt
H
hasImpersonated
hasLightSource
hasMacro
hasProperty
hasSight
hero
herobody
herolab.getImage
herolab.getInfo
herolab.getMasterName
herolab.getStatBlock
herolab.hasChanged
herolab.isMinion
herolab.refresh
herolab.XPath
herostun
hex
hideTextLabels
html.dialog
html.dialog5
html.frame
html.frame5
html.overlay
hypot
hypotenuse
I
if
impersonate
indexKeyStrProp
indexOf
indexValueStrProp
initiativeSize
input
isBarVisible
isDialogVisible
isExternalMacroAccessAllowed
isFlippedIso
isFlippedX
isFlippedY
isFrameVisible
isFunctionDefined
isGM
isNPC
isNumber
isOverlayRegistered
isOverlayVisible
isOwnedByAll
isOwner
isPC
isPropertyEmpty
isSnapToGrid
isTrusted
isVisible
J
js.createNS
js.eval
js.evalNS
js.evalURI
js.removeNS
js:MapTool.chat
js:MapTool.clientInfo
js:MapTool.tokens
js:MTScript
js:Token
json.*
json.append
json.contains
json.count
json.difference
json.equals
json.evaluate
json.fields
json.fromList
json.fromStrProp
json.get
json.indent
json.indexOf
json.intersection
json.isEmpty
json.isSubset
json.length
json.merge
json.objrolls
json.remove
json.removeAll
json.removeFirst
json.reverse
json.rolls
json.set
json.shuffle
json.sort
json.toList
json.toStrProp
json.toVars
json.type
json.union
json.unique
json.path.add
json.path.delete
json.path.put
json.path.read
json.path.set
K
keep
keepLowest
L
lastIndexOf
le
length
library.getContents
library.getInfo
library.listAddOnLibraries
library.listTokenLibraries
listAppend
listContains
listCount
listDelete
listFind
listFormat
listGet
listInsert
listReplace
listSort
ln
log10
log.*
log.debug
log.error
log.fatal
log.info
log.getLoggers
log.info
log.setLevel
log.trace
log.warn
lower
lt
M
macroLink
macroLinkText
markdownToHTML
matches
math.*
math.abs
math.acos
math.acos_r
math.arrayMax
math.arrayMean
math.arrayMedian
math.arrayMin
math.arrayProduct
math.arraySum
math.asin
math.asin_r
math.atan
math.atan_r
math.atan2
math.atan2_r
math.cbrt
math.ceil
math.cos
math.cos_r
math.cuberoot
math.e
math.floor
math.hypot
math.hypotenuse
math.isEven
math.isInt
math.isOdd
math.listMax
math.listMean
math.listMedian
math.listMin
math.listProduct
math.listSum
math.log
math.log10
math.max
math.min
math.mod
math.pi
math.pow
math.sin
math.sin_r
math.sqrt
math.squareroot
math.tan
math.tan_r
math.toDegrees
math.toRadians
max
mean
median
min
movedOverDrawing
movedOverPoints
movedOverToken
moveToken
moveTokenFromMap
moveTokenToMap
multiply
N
ne
nextInitiative
not
number
O
oldFunction
openTest
or
P
pow
power
playClip
player.getConnectedPlayers
player.getInfo
player.getName
player.getPlayers
playStream
prevInitiative
Q
R
refreshDrawing
removeAllFromInitiative
removeAllNPCsFromInitiative
removeAllPCsFromInitiative
removeFromInitiative
removeMacro
removeToken
removeTokenFacing
replace
reroll
rerollOnce
resetFrame
resetProperty
resetSize
resetTablePicks
REST.delete
REST.get
REST.patch
REST.post
REST.put
restoreFoW
return
roll
rollAddWithLower
rollAddWithUpper
rollSubWithLower
rollSubWithUpper
rollWithLower
rollWithUpper
round
runJsFunction
S
selectTokens
sendDrawingToBack
sendToBack
set
setAllowsURIAccess
setAllStates
setAlwaysVisible
setBar
setBarVisible
setCurrentInitiative
setCurrentMap
setDrawingEraser
setDrawingLayer
setDrawingName
setDrawingOpacity
setDrawingProperties
setFillColor
setGMName
setGMNotes
setHalo
setHasSight
setInitiative
setInitiativeHold
setInitiativeRound
setLabel
setLayer
setLibProperty
setLight
setLineCap
setMacroCommand
setMacroProps
setMapDisplayName
setMapName
setMapVisible
setMaxLoopIterations
setMaxRecursionDepth
setName
setNotes
setNPC
setOverlayVisible
setOwnedByAll
setOwner
setOwnerOnlyVisible
setPC
setPenColor
setPenWidth
setProperty
setPropertyType
setSightType
setSize
setSpeech
setState
setStrProp
setTableAccess
setTableEntry
setTableImage
setTablePickOnce
setTableRoll
setTableVisible
setTerrainModifier
setTokenDrawOrder
setTokenFacing
setTokenGMName
setTokenHandout
setTokenHeight
setTokenImage
setTokenLabel
setTokenLayoutProps
setTokenOpacity
setTokenPortrait
setTokenShape
setTokenSnapToGrid
setTokenVBL
setTokenWidth
setViewArea
setVisible
setZoom
showTextLabels
sortInitiative
sqr
sqrt
square
squareroot
sr4
sr4e
startsWith
stopSound
strEquals
strfind
strformat
string
stringToList
strPropFromVars
substring
subtract
success
sum
switchToken
T
table
tbl
tableImage
tblImage
toggleFoW
transferVBL
trim
U
u
ubiquity
upper
V
varsFromStrProp
W
X
Y
Z