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

[Script Request] Unique Colors for a Token

I think I mentioned this to Aaron in another thread but it seems to get more traction when it has its own forum. I know many of use Aaron's Random Naming script to take a "Goblin" token and make it a "Goblin 1" and it works great, but if the text is greater than 1 cube people step on name plates.. and then the whole purpose is lost.

Example:



Do you know what other tokens don't step on?? The Colors.

Then we don't need to give the names away at all at, well most of the time.






I think using the Color icons would be way better as it wouldn't impact the amount of space needed, not sure how hard it would be to script but if a token is dropped with the same name as another token on the board assign it a unique color, repeat.

Obviously only so many colors so you'd have to figure out how to adapt to having more creatures than colors by maybe appending a 1 to the end and then go back to the color wheel again, repeat.

If Aaron isn't sleeping again tonight, he'll have something for me in the morning. :)



April 21 (10 years ago)
Gen Kitty
Forum Champion
I had to modify my macros for the 13th Age game I'm in; the GM would use the 'Every token named Bandit, but distinguished by numbers on colored dots' naming schema, instead of @{target|Foe|token_name} I now do ?{Target?|} and type in manually 'red 1' or 'green 3'.
April 21 (10 years ago)
Would probably be better to make a suggestion post to get greater control over token name/bar locations.
April 21 (10 years ago)
The Aaron
Pro
API Scripter


Defaults to a rainbow of dots, but you can click them off and on in whatever order you like.

With Dots turned on, it converts the token number to a representation based on the Dots you have configured:


Since it is converting to a radix based on the number of selected statuses, the pattern of dots is always unique:


Use whatever symbols you like:


GitHub: https://github.com/shdwjk/Roll20API/blob/master/To...
@Aaron, Awesome, I love that you just modified the the other script. I shall go play.

@HoneyBadger I thought about that but I didn't know how well that would really work with the real estate already on the map.
April 21 (10 years ago)
Gen Kitty
Forum Champion
Typo; should be 'displays', not 'displayed' in your --help

(I'm helping!)
April 21 (10 years ago)

Edited April 21 (10 years ago)
Ziechael
Forum Champion
Sheet Author
API Scripter

GenKitty said:

Typo; should be 'displays', not 'displayed' in your --help

(I'm helping!)

However to see that text you had to run the !tnn command which 'displayed' the help you are now reading to see that it should/could be displays ;)
April 21 (10 years ago)
The Aaron
Pro
API Scripter

GenKitty said:

Typo; should be 'displays', not 'displayed' in your --help

(I'm helping!)

Hahahaha! See, I was going to say what Z did, but yeah... I'll fix that! =D
Busy work day, didn't get a ton of testing in but what I did was a smashing success.. Thanks AARON! :) Does exactly what I need it to do. :)
April 21 (10 years ago)
The Aaron
Pro
API Scripter
Cool. =D I was considering something similar with different colors and sizes of auras. Might be neat effect.
Yeah, that would be slick!
April 22 (10 years ago)
The Aaron
Pro
API Scripter
Tonight I need to sleep though... =D
Well deserved!!!