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

Need Help with using Macro to Update Handout Permissions

Hello All, I'm working on making a macro that gives players achievements. I want to make it a token macro that makes it so that when I give them an achievement they get a link in the chat window to it and it becomes visible in their journal. I'm stumped how to update player permissions without opening the handout for each achievement each time and updating it manually. I know there should be a way to do it, but I'm not that good with macros yet and was hoping for some help. A condensed version of what I have so far is: /w @{selected|token_name} ?{Which Achievement?|Achievement1,[Achievement1]|Achievement2,[Achievement2]} With handouts named Achievement1 and Achievement2. How would I make it so that when I assign a player Achievement1 they would get access to it in their journal if they didn't have it before?
1546179830
GiGs
Pro
Sheet Author
API Scripter
You cant do that directly with a macro, you need an API script to alter permissions. You are a Pro user so it can be done.
Anyone with advice on how to do that? I haven't played with API's much other than a little copy/paste from forums.
1546185907
GiGs
Pro
Sheet Author
API Scripter
I dont have time to show you right now, but if no one replies in a day or so feel free to bump the thread and I'll post a solution.