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

Sequentially numbering identical NPCs that are already on the tabletop

I'm currently DMing LMoP and our adventurers have reached Cragmaw Castle. Given the large number of goblins there, it would be handy to assign a different number to each of them. I know how to do that manually and how to use Token Name Number to generate sequentially numbered new goblin tokens, but is there a way to number the ones that are already on the TT? (I have a pro subscription so that's not a limitation.)
1755912973
timmaugh
Forum Champion
API Scripter
Yes, with the Metascript Toolbox and TokenMod. Install those scripts, select your tokens, and then run a command like this: !forselected token-mod --set name|Goblin{&i} That will name the selected tokens starting at 0 ("i" is a counter based at 0)... so: Goblin0 Goblin1 Goblin2 ...etc. If you don't want to start at 0, you can include an offset in the {&i} tag: {&i+1} That would base it at 1 (so the first name would be "Goblin1"). I'm not sure if TokenNameNumber reads the tokens already on the page to generate a number that is one greater than the highest, but if there is any possibility of collision, you can use the offset to get to a higher number than any number of Goblins you'd drag out to the VTT. For instance: {&i+100}
1755915213

Edited 1755915365
Andrew R.
Pro
Sheet Author
Another way would be to use the MetaScriptToolbox method above to add the TokenNameNumber string %%NUMBERED%%  to the token’s name, and then run  !tnn --renumber
1755936617

Edited 1755937002
Only just u/g to Jumpgate, but if your game is JG, then the contect menu gives you that ability for a selection of tokens, R Click the selection, Advanced Transform, Enumerate Unfortunately this is not ideal for groups scattered over the desktop as each group is numbered from 1, so if you have 6 goblins in one band and 5 in another, band #1 will read Gobbo1 thru Gobbo6 and band#2 will read Gobbo1 thru Gobbo5 (you do know the classic orc song "Gobbo for Tea" right?)
I solve this by taking one of the numbered tokens and changing the number to be one or two higher than the number of tokens. My players have learned in-game to not trust the numbers as being an indicator of how many they are actually facing. Simon G. said: Only just u/g to Jumpgate, but if your game is JG, then the contect menu gives you that ability for a selection of tokens, R Click the selection, Advanced Transform, Enumerate Unfortunately this is not ideal for groups scattered over the desktop as each group is numbered from 1, so if you have 6 goblins in one band and 5 in another, band #1 will read Gobbo1 thru Gobbo6 and band#2 will read Gobbo1 thru Gobbo5 (you do know the classic orc song "Gobbo for Tea" right?)
Oginme said: I solve this by taking one of the numbered tokens and changing the number to be one or two higher than the number of tokens. My players have learned in-game to not trust the numbers as being an indicator of how many they are actually facing. Simon G. said: Only just u/g to Jumpgate, but if your game is JG, then the contect menu gives you that ability for a selection of tokens, R Click the selection, Advanced Transform, Enumerate Unfortunately this is not ideal for groups scattered over the desktop as each group is numbered from 1, so if you have 6 goblins in one band and 5 in another, band #1 will read Gobbo1 thru Gobbo6 and band#2 will read Gobbo1 thru Gobbo5 (you do know the classic orc song "Gobbo for Tea" right?) Always keep 'em guessing.  I like this context menu option but it doesn't appear you can select something and then CTRL select something else and have both selected, which would be VERY handy for purchased content such as mentioned in the OP
On Roll20's VTT, Using SHFT-select acts the same way as CTRL-select does in most other applications.  You can select multiple tokens by either using a window to select a group or holding down the shift key and add them one at a time. Usually with large groups of varied tokens I'll window-select all of the tokens (or CNTRL-A to select everything on that layer) then SHFT-select individual items or tokens to remove them from the set. This is easier in a Jumpgate game because each token is highlighted with a blue box as it's selected. Simon G. said: Always keep 'em guessing.  I like this context menu option but it doesn't appear you can select something and then CTRL select something else and have both selected, which would be VERY handy for purchased content such as mentioned in the OP
1755961292
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Simon G. said: Always keep 'em guessing.  I like this context menu option but it doesn't appear you can select something and then CTRL select something else and have both selected, which would be VERY handy for purchased content such as mentioned in the OP HI Simon! Use shift for multiple selection. You will have to click on each additional token instead of drawing a selection rectangle around them, but multiple selection uses shift.
Thanks both!  I tried shift, tried alt and tried ctrl to no avail, but that was because I was trying the selection rectangle. Epic fail.  Thankfully I use an API for numbering when dragging new tokens to desktop, but this is a very nice feature.  I may just be a convert to JG ; ))
Thanks for the great advice. Since I'm already using Jumpgate, this turned out to be much easier than I thought it would.
1757205008
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Simon G. said: I may just be a convert to JG ; )) At this point, I would find it very difficult to go back. Th ere's just so many cool things on it.