forked from Roll20/roll20-api-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.json
21 lines (21 loc) · 2.46 KB
/
script.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"name": "Duplicate a Character and Token",
"script": "DupCharToken.js",
"version": "1.05",
"previousversions": ["1.0", "1.01", "1.02", "1.03", "1.04"],
"description": "This script will duplicate a character sheet and tokens giving the new characters and tokens an identifying number and linking each new token to it's own individual new character sheet. This script is useful for those who want to create multiple copies of monsters because they prefer multiple character sheets to linking tokens as Mooks. Using an argument of 'clean' causes it to clean up (delete) numbered tokens and characters such as it creates.\r\r## Commands:\r\r```!DupCharToken <Number of tokens to create (defaults to 1)> <Start numbering from (defaults to 1)>```\r\r```!DupCharToken clean```\r\rYou can add the following text to a macro\r```!DupCharToken ?{How many Duplicates|1} ?{Starting Number|1}```\r\r## Examples:\r\rIf you select a token named 'Skel' that is linked to a character named 'Skeleton', and in the chat window enter```!DupCharToken 5```\r\rIt will make 5 new characters, identical to the original, named 'Skeleton 1' through 'Skeleton 5', and make 5 new tokens, identical to the original and stacked in the exact same location, named 'Skel 1' through 'Skel 5'. Each token will be linked to its corresponding character sheet in the exact same manor as the originals were linked.\r\rIf later on you select any token named 'Skel' or 'Skel (number)' and enter```!DupCharToken clean```\rIt will delete all tokens where the name is 'Skel (any number)' and all characters named 'Skeleton (any number)'. \rThe original token and character (without a number) will not be deleted.\r\r\r## Known bugs/issues:\r If the avatar image of the character is not in a user library (i.e: it's a marketplace image or from the Monster Manual, or the like), due to limits placed upon the API, it can't set an avatar image. You will have to do that yourself (or copy the image to the library).\r\r For more information please see [CharDupToken script wiki page](https://wiki.roll20.net/Script:DupCharToken)",
"authors": "Chris Dickey",
"roll20userid": "633707",
"useroptions": [],
"dependencies": [],
"modifies": {
"character": "read, write",
"attribute": "read, write",
"ability": "read, write",
"graphic": "read, write",
"token.bar1_link": "read, write",
"token.bar2_link": "read, write",
"token.bar3_link": "read, write"
},
"conflicts": []
}