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

Change token name when dropped to vtt?

I think i will need a script to make this work and not sure if that makes it possible. What i would like to do is when i drag a NPC token to the board from the journal list is to have it add a number to the name i.e. Goblin gets dropped and the first token gets renamed Goblin 1 the second Goblin 2 and so on. So if i could get a heads up on if that could even work that would be great.
1413677122

Edited 1413678687
The Aaron
Roll20 Production Team
API Scripter
Totally doable. Here, I wrote it for you. =D Instructions: Name your Token with %%NUMBERED%% where you want the number. You probably want to have Show nameplate? checked. Note that this the Token, not the Character. Only the Token's name is considered by this script.: Add that token to a character representing your monster as normal. You can use represents and all without issues. Note that the Character can be named anything you want. Drag in as many tokens as you like. Tokens will be numbered based on the highest numbered token with the same imgsrc on the same page. That means each page has its own monotonically increasing number sequence. I can see some great enhancements for this in the future, but this should get you started! Happy Gaming!! GIST: <a href="https://gist.github.com/shdwjk/6968e757c2bf9a7371f" rel="nofollow">https://gist.github.com/shdwjk/6968e757c2bf9a7371f</a>...
1413678651
Gen Kitty
Forum Champion
Aaron, you're scary. Brilliant, but scary :&gt; Also awesome.
1413678675
The Aaron
Roll20 Production Team
API Scripter
Thx! =D
WOW! you...... i can't even compose my self to type right. You are the best! Thank you so much!
1413685445

Edited 1413685456
The Aaron
Roll20 Production Team
API Scripter
No worries. =D Let me know if you need anything else! We aim to please here at Aaron Industries ! Heheheheheh
1413779701
The Aaron
Roll20 Production Team
API Scripter
I made an update to this script in the API thread: <a href="https://app.roll20.net/forum/post/1273423/script-t" rel="nofollow">https://app.roll20.net/forum/post/1273423/script-t</a>... It's now more robust and supports tokens with more than one image (Rollable Table Tokens), numbers in the name (like R2D2), and copy/pasting to make incremental named tokens. Happy Gaming!