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

Create Popup Rule Reference

Hi as a mentor I was hoping to create my own popup windows - with rules inside them. I know I can send stuff to the chat window, but I feel this is hardly the place to dump loads of text as it is a shared area. How can I create a popup window in roll 20 as the window object is not available within the roll20 sandboxed system ?
1410678880
The Aaron
Roll20 Production Team
API Scripter
You can't. For one thing, the sandbox is running on a completely different server and not in a browser. The best you can probably do is generate & share journal pages, or dump formatted data to the chat.
1410705730
Paul S.
Sheet Author
API Scripter
As Aaron said, the best solution is to have Journal entries with rule cheatsheets.
Cheer that's what I thought, I've got some ideas to try out that might do the job though, I was thinking maybe I can manipulate a handout dynamically through a script or even create text on the play area. For example it would be great if I could type in !RULES SWIMMING and it changed a handout named RULES to show the rules about swimming and then hit the show players button, that would be great. It would also work very well with spells. I am looking at ways of speeding up game play in my game. I am finding the overhead on a virtual table top is much higher for a GM than on a real table top. On a real table top I can hand someone the PHB and say look it up, which would keep them busy and stop them getting bored while they pour over the book. I want to give my players the best RPG experience possible.
1410722771
The Aaron
Roll20 Production Team
API Scripter
You can definitely do those things. =D Good luck!
Your players should have a copy of the rules of they intend to play. Then they can look that up themselves.
1410763836
The Aaron
Roll20 Production Team
API Scripter
At $45 a pop, even my gaming group of 40-50 year olds don't spring for their own PHB. I can only imagine that many gamers in here are in collage and living on ramen and mac'n'cheese. Ideally everyone should have the rules, but I wouldn't kick players out if they didn't buy them, particularly if I'm the one that wants to play (13th Age looks fun, if I could just get my players interested... =D Asking them to cough up $50 for the rule book though will be an automatic no. ).
I would expect that most players will buy the players hand book, but they certainly won't buy the DMs guide and the monster manual. When I was a kid I couldn't afford to buy a large number of the rule books for AD&D 2 I used to dream of owning MM2 and the Fiend Folio, luckily my friends had them. The other thing is I need to have the rules in front of me quickly so I can read them carefully.
I got my copy of the 5e phb for D&D for $30 from Amazon.
1410789166
The Aaron
Roll20 Production Team
API Scripter
Congratulations. I got mine for $29.97 on Amazon and received it the day I got back from GenCon. Now that we've established we both have levels in shopping, I'm sure that $15.03 difference has completely invalidated the point of my post above.
$30 is pretty easy to save if you want to buy a book.
1410794024
The Aaron
Roll20 Production Team
API Scripter
Right. For you that's true. For me that's true. That isn't true for everyone and isn't a reason to discount the way that some people either want or need to play.
1410798664

Edited 1410798803
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
There is fake (or real) baby savings hack to get reduced prices on Amazon... perfectly legal... just saying. On the other topic... I usually span reference stuff in the chat, because it is normally asked in conversation first... and by then eveyone wants to see it.
Um I don't care how much you can buy a book for I just wanted to create a popup reference system, within roll20 which is what I intend to do for my games anyway. If I was WOTC I might get upset if someone produced a super script with all the rules of D&D in it and published it on the internet however. The thing is roll20 is an a different way of playing RPGs and we should try to embrace ways of making it better, which is what posts in this forum should be about!
1410814525
The Aaron
Roll20 Production Team
API Scripter
+1
1410832873

Edited 1410832942
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
//Check for Picket Pocket Handout var PickPocket = findObjs({ _type: "handout", name: "PickPocket" }).length var PickPocketExist = true; if(PickPocket !== 0){ PickPocketExist = true; }else{ PickPocketExist = false; }; if(PickPocketExist == false){ createObj("handout", { name: "PickPocket", }); }; PickPocket = findObjs({ _type: "handout", name: "PickPocket" }) PickPocket[0].set("notes", pickpocketingSuccessText) There part of a really old script I used to make a pick pocket results on the fly... Same sort of thing is what you want...
1410842694
The Aaron
Roll20 Production Team
API Scripter
You can cut out the extra findObjs() call by storing the results and then pushing a newly created one into the resultant array if the length is 0. Just continuing my quest to stomp out findObjs() calls! :)