Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Request]Token Placement Script, possibly

Ok so here's what I want more than anything ever. One of my biggest banes to GMing is the time it takes to set up a random encounter after I roll it.  Imagine this scenario. Group is travelling through ridiculously hostile environment, so I roll a d20 for every two hours of travel time, triggering an encounter on 16-20.  Me: */r 1d20* *gets 17* "Ok, now..." Me: */r 2d8* *gets 11* Table: 11: 1d4 Lions, 1d4 Tigers, 1d4 Bears Me: */r 1d4* */r 1d4* .......... You get the idea. The dice rolling is no big deal, because for that I generally use physical dice. But when I get 2 lions, 3 tigers, and 4 bears, I then have to go into my enemies folder, drag and drop those from there where I want them. That takes time, and I don't like it. TL;DR Script that places X tokens in the vicinity of where I click. Maybe something that has commands like: !newtoken 3 bear (something about target) I dunno. If someone has any pointers on how I can manage this, that'd be awesome. I don't know this programming language, but I'm willing to learn.
1479499610
The Aaron
Pro
API Scripter
There is an existing script that can likely do this called King's Summoning Script.  It's older and has some eccentricities, but it should let you at least place a bunch of tokens near another token.  You'd have to run it # of time you need tokens for, but that's pretty easy to do.
1479595065
Ziechael
Forum Champion
Sheet Author
API Scripter
The Aaron said: There is an existing script that can likely do this called King's Summoning Script.  It's older and has some eccentricities, but it should let you at least place a bunch of tokens near another token.  You'd have to run it # of time you need tokens for, but that's pretty easy to do. The script does allow multiple summons with one command :)
1479653760
The Aaron
Pro
API Scripter
Even better!
1479665316
Ziechael
Forum Champion
Sheet Author
API Scripter
I was pleasantly surprised to find that it is quite a robust script when I first started using it: Usage: 1. Select token you want the monster to appear next to. 2. In chat, type "!summon (name of monster) (number to summon)" without brackets or quotation marks. 3. By default the monster will take up a 5x5 ft square (medium or small creature). To summon larger creatures add a letter to the end of the message: F= Fine, D = Diminutive, T= Tiny, L = large, H = Huge, G = Gargantuan, C = Colossal, cust = customised size (this tag must be followed by two numbers, see examples). 4. You can also summon a torch that will give 40 ft of vision with 20 ft of dim light (torch must be in the name). NB. The name of the monster must be in a journal entry under "Characters" and the character image must be the token image you wish to use (marketplace images do not work). If that character has an HP and AC attribute it will automatically allocate them to the red and blue token bar respectively. This API works well in conjunction with the Monster Importer (see below) which I have only tweaked and cannot claim credit for. Examples: 1. !summon torch 2. !summon eagle 3. !summon eagle 2 4. !summon eagle 1d3 5. !summon eagle 1d3+1 6. !summon cave troll 1d3+1 H 7. !summon flaming sphere cust 140 140 NB. When making a custom size, every 70 = 1 square.
We'll have to try that out.