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

Monster loot Query

I'm not sure if this has been asked before , I couldn't find a post. There is a script called MonsterLoot&nbsp; <a href="https://github.com/blawson69/MonsterLoot" rel="nofollow">https://github.com/blawson69/MonsterLoot</a> I love it it's made games run much quicker as I've always had trouble deciding what loot is dropped . The issue I'm having is, recently most of my players like to roll manual dice over cam and this script takes the players investigation from the character sheet and auto rolls that. I've tried looking for a way to contact the creator but I may just be blind and missing a way. I was wondering if anyone would know looking at the code is there a way to enter a number for the investigation roll rather than it auto making a roll. If I've explained that badly I do apologise.
1648295779

Edited 1648296114
Oosh
Sheet Author
API Scripter
See if this does what you want - I've never used the script so not 100% sure if it's what you're looking for. Make sure you copy the script from the RAW paste data right down the bottom - click in the frame and hit ctrl-A to select all, and paste it into a new API script (disable your main MonsterLoot first!). Sometimes the prettified main pastebin window seems to screw with apostrophes/backticks a little. It adds a "Preroll" option to the advantage/disadvantage dialog when you click the skill roll button - just enter your raw d20 value into the second query, it'll still hook into the function to add the skill mod from the character sheet, so don't add that on manually. Selecting "preroll" will also disable advantage/disadvantage, since presumably your players will be doing that manually and inputting the result after taking adv/dis into account. Let me know if it doesn't work, or isn't what you want. I commented out the last line I modified - using the --reset flag clears all tokens of their looted status. I couldn't see how to do this with the script, though I didn't really spend any time looking. If you ever need to reset the looted status of all tokens, just uncomment the modification on line 913 (remove the // at the start), and the --reset command will do that. Modded Lines: 109 / 119 - Add preroll variable, assign it if found in the command line 176 - Add nested preroll query to skill roll dialog 214 - Add preroll variable as extra parameter to skillRoll function 591 - Change skillRoll function to use prerolled d20 value if present, otherwise fall back to default behaviour (COMMENTED OUT, NOT FUNCTIONAL) 913 - Change the --reset command to clear the looted status of all tokens
1648300645

Edited 1648301106
sorry for the late reply unfortunately the link doesn't seem to want to open. Im using chrome do you know if that is the issue ? so i cant access pastebin altogether.
1648301130

Edited 1648301509
Oosh
Sheet Author
API Scripter
Hmmm, it's just a regular old pastebin link. Does this:&nbsp; <a href="http://pastebin.com/cRTSkMvx" rel="nofollow">http://pastebin.com/cRTSkMvx</a> work any better? edit - oh, I'll throw it on something else then. It's too long for the Roll20 forums edit2 - try github instead. I don't really like putting other peoples scripts in my own repo, so I won't leave it there too long
its perfect thank you :) i shall create an NPC in your honour ;)