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 - Token Bar Removal

1429120445

Edited 1429120499
Hello! I would like to request knowledge or creation of a script that can delete the tab information on a singular Bar (in this case just bar 1). The reason being, I have scripts in place, GroupInitiative and TokenNameNumber and I want to be able to drag the information from a Mobs sheet to have multiples of said mob without having to go through each of the individual tokens to remove the linked HP, thus having their own, allowing for battle to take place more smoothly. If you have any idea how this could be done it would be a tremendous help, I am new to API so I hope you guys can help! Cheers
1429121229
The Aaron
Pro
API Scripter
Sure thing! However, I think what you really need is to see this wiki page on how to setup tokens as Mooks: <a href="https://wiki.roll20.net/Linking_Tokens_to_Journals" rel="nofollow">https://wiki.roll20.net/Linking_Tokens_to_Journals</a> It sounds like you have them setup like characters, which would mean they all share the same hit points pool. What you really want is for them to have hit points that individually count down.
1429121398
The Aaron
Pro
API Scripter
You can remove the bar links with TokenMod: <a href="https://app.roll20.net/forum/post/1257490/script-t" rel="nofollow">https://app.roll20.net/forum/post/1257490/script-t</a>... The command would be: !token-mod --set bar1_link| Note that this will only work on the selected token(s), any other tokens dragged in from the journal will retail that link until you've taken the link out and re-added that token as the representiative token on the character.
This pretty much fixes my problem aye, for random HP generation of mooks do you just assign them as you place them down or do you just leave them all with the same starting HP? Thank you for the fast reply btw.
1429122807

Edited 1429122816
The Aaron
Pro
API Scripter
No problem. =D I have just used a static valuee in the past, but more recently I've been using this script I wrote: <a href="https://github.com/shdwjk/Roll20API/blob/master/Mo" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/Mo</a>... There are two DnD5e importers that people have written that have their own auto-roll functionality built in, so if you're using those you should be getting this behavior already.