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

Automatically Numbered NPC Names When Multples of Them?

Is there a setting or easy way to auto rename (number) additional NPC's of the same type?  For example if I had 10 Duergars on the board, it would be helpful to have Duergar 1, Duergar 2, etc. etc.  The point being since there is no clear targeting system for players, they keep having to describe which one they are attacking.  So far the only option we've found is they have to ping everytime which NPC they are attacking to clearly identify it.  When we were on Fantasy Grounds Unity it would auto number multiples for us whenever I dragged and dropped them on the board.  Any options like this?  If not is there a place I can file a feature request?
The are mod that do so, but you need a pro account for them.
1691854570
GiGs
Pro
Sheet Author
API Scripter
Without a pro account, you'll need to rename them manually.
Thanks, I just upgraded to Pro.  Which mod should I use?
1691860433

Edited 1691860557
vÍnce
Pro
Sheet Author
Welcom to Pro Chuck Fu TokenNameNumber should work.&nbsp; There may be others... not sure. How to install Mods: <a href="https://help.roll20.net/hc/en-us/articles/360046238454-How-to-Install-API-Scripts-via-1-Click-Install" rel="nofollow">https://help.roll20.net/hc/en-us/articles/360046238454-How-to-Install-API-Scripts-via-1-Click-Install</a>
1691860475
GiGs
Pro
Sheet Author
API Scripter
TheAaron's script, TokenNamenumber is I think the one you want. You'll also want to install TokenMod, not for this issue but because its generally so useful and should be the first script anyone should install.
1691860600
vÍnce
Pro
Sheet Author
+1 on TokenMod
1691863826
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
GiGs said: You'll also want to install TokenMod, not for this issue but because its generally so useful and should be the first script anyone should install. So much agreement.
Thanks.&nbsp; I've installed all the recommended mods above.&nbsp; Clearly its responding to !tnn --help and I can toggle settings in chat (via the script buttons).&nbsp; What's confusing is this comment in the notes: " Token names need to have the special word&nbsp; %%NUMBERED%% &nbsp;somewhere in them."&nbsp; via&nbsp; <a href="https://wiki.roll20.net/Script:Token_Name_Number" rel="nofollow">https://wiki.roll20.net/Script:Token_Name_Number</a>. &nbsp; Is this a new param I need to add somewhere via the TokenMod or do I have to rename all of the Compendium NPC names with the&nbsp; %%NUMBERED%%&nbsp; value as part of the string?&nbsp; Pretty sure I'm close to getting this running, just lacking some context.&nbsp; Happy to also become a contributor to the Wiki to help drive clarity for others.&nbsp; Thanks for everyones input so far.
1691868678

Edited 1691868728
vÍnce
Pro
Sheet Author
Rename the original token "Foo %%NUMBERED%%" and tnn will add a number to any copy and pasted tokens based on that original token. ie "Foo 99"
1691869725

Edited 1691873226
GiGs
Pro
Sheet Author
API Scripter
It operates by replacing a specified word with the number. In this case, the word is %%NUMBERED%%. Any token with that in the name will be numbered. This does mean you have to edit a characters default token once, changing the name, but then any time you add that token to the map - including any number of that token - it will get a new number.
Got it!&nbsp; Works perfect many thanks for the quick responses and assistance.
1691884113
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This is where token mod comes into play. Put: !token-mod --set name|"@{selected|token_name} %%NUMBERED%%" --set defaulttoken into a macro. Pull any token onto the VTT and run that macro. Any token you pull out subsequently will be set for numbering.