setTokenMBL: Difference between revisions
Jump to navigation
Jump to search
m (Added description; fleshed out the rest of the page) |
m (Added missing description of the shapeArray parameter) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
|trusted=true | |trusted=true | ||
|version=1.12 | |version=1.12 | ||
|description= | |description=Stores a shape that acts as MBL onto a token for use by the AI pathing algorithm. | ||
|usage= | |usage= | ||
Line 13: | Line 13: | ||
'''Parameters''' | '''Parameters''' | ||
{{param| | {{param|shapeArray|A [[JSON Array]] of [[JSON Object|JSON objects]], one of the latter for each MBL shape.}} | ||
{{param|id|OPTIONAL: The token to add the BML to. Defaults to [[Current Token]].}} | {{param|id|OPTIONAL: The token to add the BML to. Defaults to [[Current Token]].}} | ||
Latest revision as of 23:59, 5 June 2023
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
setTokenMBL() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.12
Stores a shape that acts as MBL onto a token for use by the AI pathing algorithm.
Usage
setTokenMBL(shapeArray, id)
Parameters
shapeArray
- A JSON Array of JSON objects, one of the latter for each MBL shape.id
- OPTIONAL: The token to add the BML to. Defaults to Current Token.
For a description of the parameters, see drawMBL().