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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Tokens with randomly generated attributes.

1412706638

Edited 1412706741
I make characters for each monster I'm running, so I can have their attacks and everything predone before the game starts. I also prefer rolling randomly for each monster's hit points rather than using the average. There is a site called donjon that has an initiative tracker that allows dice rolls to be put in instead of set numbers. I'd love for there to be a way to do this in Roll20 when spawning a new token of a character. The hope is maybe check a box to say that a character is non-unique. An Orc for example, I could check this, set the HP attribute to 2d8+2 and each time I make a new token of the Orc, it rolls the 2d8+2 for the HP and assignes it to that token.
1412709710
The Aaron
Roll20 Production Team
API Scripter
I have a script that rolls monster hit dice individually. I wrote it quite a long time ago, but I think it could be updated to do what you want, possibly by adding an attribute to the creatures that need to have unique hit dice. Here is the current script: GIST: <a href="https://gist.github.com/shdwjk/7377de58100f4e813432" rel="nofollow">https://gist.github.com/shdwjk/7377de58100f4e813432</a>
1412789211

Edited 1412789298
So, I'm totally in the dark when it comes to reading this kind of stuff. So I have a couple questions. -Using your script, what would the attribute be named? hp? or HitDice? reading through it seems like it'd be one of these two. Or do I create both fields, and for the HitDice attribute type in say, 2d8+4 and then leave hp blank? -Also, do I need the double brackets around the HitDice to indicate it's a dice roll?
Ok, I think I figured this out, I made the HitDice attribute and it's generating it now. Thanks, this is really great.
1412793487
The Aaron
Roll20 Production Team
API Scripter
No prob! PM me if you'd like it to do something more and I'll see what I can do. =D
Hello The Aaron - I just saw this conversation and I really love this idea. If I may ask - Where do I place this script in order for it to work on a token in my journal?
Barry, <a href="https://wiki.roll20.net/API:Use_Guide" rel="nofollow">https://wiki.roll20.net/API:Use_Guide</a>
Hey, this one is really handy! Is there a way to make it only roll the attribute if holding down the Ctrl key or something along those lines? I don't want it rolling health for every token I drag in.
1426094499

Edited 1426095096
It will only roll health if the field it puts the HP into is set to "None" in the pulldown menu. So lets take my Orc for example. I drag a token for the Orc out, open the options for it and set Bar 1 to Speed from the pull down menu, then set Bar 2 to None, then set Bar 3 to AC. Then I save that as the default token for my Orc. Now any time I pull out a token, it'll randomly roll the HP and have the Speed and AC already set up in those fields. Now for a reoccurring Named Orc, I obviously don't want him to have random hit point. So lets call him, Krug. I'll make a copy of my Orc, rename it Krug then save it. Then drag out a Token for Krug and open the token options. Like before, I set Bar 1 to Speed and Bar 3 to AC, but this time instead of leaving Bar 2 set to None, I'll set it to HP. Then like before, I save this as the default token for Krug. Now when I pull out a random Orc, it will have random Hit Points from the Script. However when I pull out Krug, he will have a set amount of hit points because Bar 2 has already been saved as something else.
hiya guys, Testing out the MonsterHD script, I took your script and change the (name: 'HitDice') to (name: 'npc_HP_hit_dice') in the script for use with the NPC Monster Sheet, but I might be missing something as its not generating HPs. Something else I need to tweak? Thanks.
Greg B. said: hiya guys, Testing out the MonsterHD script, I took your script and change the (name: 'HitDice') to (name: 'npc_HP_hit_dice') in the script for use with the NPC Monster Sheet, but I might be missing something as its not generating HPs. Something else I need to tweak? Thanks. well never mind, it looks like HP in the script is set to Bar2 which I was using for speed. Changing that around and seems that it did the job.
1550175347
[Deleted]
Pro
Marketplace Creator
Thanks for the suggestion! After 30 days, Suggestions and Ideas with fewer than 10 votes are closed and the votes are refunded to promote freshness. Your suggestion didn't build the right momentum this time, but feel free to submit it again! We find that the best suggestions describe the problem you are having, and the solution you want. You can learn more about the process of making suggestions on the Roll20 Wiki! More details can be found here .