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

[Script] LazyLoot

1540323626

Edited 1540476793
Robin
API Scripter
LazyLoot Discord: Atheos#1095 Github:&nbsp; <a href="https://github.com/RobinKuiper/Roll20APIScripts" rel="nofollow">https://github.com/RobinKuiper/Roll20APIScripts</a> Reddit:&nbsp; <a href="https://www.reddit.com/user/robinkuiper/" rel="nofollow">https://www.reddit.com/user/robinkuiper/</a> Patreon:&nbsp; <a href="https://patreon.com/robinkuiper" rel="nofollow">https://patreon.com/robinkuiper</a> Paypal.me:&nbsp; <a href="https://www.paypal.me/robinkuiper" rel="nofollow">https://www.paypal.me/robinkuiper</a> Add your loot tables to LazyLoot, and whenever you want to give out the loot, press the button. Your players can take the loot from it and add it to there inventory (5e OGL) automatically. Create Create your loot tables with a nice menu... &nbsp; Give ...And give it to your players. &nbsp; &nbsp; &nbsp; Config Command &nbsp;- The command used for this script. Auto Inventory &nbsp;- Add the taken items automatically to the characters inventory, configuration need. Save Handout &nbsp;- Save the taken items to a players handout. Sheet Config The configuration here is defaulted for the 5eOGL character sheet. Inventory Attr. Name &nbsp;- The name of the repeating attribute. Field - Name &nbsp;- Item name field for the repeating attribute. Field - Weight &nbsp;- Item weight field for the repeating attribute. Field - Quantity &nbsp;- Item quantity field for the repeating attribute. Field - Description &nbsp;- Item description field for the repeating attribute. Commands !loot &nbsp;- Shows the menu. !loot config &nbsp;- Shows the config menu. Changelog v0.1.2 Multisheet support Bugfixes v0.1.1 Save treasure to handout. More config options. Styling changes. Bugfixes
1540326657
Gen Kitty
Forum Champion
Just a reminder of of the External Links section of our Code of Conduct:&nbsp; You may use Discord in conjunction with your games. You may place the link on your game details page or on a post to your game details forum or in a private message to someone . You may not place the link on your LFG Listing or in a post to your LFG Listing Discussion forum or in a post to the community forums .&nbsp; (Underlining what is pertinent in this situation.)
I realize that your scripts are 5e-centric, but it would be cool if there was an option such that when the players "take" an item it gets put into a single handout so that players could take for party loot.&nbsp; I really like the idea of this script so that I wouldn't have to keep reading off loot lists.
1540336514
Robin
API Scripter
Brusana said: I realize that your scripts are 5e-centric, but it would be cool if there was an option such that when the players "take" an item it gets put into a single handout so that players could take for party loot.&nbsp; I really like the idea of this script so that I wouldn't have to keep reading off loot lists. Yeh, I think I will make a more universal update for this soon.
This is incredible. Thank you so much for making this. This is one of the features that FG has (Parcels) that I really wished I could get on here. Now I can. I hope you do end up making a more universal version of this. It would be a great tool for almost any RPG I can think of.
1540378735
Robin
API Scripter
Update 0.1.1 Save taken treasure to handout. Config options. Styling changes. Bugfixes. <a href="https://github.com/RobinKuiper/Roll20APIScripts/tree/master/LazyLoot" rel="nofollow">https://github.com/RobinKuiper/Roll20APIScripts/tree/master/LazyLoot</a>
Related to the above, Shaped Sheet functionality would be great.
1540453399
Robin
API Scripter
Gozer the Gozerian said: Related to the above, Shaped Sheet functionality would be great. Ye, at the moment it is possible to add items to a handout, insteed of the players inventory, so it can work for every system. Not sure if I add the auto add to inventory functionality for more systems.
1540454183
GiGs
Pro
Sheet Author
API Scripter
You could have a config setting for repeating inventory fieldset name, and the attribute names of relevant subfields (weight, name, quantity, etc). And in your routine, if the name isn't set (or is set to N/A or some similar null value), skip that field. That way you could have it work for any character sheet that has an inventory fieldset, without having to tailor it for specific sheets.
1540471161
Robin
API Scripter
G G said: You could have a config setting for repeating inventory fieldset name, and the attribute names of relevant subfields (weight, name, quantity, etc). And in your routine, if the name isn't set (or is set to N/A or some similar null value), skip that field. That way you could have it work for any character sheet that has an inventory fieldset, without having to tailor it for specific sheets. hm, that's a good idea indeed, haven't thought of that. Will implement this for the next version.
1540476690
Robin
API Scripter
Update 0.1.2 Multiple sheets supported now (needs configuration for different sheet than 5eOGL). Bugfix. <a href="https://github.com/RobinKuiper/Roll20APIScripts/tree/master/LazyLoot" rel="nofollow">https://github.com/RobinKuiper/Roll20APIScripts/tree/master/LazyLoot</a>
1540488038
GiGs
Pro
Sheet Author
API Scripter
Excellent!
1540490057
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Sweet!
Looks good - thanks for offering multiple sheet support.&nbsp; I'm going to have to fiddle with it a bit to see if I can get it to work with the Shaped sheet.&nbsp; The problem is, he's got the inventory divided into different categories, so I don't think there's just one variable for the inventory name.&nbsp; But I'll play around with it.&nbsp; Thanks again!
1540535091
Loren the GM
Pro
Marketplace Creator
Robin, Thanks for this! Super useful, and love that loot tables can be imported/exported. A question as to future development: this could be very useful as a store type inventory system. As an option, would it be possible to assign a monetary value to an item, and have it subtract that amount from a player's inventory if they click buy? Perhaps that is beyond the scope of what you intend, but thought I'd ask!
1540537074

Edited 1540537108
Robin
API Scripter
Thanks for the replies guys. Gozer the Gozerian said: Looks good - thanks for offering multiple sheet support.&nbsp; I'm going to have to fiddle with it a bit to see if I can get it to work with the Shaped sheet.&nbsp; The problem is, he's got the inventory divided into different categories, so I don't think there's just one variable for the inventory name.&nbsp; But I'll play around with it.&nbsp; Thanks again! Not tested, but I think it's best for shaped to use: Inventory Attr. Name: &nbsp; equipment Field - Name: &nbsp; name Field - Weight: &nbsp; weight Field - Quantity: &nbsp; uses Field - Description&nbsp;- content
Great script, and getting better with each update. Are you able to just set those fields to variables that the user can change, just like the experience field in your lazyexperience script?
1540540882
Robin
API Scripter
There is a config menu for the sheet settings, you can set them there. Or is that not what you meant?
That is what I intended to say, even if i did not actually phrase it correctly.
I just found the sheet config section (I had auto-inventory turned off). I set the name, weight, quantity, description to the correct settings for the sheet I'm using (pathfinder community sheet); but on the sheet, inventory is noted as "Equipment". When I try to change the inventory attr name, it just reloads the sheet config menu and doesn't change anything. (it does keep the changes to name, weight, quantity and description fields.) Also, when using the give treasure and going over to a test account who has access to all of the characters (editing and controlling abilities for the token and sheet in question), and he tries to take any of the loot, I get a "You don't have any characters." message. I have tried this with the chat "As:" drop-down set to the player (and the message shows to the gm chat) as well as with the drop-down set to the characters (and shows up in the test player's chat window).
1540559793
Robin
API Scripter
Ken P. said: When I try to change the inventory attr name, it just reloads the sheet config menu and doesn't change anything. (it does keep the changes to name, weight, quantity and description fields.) Your right indeed, there is a bug in there. I will update this as soon as possible in my github repo. For now you can change line 480 in the code to: repeating_name: make.button(config.sheet_repeating_attr_name, command + ' config sheet sheet_repeating_attr_name|?{Attribute Name|'+config.sheet_repeating_attr_name+'}', styles.button + styles.float.right), Ken P. said: Also, when using the give treasure and going over to a test account who has access to all of the characters (editing and controlling abilities for the token and sheet in question), and he tries to take any of the loot, I get a "You don't have any characters." message. I have tried this with the chat "As:" drop-down set to the player (and the message shows to the gm chat) as well as with the drop-down set to the characters (and shows up in the test player's chat window). This is strange, do you mind adding me as a co-gm for a sec, to do some tests?
Just wanted to stop by and give my compliments. Great script! Would love full shaped support if anyone has figured that out yet - but the handount version is great as well. I really love the ability to import loot tables from a json file.
Has any attempted to make this work with the Shaped 5e sheet?
I would like to know as well.