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

Calendar Script (can it be made player semi accessible?)

Normal 0 21 false false false DA X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabel - Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} Hey guys!   I've been using Kirsty's calendar script ( Link ) for some months now and I’ve been wondering. Would it be possible to "alter" it, so not only the GM is able to progress the day? Sometimes it would be nice to get a few things off my back and even thought it seems insignificant, day tracking would be nice to outsource. I already contacted Kirsty, but she is rather busy at the moment so I fear it could take a while for her to take a look at it. Also, I have been discussing the “Log Day” function in the script with some fellow GM’s, and that function is just pure gold. L likewise, it would be as awesome if this function were made available to players. That way the players would get to take their own notes, with timestamps and all! I know this might be a lot of work and I do not wish to be a burden to anyone. I merely saw an opportunity to make an already excellent script even better! =D
1590649419

Edited 1590649626
I played around with this script. I am not sure any changes are needed. The log function creates a handout. You can set that handout to be visible to players in their journals.  It should still update the same handout without that interfering. Was there something more specific you wanted? It might help other api scripters know what you need and how hard the changes might be?
1. For players to be able to use the "Progress Day" function 2. For players to be able to use the "Log Day" function. I know that players can be given acces to the journal. The problem is that they can't use the "Log Day" function, which automaticly setup day and time for the log entry.
1590765829

Edited 1590765839
I guess its not something that is easily done.. Oh well. Too bad =/
1590765949

Edited 1590765968
DXWarlock
Sheet Author
API Scripter
For a hacky 'absolute least work to do' you COULD just replace line 64 if(playerIsGM(msg.playerid)){ with if(){ That would allow them to use all commands, but just tell them the commands you want them to know. With a bit more work you could shuffle around the commands inside and outside of that 'isGM' for who gets what.
1590766807
GiGs
Pro
Sheet Author
API Scripter
Does that empty if statement work? I'd have done: if(true){
1590767322

Edited 1590767362
DXWarlock
Sheet Author
API Scripter
True that is better. I've never had a problem with lazy bad practice if() before, using it to test if my actual if statement isn't working :P But GiGs is way better.
DXWarlock said: For a hacky 'absolute least work to do' you COULD just replace line 64 if(playerIsGM(msg.playerid)){ with if(){ That would allow them to use all commands, but just tell them the commands you want them to know. With a bit more work you could shuffle around the commands inside and outside of that 'isGM' for who gets what. I tried but i got an error  SyntaxError: Unexpected token ')'
1590768418

Edited 1590768527
I just tried if(true){ It still won't work for players. It seems that just gives the players the ability to bring it up on the GM's chat
1590768597
DXWarlock
Sheet Author
API Scripter
Hmm I guess I didn't dig far enough into what it sends to chat to see it whispers GM, sorry about that I glanced at the commands only. Lemme take a look.
DXWarlock said: Hmm I guess I didn't dig far enough into what it sends to chat to see it whispers GM, sorry about that I glanced at the commands only. Lemme take a look. Normal 0 21 false false false DA X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabel - Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} No need to apologise mate. You're helping me and I’m very grateful
1590769063
DXWarlock
Sheet Author
API Scripter
I guess since already working on sending the messages to all, will move the chat features you want them to have to a non-gm one.  Which ones do you want them to have access to?
1590769150

Edited 1590769319
DXWarlock said: I guess since already working on sending the messages to all, will move the chat features you want them to have to a non-gm one.  Which ones do you want them to have access to? I would love for them to have access to the "Log Day"  and "Advance The Date" features While maintaining the feature where the "Log Day" includes the date in the log
1590771190

Edited 1590771495
DXWarlock
Sheet Author
API Scripter
This SHOULD do it: <a href="https://gist.github.com/dxwarlock/406fd178d7ff22f07174679e75f47910" rel="nofollow">https://gist.github.com/dxwarlock/406fd178d7ff22f07174679e75f47910</a> When a player does !cal it will give them this menu: You will need to set the handout for Event Log to players able to see it yourself if you already have one. But that should be it, I think. Edit: Be sure to test it before gametime. I tested it thoroughly with one test player, and I'm not familiar with the whole script itself. Plus, I coded the changes, its possible it has bugs :D
DXWarlock said: This SHOULD do it: <a href="https://gist.github.com/dxwarlock/406fd178d7ff22f07174679e75f47910" rel="nofollow">https://gist.github.com/dxwarlock/406fd178d7ff22f07174679e75f47910</a> When a player does !cal it will give them this menu: You will need to set the handout for Event Log to players able to see it yourself if you already have one. But that should be it, I think. Normal 0 21 false false false DA X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabel - Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} Dude... You are beyond awesome! You have my gratitude and we will raise a glass of beer in your name next time we play! All hail DXWarlock!
1590771652
DXWarlock
Sheet Author
API Scripter
No problem! It's definitely an on lunch break bodge job, but I think it will work OK for the purpose. Just give it a run before game day to make sure.
DXWarlock said: No problem! It's definitely an on lunch break bodge job, but I think it will work OK for the purpose. Just give it a run before game day to make sure. Normal 0 21 false false false DA X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabel - Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} I just did and it works as just as i wanted it to. Again many thanks for your help and time =D