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

Drunk API

Dear Roll20 Comrades, I've downloaded the drunk API in the hopes of finding an easy way to run tavern drinking contests that pop up from time to time. 1 - is this the right API for this purpose? 2 - how do I build a macro to implement this API?  Thank you kindly for your input and expertise. Sincerely, Ian
1594402587

Edited 1594402609
I haven't used the Drunk script before, but it looks like it's just for tracking inebriation and adding status markers.&nbsp; <a href="https://github.com/Roll20/roll20-api-scripts/blob/master/Drunk/README.md" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/blob/master/Drunk/README.md</a> A macro could be as simple as the commands listed in the README file: !drunk shows @{selected|token_name} ! drunk add&nbsp; @{selected|token_name} ! drunk remove&nbsp; @{selected|token_name} Or you could create a query macro: !drunk ?{Drinking action|Show Current Drunkeness,shows|More Drunk,add|Less Drunk,remove}&nbsp; @{selected|token_name} Or you could create a whole chat menu: /w gm &amp;{template:default} {{desc=Drunk Menu [Show Current&nbsp; Drunkeness ]( ! drunk shows&nbsp; @{selected|token_name} ) [ More Drunk ]( ! drunk add&nbsp; @{selected|token_name}) [Less Drunk](! drunk remove&nbsp; @{selected|token_name})}}
Thank you very much for your time and help Jarren, although now that I'm looking at this API, I'm not sure how truly useful it is in fact.
1594511682
Victor B.
Pro
Sheet Author
API Scripter
This is an API you need or were you wanting tips on writing an API drunk.&nbsp; I was going to offer a lot of advice on the latter.&nbsp;&nbsp;
Hi Victor, I have PCs would love to get into drinking/betting contests with NPCs and we manually run through the exercise by rolling dice with increasing levels of DC, etc. I was hoping there was an API that could apply the drinking contest rules more automatically/conveniently to a group of PCs/NPCs per each drinking round until you have the last character standing.&nbsp; What do you think? Possible, any tricks up your sleeve? Thank you, Ian