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

UsePower Script by The Aaron Questions

March 28 (4 days ago)

Edited March 31 (1 day ago)

Hi,

I run a long-standing 4e campaign and I just dug this script off of GitHub and it does what it says it should do wonderfully. I do have a couple questions for the author or anyone knowledgeable in scripting. I'm not much of a coder and more of a fiddler, so writing chunks is generally beyond me. I simply wish to know if some of these scenarios are in fact, possible. https://github.com/shdwjk/Roll20API/blob/master/UsePower/UsePower.js

1: !add-use-power --foo --encounter 1 doesn't seem to work, though the rest do. This is not a huge deal because I can delete the macro and make a new one at the bottom of the list and it will work. I am wondering if it is possible to figure out why specifically, ability 1 is clogging it up?

2: I run several groups over the week in the same game, would it be possible to configure the script to give short and long rests to specific groups instead of globally? Perhaps by selecting the tokens of those that should get the rest?

3: In the forum post https://app.roll20.net/forum/post/1143437/script-usepower-use-tracking-and-flagging-of-encounter-and-daily-powers/?pagenum=1 there was talk about implementing powers that have a certain number of uses before they are depleted. Did anything come of that and I missed it on my search? An example, Channel Divinity powers often have two uses per encounter. Is it possible in this day and age for that to be accounted for? As I am writing this, I realized I -could- add the macro twice, mark them 1 and 2 respectively and do it like that. 

4: Some powers are reliable, how difficult would it be to add a command to uncheck a power once it has finally been expelled?


I realize this is a very old script and probably the last thing most are thinking about implementing, so thank you to anyone chiming in and adding helpful thoughts and ideas. Also thank you The Aaron for creating this, its great!  

March 31 (1 day ago)
The Aaron
Roll20 Production Team
API Scripter

Wow!  That's a blast from the past!  10 years ago and still working.

I will have to refresh my memory on that script (it has been a while since I thought about it...) but none of your requests sound particularly difficult.  I'll have to see what I can do.

Thanks, I was able to solve number 2 and detailed it on this thread. https://app.roll20.net/forum/post/12286399/snippet-for-short-rest-please-assist