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 .
×

Updated list of API for 1e Sheet

earmarkaudiology-png/Money-Changer This contribution was made on Mar 31 Mar 31 earmarkaudiology-png/Sage-Advice This contribution was made on Mar 31 Mar 31 earmarkaudiology-png/1eTurnTracker This contribution was made on Mar 28 Mar 28 earmarkaudiology-png/Tailor-Shop This contribution was made on Mar 26 Mar 26 earmarkaudiology-png/Leather-Shop This contribution was made on Mar 26 Mar 26 earmarkaudiology-png/Trading-Post This contribution was made on Mar 25 Mar 25 earmarkaudiology-png/Monster-Loot- This contribution was made on Mar 24 Mar 24 earmarkaudiology-png/Jeweler-1e This contribution was made on Mar 23 Mar 23 earmarkaudiology-png/Retainers-1e- This contribution was made on Mar 23 Mar 23 earmarkaudiology-png/BlackSmith-1e This contribution was made on Mar 23 Mar 23 earmarkaudiology-png/Timekeeper This contribution was made on Mar 20 Mar 20 earmarkaudiology-png/Roll20-campaign-XP-ma... JavaScript This contribution was made on Mar 19 Mar 19
Hi Rotto, I tried Trading post. It's very slick and works really well, thank you. :)
Rotto, in Trading-post, some types of armor are not showing for the players handbook store. Plate mail is one that is missing. I tried changing "tier": "rare" to "tier": "uncommon" lke ring mail which does show, but no luck. 
I'll check it
There are now 388 items (non-magical) that have been added to trading post. This is same list for character sheet mod.&nbsp; <a href="https://github.com/earmarkaudiology-png/Trading-Post/blob/main/shop" rel="nofollow">https://github.com/earmarkaudiology-png/Trading-Post/blob/main/shop</a>
ROTTO said: There are now 388 items (non-magical) that have been added to trading post. This is same list for character sheet mod.&nbsp; <a href="https://github.com/earmarkaudiology-png/Trading-Post/blob/main/shop" rel="nofollow">https://github.com/earmarkaudiology-png/Trading-Post/blob/main/shop</a> Thank you. I should fire you a few bucks for your efforts, I appreciate it.
Thanks&nbsp;
ROTTO said: Thanks&nbsp; Also, where does the "New Store" information get stored? I don't think I've worked with an API before that does anything put cause actions to be taken. Storing information is a new process to me.
The Trading post stores new info inside Roll20’s built-in persistent script memory, called state. API is not just doing one-time actions it can also remember information for later. When a new store is created, the script adds that store to its saved store list (state[SCRIPT].stores[store.id] = store), and later parts of the script read from that same saved list when opening or restocking stores
1776558631

Edited 1776559209
ROTTO said: The Trading post stores new info inside Roll20’s built-in persistent script memory, called state. API is not just doing one-time actions it can also remember information for later. When a new store is created, the script adds that store to its saved store list (state[SCRIPT].stores[store.id] = store), and later parts of the script read from that same saved list when opening or restocking stores Fascinating, I've not heard of state before, thanks. Another question on TradingPost (should I post this as a separate post?). I've commented out a number of the Unearthed Arcana entries in const ITEMS. I've come across a few things that make me wonder, For example, what is this? You can see I've commented out&nbsp;full_plate_x. There are a number of items here in similar duplicates, also&nbsp; { "key": "full_plate", "name": "Full Plate Armor", "category": "armor", "price": "4000 gp", "shopTypes": [ "baseline", "smith", "outfitter" ], "tags": [ "armor", "metal" ], "tier": "rare", "weight": 70.0, "ua": true }, /* { "key": "full_plate_x", "name": "Full Plate", "category": "armor", "price": "4000 gp", "shopTypes": [ "smith", "outfitter", "baseline" ], "tags": [ "armor" ], "tier": "common", "weight": 70.0, "ua": false }, */ There are also a number of things with "_exact" prefixed that have zero cost. Sometimes they are exact duplicates of a preceding item except cost is 0 gp. For example: { "key": "studded_leather_exact", "name": "Studded (Leather)", "category": "armor", "price": "0 gp", "shopTypes": [ "smith", "outfitter", "baseline" ], "tags": [ "armor", "leather" ], "tier": "common", "weight": 200.0, "ua": false }, and: { "key": "studded", "name": "Studded", "category": "armor", "price": "15 gp", "shopTypes": [ "smith", "outfitter", "baseline" ], "tags": [ "armor", "leather" ], "tier": "common", "weight": 200.0, "ua": false }, The above seems to lead to the following with studded armour (and splinted) listed twice. In the case of Studded, one for 15 gp and one for 0.: Wondering what those are about? I've commented out a lot of these with 0 gp for price.
I need to remove the duplicates. I think the issue has been sources books don't agree too.&nbsp;
1776560290

Edited 1776560954
Further when I add plate, the money is taken off without any issue, but Plate appears as "Gear" instead of "armor". I've done this a second time and both times armor appears as gear. For a different time I bought plate the second time. It does not show anywhere but still contributes to weight, i.e. 900 gp instead of 450. I bought padded and some other armour (splint, I think) and in both cases they were marked as armor. Here's one screenshot: EDIT : Found the issue. Under const SHEET_SYNC_BY_ITEM_KEY, {"sheetItem":"Plate","type":"0","cost":"400","weight":"450","armorType":"1","armor":{"ac":"3","base":"3","bulk":"bulky"}}, Type should be 2, instead of 0.
ok thanks...I'll adjust
fixed the duplicates and forced the armor tag instead of gear <a href="https://github.com/earmarkaudiology-png/Trading-Post/blob/main/shop" rel="nofollow">https://github.com/earmarkaudiology-png/Trading-Post/blob/main/shop</a>
1776570033

Edited 1776570186
ROTTO said: fixed the duplicates and forced the armor tag instead of gear <a href="https://github.com/earmarkaudiology-png/Trading-Post/blob/main/shop" rel="nofollow">https://github.com/earmarkaudiology-png/Trading-Post/blob/main/shop</a> Studded was another one as well.&nbsp; I commented out a fair number of Unearth Arcana stuff :) in various areas. Some areas I did not check. I don't want my players to use your wonderful script unless I initiate it, myself as DM. Reason? They are dumb as ditch dirt with computers, LOL. So I've trimmed things down to the following ("East: Valley, Umo, etc" is the PHB): Below the line are the few other corrections I documented, which includes some of the corrections you made, above. Plate mail and studded had to be changed from "type":"0" to "type":"2". With 0, it is added as "gear" instead of "armor" "plate":{"sheetItem":"Plate","type":"2","cost":"400","weight":"450","armorType":"1","armor":{"ac":"3","base":"3","bulk":"bulky"}}, "studded":{"sheetItem":"Studded","type":"2","cost":"15","weight":"200","armorType":"1","armor":{"ac":"7","base":"7","bulk":"fairly"}}, Garlic is listed as magic for some reason. "type":"3" is magic, I changed it to: "garlic":{"sheetItem":"Garlic, bud","type":"0","cost":"0.05","weight":"0"}, Changed pickaxe to 5 gp from 20 gp (other picks are commented out) { &nbsp; &nbsp; "key": "pickaxe", &nbsp; &nbsp; "name": "Pickaxe", &nbsp; &nbsp; "category": "misc", &nbsp; &nbsp; "price": "5 gp", &nbsp; &nbsp; "shopTypes": [ &nbsp; &nbsp; &nbsp; "trading_post", &nbsp; &nbsp; &nbsp; "outfitter", &nbsp; &nbsp; &nbsp; "baseline" &nbsp; &nbsp; ], &nbsp; &nbsp; "tags": [ &nbsp; &nbsp; &nbsp; "misc" &nbsp; &nbsp; ], &nbsp; &nbsp; "tier": "common", &nbsp; &nbsp; "weight": 200.0, &nbsp; &nbsp; "ua": false &nbsp; }, Following changed from 1.5 to 500 as per PHB "barding_plate":{"sheetItem":"Barding, plate","type":"4","cost":"500","weight":"0"},"bit_bridle":{"sheetItem":"Bit and Bridle","type":"4","cost":"1.5","weight":"0"}, and { &nbsp; &nbsp; "key": "barding_plate", &nbsp; &nbsp; "name": "Barding, plate", &nbsp; &nbsp; "category": "tack", &nbsp; &nbsp; "price": "500 gp", &nbsp; &nbsp; "shopTypes": [ &nbsp; &nbsp; &nbsp; "baseline", &nbsp; &nbsp; &nbsp; "trading_post", &nbsp; &nbsp; &nbsp; "stable", &nbsp; &nbsp; &nbsp; "outfitter", &nbsp; &nbsp; &nbsp; "smith" &nbsp; &nbsp; ], &nbsp; &nbsp; "tags": [ &nbsp; &nbsp; &nbsp; "animal", &nbsp; &nbsp; &nbsp; "armor", &nbsp; &nbsp; &nbsp; "metal" &nbsp; &nbsp; ], &nbsp; &nbsp; "tier": "rare", &nbsp; &nbsp; "weight": 0.0, &nbsp; &nbsp; "ua": false &nbsp; },
lol. Dumb as dirt.&nbsp;