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

K-scaffold v2.7.0 Released

1742412317

Edited 1742412337
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
The K-scaffold Sheet Framework continues to be updated and gain superpowers to make coding Roll20 character sheets easier and more straightforward. The big news with v2.7.0 is that repeating section data is now even easier to work with. K-scaffold v2.7.0 Bug Fixes nested tabs now work properly (Thanks @riernar ) Extraneous logs from the k-scaffold have been removed New Features k.verboseMode variable added. Allows enabling the verbose dev logging mode (aka what the scaffold used to do). Added the ability to call and iterate repeating section information in a nested manner directly on the attributes argument (e.g. attributes.repeating_weapons[0].name instead of attributes[`repeating_weapons_${id}_name`] This means that doing something like iterating over all the items in an equipment section to get the total weight is now as easy as: const calcWeight = function({trigger,attributes,sections,casc}){ const coinWeight = attributes.gold + attributes.silver * 0.5 + attributes.copper * 0.25; return attributes.repeating_inventory.reduce((total,row) => { const itemWeight = row.quantity * row.weight; return total + row.carried * itemWeight; },coinWeight); }; k.registerFuncs({calcWeight});
1742468121

Edited 1742468131
GiGs
Pro
Sheet Author
API Scripter
That's handy. I've often found it hard to get a direct link to K-Scaffold.
1742490442
Gold
Forum Champion
Seems good. Cool project, Scott, nice of you to build and share