Make notes of what you need to track in the town here.
Selling
The following items are available for purchase.
// This dataviewjs code grabs a random item(s) from the folder below. You can remove this if that's not useful. It's an example of what's possible. // 1. grab all pages in the folderlet pages = dv.pages('"3-Mechanics/Items"').values;// 2. shufflefor (let i = pages.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [pages[i], pages[j]] = [pages[j], pages[i]];}// 3. take the first X where (0, X) should be the number of items to returnlet pick = pages.slice(0, 1);// 4. render table of clickable links + Genderdv.table( ["Random Item", "cost", "weight"], pick.map(p => [ dv.fileLink(p.file.path), // clickable note link p.cost ?? "ā", // frontmatter field (falls back to āāā if missing) p.weight ?? "ā" // frontmatter field (falls back to āāā if missing) ]));