Kurt, in my game yesterday.... my shop script cards caused and error and did not work.... the only thing that changed from my last session was that I updated my scriptcard api to the latest and greatest from the github.... I'm not sure if something in the new script that changed causing my card not to work or if I need to change my card to reflect the changes that were made.... Below is the error that roll20 showed me and below that is the code of the script card I was using.... Hopefully, It won't be to complicated to resolve on my end... !scriptcard {{ --#debug|1 --#title|?{Name of Shop?|} --#titlecardbackground|#606c9b --#leftsub|Adventurer Shop --#bodyFontSize|11px --DISPLAY IMAGE| --+|[&Image] --+|[img]<a href="https://i.pinimg.com/originals/48/e9/51/48e951aeca534599fb39d8fdc02519b6.jpg[/img]" rel="nofollow">https://i.pinimg.com/originals/48/e9/51/48e951aeca534599fb39d8fdc02519b6.jpg[/img]</a> --/| BASED ON SELECTED SETTLEMENT WILL DETERMINE WHICH TABLES TO ROLL --/Determine Settlement| --&Settlement|?{What Size Settlement?|Thorp|Hamlet|Village|Small Town|Large Town|Small City|Large City} --C[&Settlement]|Thorp:=&Population;20-80|Hamlet:=&Population;81-400|Village:=&Population;401-900|Small Town:=&Population;901-2K|Large Town:=&Population;2k-5K|Small City:=&Population;5k-12K|Large City:=&Population;12k-25K --:Population| --PopSize|[&Settlement] --=PopSize|[%1%] --?"[&Settlement]" -eq "Thorp"|&Pop;(20-80) --?"[&Settlement]" -eq "Hamlet"|&Pop;(81-400) --?"[&Settlement]" -eq "Village"|&Pop;(401-900) --?"[&Settlement]" -eq "Small Town"|&Pop;(901-2K) --?"[&Settlement]" -eq "Large Town"|&Pop;(2k-5K) --?"[&Settlement]" -eq "Small City"|&Pop;(5k-12K) --?"[&Settlement]" -eq "Large City"|&Pop;(12k-25K) --:EndPopulation| --DISCRIPTION & SETTLEMENT SIZE| --&Discription|A typical adventurer shop, usually located near monster infested areas and dungeons. They carry the standard supplies, including rations, torches, oil, sacks, useful tools and some basic weapons and armor. --+|[i][b][&Discription][/b][/i] --+Settlement|[&Settlement] [r][b]Population[/b] [&Pop][/r] --:Adventure Shop|======================================================================================================= --Goods&Services| --Buy|[&Settlement] --=Buy|[%1%] --?"[&Settlement]" -eq "Thorp"|&Buy;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]1 cp[/i], [b]Salt (1lb.)[/b] [i]2 cp[/i] --?"[&Settlement]" -eq "Hamlet"|&Buy;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]1 cp[/i], [b]Salt (1lb.)[/b] [i]2 cp[/i] --?"[&Settlement]" -eq "Village"|&Buy;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]1 cp[/i], [b]Salt (1lb.)[/b] [i]2 cp[/i] --?"[&Settlement]" -eq "Small Town"|&Buy;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]1 cp[/i], [b]Salt (1lb.)[/b] [i]2 cp[/i] --?"[&Settlement]" -eq "Large Town"|&Buy;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]1 cp[/i], [b]Salt (1lb.)[/b] [i]2 cp[/i] --?"[&Settlement]" -eq "Small City"|&Buy;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]1 cp[/i], [b]Salt (1lb.)[/b] [i]2 cp[/i] --?"[&Settlement]" -eq "Large City"|&Buy;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]1 cp[/i], [b]Salt (1lb.)[/b] [i]2 cp[/i] --:EndGoods&Services| --Sell|[&Settlement] --=Sell|[%1%] --?"[&Settlement]" -eq "Thorp"|&Sell;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]2 cp[/i], [b]Salt (1lb.)[/b] [i]5 cp[/i] --?"[&Settlement]" -eq "Hamlet"|&Sell;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]2 cp[/i], [b]Salt (1lb.)[/b] [i]5 cp[/i] --?"[&Settlement]" -eq "Village"|&Sell;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]2 cp[/i], [b]Salt (1lb.)[/b] [i]5 cp[/i] --?"[&Settlement]" -eq "Small Town"|&Sell;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]2 cp[/i], [b]Salt (1lb.)[/b] [i]5 cp[/i] --?"[&Settlement]" -eq "Large Town"|&Sell;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]2 cp[/i], [b]Salt (1lb.)[/b] [i]5 cp[/i] --?"[&Settlement]" -eq "Small City"|&Sell;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]2 cp[/i], [b]Salt (1lb.)[/b] [i]5 cp[/i] --?"[&Settlement]" -eq "Large City"|&Sell;[b]Wheat (1lb.)[/b] [i]1 cp[/i], [b]Flour (1lb.)[/b] [i]2 cp[/i], [b]Salt (1lb.)[/b] [i]5 cp[/i] --:EndGoods&Services| --Service|[&Settlement] --=Service|[%1%] --?"[&Settlement]" -eq "Thorp"|&Service;[b]Laundry[/b] [i]1 sp[/i] --?"[&Settlement]" -eq "Hamlet"|&Service;[b]Laundry[/b] [i]1 sp[/i] --?"[&Settlement]" -eq "Village"|&Service;[b]Laundry[/b] [i]1 sp[/i] --?"[&Settlement]" -eq "Small Town"|&Service;[b]Laundry[/b] [i]1 sp[/i], [b]Messenger[/b] [i]2 cp[/i] --?"[&Settlement]" -eq "Large Town"|&Service;[b]Laundry[/b] [i]1 sp[/i], [b]Messenger[/b] [i]2 cp[/i] --?"[&Settlement]" -eq "Small City"|&Service;[b]Laundry[/b] [i]1 sp[/i], [b]Messenger[/b] [i]2 cp[/i] --?"[&Settlement]" -eq "Large City"|&Service;[b]Laundry[/b] [i]1 sp[/i], [b]Messenger[/b] [i]2 cp[/i] --:EndGoods&Services| --AlwaysAvailable|[&Settlement] --=AlwaysAvailable|[%1%] --?"[&Settlement]" -eq "Thorp"|&AlwaysAvailable;[b]([=1d4])[/b] Bedrolls [b]1 gp[/b], [b]([=2d4])[/b] Blankets [b]5 sp[/b], [b]([=1d4]) doz.[/b] Candles [b]1 cp[/b], [b]([=2d4])[/b] Mess Kits [b]2 sp[/b], [b]([=3d6])[/b] Sacks [b]1 cp[/b], [b]([=4d6])[/b] Tinderbox [b]5 sp[/b], [b]([=2d4])[/b] Waterskins [b]2 sp[/b] --?"[&Settlement]" -eq "Hamlet"|&AlwaysAvailable;[b]([=1d4])[/b] Bedrolls [b]1 gp[/b], [b]([=2d4])[/b] Blankets [b]5 sp[/b], [b]([=1d4]) doz.[/b] Candles [b]1 cp[/b], [b]([=2d4])[/b] Mess Kits [b]2 sp[/b], [b]([=3d6])[/b] Sacks [b]1 cp[/b], [b]([=4d6])[/b] Tinderbox [b]5 sp[/b], [b]([=2d4])[/b] Waterskins [b]2 sp[/b] --?"[&Settlement]" -eq "Village"|&AlwaysAvailable;[b]([=1d4])[/b] Bedrolls [b]1 gp[/b], [b]([=2d4])[/b] Blankets [b]5 sp[/b], [b]([=1d4]) doz.[/b] Candles [b]1 cp[/b], [b]([=2d4])[/b] Mess Kits [b]2 sp[/b], [b]([=3d6])[/b] Sacks [b]1 cp[/b], [b]([=4d6])[/b] Tinderbox [b]5 sp[/b], [b]([=2d4])[/b] Waterskins [b]2 sp[/b] --?"[&Settlement]" -eq "Small Town"|&AlwaysAvailable;[b]([=1d4])[/b] Bedrolls [b]1 gp[/b], [b]([=2d4])[/b] Blankets [b]5 sp[/b], [b]([=1d4]) doz.[/b] Candles [b]1 cp[/b], [b]([=2d4])[/b] Mess Kits [b]2 sp[/b], [b]([=3d6])[/b] Sacks [b]1 cp[/b], [b]([=4d6])[/b] Tinderbox [b]5 sp[/b], [b]([=2d4])[/b] Waterskins [b]2 sp[/b] --?"[&Settlement]" -eq "Large Town"|&AlwaysAvailable;[b]([=1d4])[/b] Bedrolls [b]1 gp[/b], [b]([=2d4])[/b] Blankets [b]5 sp[/b], [b]([=1d4]) doz.[/b] Candles [b]1 cp[/b], [b]([=2d4])[/b] Mess Kits [b]2 sp[/b], [b]([=3d6])[/b] Sacks [b]1 cp[/b], [b]([=4d6])[/b] Tinderbox [b]5 sp[/b], [b]([=2d4])[/b] Waterskins [b]2 sp[/b] --?"[&Settlement]" -eq "Small City"|&AlwaysAvailable;[b]([=1d4])[/b] Bedrolls [b]1 gp[/b], [b]([=2d4])[/b] Blankets [b]5 sp[/b], [b]([=1d4]) doz.[/b] Candles [b]1 cp[/b], [b]([=2d4])[/b] Mess Kits [b]2 sp[/b], [b]([=3d6])[/b] Sacks [b]1 cp[/b], [b]([=4d6])[/b] Tinderbox [b]5 sp[/b], [b]([=2d4])[/b] Waterskins [b]2 sp[/b] --?"[&Settlement]" -eq "Large City"|&AlwaysAvailable;[b]([=1d4])[/b] Bedrolls [b]1 gp[/b], [b]([=2d4])[/b] Blankets [b]5 sp[/b], [b]([=1d4]) doz.[/b] Candles [b]1 cp[/b], [b]([=2d4])[/b] Mess Kits [b]2 sp[/b], [b]([=3d6])[/b] Sacks [b]1 cp[/b], [b]([=4d6])[/b] Tinderbox [b]5 sp[/b], [b]([=2d4])[/b] Waterskins [b]2 sp[/b] --:EndAlwaysAvailable| --/| SHOP OUTPUT DATA FOR BLACKSMITH. GOODS, SERVICES & ALWAYS AVAILABLE --:SHOPOUTPUT| --+|[c]💰 [b] Buy Trade Goods[/b] 💰[/c] --+|[&Buy] --+|[c]💰 [b] Sell Trade Goods[/b] 💰[/c] --+|[&Sell] --+|[c]🛎️ [b]Services[/b] 🛎️[/c] --+|[&Service] --+|[c]‼️ [b]Always Available[/b] ‼️[/c] --+|[&AlwaysAvailable] --/| BEGIN TOOLS, WEAPONS, ARMOR, GEAR SECTION --:ENUMERATE TOOL DESCRIPTIONS1|=============================================================================================== --&item1|Playing card set [b]5 sp[/b] --&item2|Cook’s utensils [b]2 gp[/b] --&item3|Leatherworker’s tools [b]5 gp[/b] --&item4|Carpenter’s tools [b]10 gp[/b] --&item5|Woodcarver’s tools [b]2 gp[/b] --&item6|Weaver’s tools[b]2 gp[/b] --&item7|Cobbler’s tools [b]8 gp[/b] --&item8|Glassblower’s tools [b]30 gp[/b] --&item9|Herbalism kit[b]8 gp[/b] --&item10|Brewer’s supplies [b]20 gp[/b] --&item11|Mason’s tools [b]10 gp[/b] --&item12|Painter’s supplies [b]10 gp[/b] --&item13|Potter’s tools [b]10 gp[/b] --&item14|Smith’s tools [b]20 gp[/b] --&item15|Calligrapher's supplies [b]10 gp[/b] --&item16|Alchemist’s supplies [b]50 gp[/b] --&item17|Cartographer’s tools [b]20 gp[/b] --&item18|Dice set[b]2 sp[/b] --&item19|Jeweler’s tools [b]25 gp[/b] --&item20|Tinker’s tools [b]50 gp[/b] --=numUniqueTypes|20 --:INITIALIZE TOOL COUNTS| --%LoopCounter|1;[$numUniqueTypes.Raw] --=count[&LoopCounter]|0 --%| --:LOOP THROUGH numRolls TO START ADDING ITEMS --=numRolls1|2 --=numRolls2|2 --=numRolls3|3 --=numRolls4|3 --=numRolls5|4 --=numRolls6|5 --=numRolls7|6 --=numRolls|0 --C[&Settlement]|Thorp:=numRolls;[$numRolls1.Raw]|Hamlet:=numRolls;[$numRolls2.Raw]|Village:=numRolls;[$numRolls3.Raw]|Small Town:=numRolls;[$numRolls4.Raw]|Large Town:=numRolls;[$numRolls5.Raw]|Small City:=numRolls;[$numRolls6.Raw]|Large City:=numRolls;[$numRolls7.Raw] --%LoopCounter|1;[$numRolls.Raw] --=R1|1d1 --=R2|1d2 --=R3|1d3 --=R4|1d4 --=R5|0 --=MatRoll1|1d7 --=MatRoll2|1d12 --=MatRoll3|1d20 --=MatRoll|0 --:NOTE - ONLY USING R1 HERE, BUT YOU COULD ADD CONDITIONALS FOR DIFFERENT ROLLS, CALLING SAME FUNCTION --C[&Settlement]|Thorp:=MatRoll;[$MatRoll1.Raw]|Hamlet:=MatRoll;[$MatRoll1.Raw]|Village:=MatRoll;[$MatRoll1.Raw]|Small Town:=MatRoll;[$MatRoll2.Raw]|Large Town:=MatRoll;[$MatRoll2.Raw]|Small City:=MatRoll;[$MatRoll3.Raw]|Large City:=MatRoll;[$MatRoll3.Raw] --C[&Settlement]|Thorp:=R5;[$R1.Raw]|Hamlet:=R5;[$R1.Raw]|Village:=R5;[$R2.Raw]|Small Town:=R5;[$R2.Raw]|Large Town:=R5;[$R2.Raw]|Small City:=R5;[$R2.Raw]|Large City:=R5;[$R2.Raw] -->AddTools|[$MatRoll.Raw];[$R5.Raw] --%| --:BUILD COMMA-SEPARATED LIST| --&displayToolString| --%LoopCounter|1;[$numUniqueTypes.Raw] --?[$count[&LoopCounter]] -gt 0|[ --&displayToolString|+ [b]([$count[&LoopCounter].Raw])[/b] [&item[&LoopCounter]], --]| --%| --:CLEANUP TRAILING COMMA IN THE LIST STRING --~stringLength|string;length;[&displayToolString] --=numCharsToKeep|[$stringLength] - 1 --~displayToolString|string;substring;1;[$numCharsToKeep];[&displayToolString] --:ENUMERATE WEAPON DESCRIPTIONS1|================================================================================================== --&item1|Club [b]1 sp[/b] --&item2|Sling [b]1 sp[/b] --&item3|Dagger [b]2 gp[/b] --&item4|Shortbow [b]25 gp[/b] --&item5|Spear [b]1 gp[/b] --&item6|Longsword [b]15 gp[/b] --&item7|Shortsword [b]10 gp[/b] --&item8|Sickle [b]1 gp[/b] --&item9|Blowgun [b]10 gp[/b] --&item10|Handaxe [b]5 gp[/b] --&item11|Longbow [b]50 gp[/b] --&item12|Maul [b]10 gp[/b] --&item13|Javelin [b]5 sp[/b] --&item14|Net [b]1 gp[/b] --&item15|Crossbow, heavy [b]50 gp[/b] --&item16|Scimitar [b]25 gp[/b] --&item17|Flail [b]10 gp[/b] --&item18|Trident [b]5 gp[/b] --&item19|War pick [b]5 gp[/b] --&item20|Glaive [b]20 gp[/b] --&item21|Whip [b]2 gp[/b] --&item22|Rapier [b]25 gp[/b] --&item23|Crossbow, hand [b]75 gp[/b] --&item24|Battleaxe [b]10 gp[/b] --&item25|Halberd [b]20 gp[/b] --&item26|Broad Sword [b]20 gp[/b] --&item27|Mace [b]5 gp[/b] --&item28|Warhammer [b]15 gp[/b] --&item29|Pike [b]5 gp[/b] --&item30|Greatclub [b]2 sp[/b] --&item31|Morningstar [b]15 gp[/b] --&item32|Bastard Sword [b]15 gp[/b] --&item33|Crossbow, Light Repeating [b]125 gp[/b] --&item34|Quarterstaff [b]2 sp[/b] --&item35|Dagger, boot-toe [b]15 gp[/b] --&item36|Greataxe [b]30 gp[/b] --&item37|Gauntlet [b]6 gp[/b] --&item38|Great Bow [b]100 gp[/b] --&item39|Lance [b]10 gp[/b] --=numUniqueTypes|39 --^INITIALIZE WEAPON COUNTS| --:INITIALIZE WEAPON COUNTS| --%LoopCounter|1;[$numUniqueTypes.Raw] --=count[&LoopCounter]|0 --%| --:LOOP THROUGH numRolls TO START ADDING ITEMS --=numRolls1|3 --=numRolls2|4 --=numRolls3|6 --=numRolls4|8 --=numRolls5|9 --=numRolls6|10 --=numRolls7|12 --=numRolls|0 --C[&Settlement]|Thorp:=numRolls;[$numRolls1.Raw]|Hamlet:=numRolls;[$numRolls2.Raw]|Village:=numRolls;[$numRolls3.Raw]|Small Town:=numRolls;[$numRolls4.Raw]|Large Town:=numRolls;[$numRolls5.Raw]|Small City:=numRolls;[$numRolls6.Raw]|Large City:=numRolls;[$numRolls7.Raw] --%LoopCounter|1;[$numRolls.Raw] --=R1|1d4 --=R2|1d6 --=R3|1d8 --=R4|1d8 --=R5|0 --=MatRoll1|1d15 --=MatRoll2|1d20 --=MatRoll3|1d39 --=MatRoll|0 --:NOTE - ONLY USING R1 HERE, BUT YOU COULD ADD CONDITIONALS FOR DIFFERENT ROLLS, CALLING SAME FUNCTION --C[&Settlement]|Thorp:=MatRoll;[$MatRoll1.Raw]|Hamlet:=MatRoll;[$MatRoll1.Raw]|Village:=MatRoll;[$MatRoll1.Raw]|Small Town:=MatRoll;[$MatRoll2.Raw]|Large Town:=MatRoll;[$MatRoll2.Raw]|Small City:=MatRoll;[$MatRoll3.Raw]|Large City:=MatRoll;[$MatRoll3.Raw] --C[&Settlement]|Thorp:=R5;[$R1.Raw]|Hamlet:=R5;[$R1.Raw]|Village:=R5;[$R2.Raw]|Small Town:=R5;[$R2.Raw]|Large Town:=R5;[$R2.Raw]|Small City:=R5;[$R2.Raw]|Large City:=R5;[$R2.Raw] -->AddWeapons|[$MatRoll.Raw];[$R5.Raw] --%| --:BUILD COMMA-SEPARATED LIST| --&displayWeaponString| --%LoopCounter|1;[$numUniqueTypes.Raw] --?[$count[&LoopCounter]] -gt 0|[ --&displayWeaponString|+ [b]([$count[&LoopCounter].Raw])[/b] [&item[&LoopCounter]], --]| --%| --:CLEANUP TRAILING COMMA IN THE LIST STRING --~stringLength|string;length;[&displayWeaponString] --=numCharsToKeep|[$stringLength] - 1 --~displayWeaponString|string;substring;1;[$numCharsToKeep];[&displayWeaponString] --:ENUMERATE AMMO DESCRIPTIONS|=================================================================================================== --&item1|Bullets, Sling Stone (20) [b]4 cp[/b] --&item2|Dart [b]5 cp[/b] each --&item3|Bolts, Heavy Crossbow single [b]8 cp[/b] --&item4|Bolts, Heavy Crossbow bundle (20) 1 [b]gp[/b] --&item5|Arrows, single [b]8 cp[/b] --&item6|Arrows, bundle (20) [b]1 gp[/b] --&item7|Bolts, Hand Crossbow single [b]8 cp[/b] --&item8|Arrows, Silvered singe [b]15 gp[/b] --&item9|Bolts, Light Crossbow single [b]8 cp[/b] --&item10|Bolts, Light Crossbow bundle (20) [b]1 gp[/b] --&item11|Arrows, Silvered bundle (10) [b]100 gp[/b] --&item12|Bolts, Hand Crossbow bundle (20) 1 [b]gp[/b] --&item13|Bolts, Light Repeating single [b]12 cp[/b] --&item14|Bolts, Light Repeating bundle (10) [b]1 gp[/b] --=numUniqueTypes|14 --^INITIALIZE AMMO COUNTS| --:INITIALIZE AMMO COUNTS| --%LoopCounter|1;[$numUniqueTypes.Raw] --=count[&LoopCounter]|0 --%| --:LOOP THROUGH numRolls TO START ADDING ITEMS --=numRolls1|3 --=numRolls2|3 --=numRolls3|4 --=numRolls4|4 --=numRolls5|5 --=numRolls6|6 --=numRolls7|7 --=numRolls|0 --C[&Settlement]|Thorp:=numRolls;[$numRolls1.Raw]|Hamlet:=numRolls;[$numRolls2.Raw]|Village:=numRolls;[$numRolls3.Raw]|Small Town:=numRolls;[$numRolls4.Raw]|Large Town:=numRolls;[$numRolls5.Raw]|Small City:=numRolls;[$numRolls6.Raw]|Large City:=numRolls;[$numRolls7.Raw] --%LoopCounter|1;[$numRolls.Raw] --=R1|1d4 --=R2|1d4 --=R3|1d4 --=R4|1d4 --=R5|0 --=MatRoll1|1d6 --=MatRoll2|1d8 --=MatRoll3|1d14 --=MatRoll|0 --:NOTE - ONLY USING R1 HERE, BUT YOU COULD ADD CONDITIONALS FOR DIFFERENT ROLLS, CALLING SAME FUNCTION --C[&Settlement]|Thorp:=MatRoll;[$MatRoll1.Raw]|Hamlet:=MatRoll;[$MatRoll1.Raw]|Village:=MatRoll;[$MatRoll1.Raw]|Small Town:=MatRoll;[$MatRoll2.Raw]|Large Town:=MatRoll;[$MatRoll2.Raw]|Small City:=MatRoll;[$MatRoll3.Raw]|Large City:=MatRoll;[$MatRoll3.Raw] --C[&Settlement]|Thorp:=R5;[$R1.Raw]|Hamlet:=R5;[$R1.Raw]|Village:=R5;[$R2.Raw]|Small Town:=R5;[$R2.Raw]|Large Town:=R5;[$R2.Raw]|Small City:=R5;[$R2.Raw]|Large City:=R5;[$R2.Raw] -->AddAmmo|[$MatRoll.Raw];[$R5.Raw] --%| --:BUILD COMMA-SEPARATED LIST| --&displayAmmoString| --%LoopCounter|1;[$numUniqueTypes.Raw] --?[$count[&LoopCounter]] -gt 0|[ --&displayAmmoString|+ [b]([$count[&LoopCounter].Raw])[/b] [&item[&LoopCounter]], --]| --%| --:CLEANUP TRAILING COMMA IN THE LIST STRING --~stringLength|string;length;[&displayAmmoString] --=numCharsToKeep|[$stringLength] - 1 --~displayAmmoString|string;substring;1;[$numCharsToKeep];[&displayAmmoString] --:ENUMERATE ARMOR DESCRIPTIONS1|================================================================================================== --&item1|Padded [b]5 gp[/b] --&item2|Leather [b]10 gp[/b] --&item3|Studded leather [b]45 gp[/b] --&item4|Hide [b]10 gp[/b] --&item5|Chain shirt [b]50 gp[/b] --&item6|Shield [b]10 gp[/b] --&item7|Ring mail [b]30 gp[/b] --&item8|Scale mail [b]50 gp[/b] --&item9|Chain mail [b]75 gp[/b] --&item10|Splint [b]200 gp[/b] --&item11|Breastplate [b]400 gp[/b] --&item12|Half plate [b]750 gp[/b] --&item13|Plate [b]1,500 gp[/b] --=numUniqueTypes|13 --^INITIALIZE ARMOR COUNTS| --:INITIALIZE ARMOR COUNTS| --%LoopCounter|1;[$numUniqueTypes.Raw] --=count[&LoopCounter]|0 --%| --:LOOP THROUGH numRolls TO START ADDING ITEMS --=numRolls1|2 --=numRolls2|4 --=numRolls3|4 --=numRolls4|6 --=numRolls5|6 --=numRolls6|8 --=numRolls7|8 --=numRolls|0 --C[&Settlement]|Thorp:=numRolls;[$numRolls1.Raw]|Hamlet:=numRolls;[$numRolls2.Raw]|Village:=numRolls;[$numRolls3.Raw]|Small Town:=numRolls;[$numRolls4.Raw]|Large Town:=numRolls;[$numRolls5.Raw]|Small City:=numRolls;[$numRolls6.Raw]|Large City:=numRolls;[$numRolls7.Raw] --%LoopCounter|1;[$numRolls.Raw] --=R1|1d4 --=R2|1d4 --=R3|1d4 --=R4|1d4 --=R5|0 --=MatRoll1|1d6 --=MatRoll2|1d9 --=MatRoll3|1d13 --=MatRoll|0 --:NOTE - ONLY USING R1 HERE, BUT YOU COULD ADD CONDITIONALS FOR DIFFERENT ROLLS, CALLING SAME FUNCTION --C[&Settlement]|Thorp:=MatRoll;[$MatRoll1.Raw]|Hamlet:=MatRoll;[$MatRoll1.Raw]|Village:=MatRoll;[$MatRoll1.Raw]|Small Town:=MatRoll;[$MatRoll2.Raw]|Large Town:=MatRoll;[$MatRoll2.Raw]|Small City:=MatRoll;[$MatRoll3.Raw]|Large City:=MatRoll;[$MatRoll3.Raw] --C[&Settlement]|Thorp:=R5;[$R1.Raw]|Hamlet:=R5;[$R1.Raw]|Village:=R5;[$R2.Raw]|Small Town:=R5;[$R2.Raw]|Large Town:=R5;[$R2.Raw]|Small City:=R5;[$R2.Raw]|Large City:=R5;[$R2.Raw] -->AddArmor|[$MatRoll.Raw];[$R5.Raw] --%| --:BUILD COMMA-SEPARATED LIST| --&displayArmorString| --%LoopCounter|1;[$numUniqueTypes.Raw] --?[$count[&LoopCounter]] -gt 0|[ --&displayArmorString|+ [b]([$count[&LoopCounter].Raw])[/b] [&item[&LoopCounter]], --]| --%| --:CLEANUP TRAILING COMMA IN THE LIST STRING --~stringLength|string;length;[&displayArmorString] --=numCharsToKeep|[$stringLength] - 1 --~displayArmorString|string;substring;1;[$numCharsToKeep];[&displayArmorString] --:ENUMERATE COMMON GEAR DESCRIPTIONS1|================================================================================================== --&item1|Fishing hook [b]1 cp[/b] --&item2|Backpack [b]2 gp[/b] --&item3|Bag of ball bearings (bag o f 1,000) [b]1 gp[/b] --&item4|Barrel [b]2 gp[/b] --&item5|Basket [b]4 sp[/b] --&item6|Healer’s kit [b]5 gp[/b] --&item7|Wooden staff [b]5 gp[/b] --&item8|Bottle, glass [b]2 gp[/b] --&item9|Bucket [b]5 cp[/b] --&item10|Bag of Caltrops (bag of 20) [b]1 gp[/b] --&item11|Whetstone [b]1 cp[/b] --&item12|Case, map or scroll [b]1 gp[/b] --&item13|Chain (10 feet) [b]5 gp[/b] --&item14|Chalk (1 piece) [b]1 cp[/b] --&item15|Component pouch [b]25 gp[/b] --&item16|Crowbar [b]2 gp[/b] --&item17|Fishing tackle [b]1 gp[/b] --&item18|Flask or tankard [b]2 cp[/b] --&item19|Grappling hook [b]2 gp[/b] --&item20|Hacksaw, common [b]5 gp[/b] --&item21|Hammer [b]1 gp[/b] --&item22|Hammock [b]5 gp[/b] --&item23|Twine, roll (50 ft.) [b]1 sp[/b] --&item24|Hoe, farming tool [b]3 gp[/b] --&item25|Hunting trap [b]5 gp[/b] --&item26|Jug or pitcher [b]2 cp[/b] --&item27|Keg, hand [b]5 sp[/b] --&item28|Lamp [b]5 sp[/b] --&item29|Bag of marbles (10) [b]2 sp[/b] --&item30|Torch [b]1 cp[/b] --&item31|Oil (flask) [b]1 sp[/b] --&item32|Parchment [b]1 sp[/b] --&item33|Pick, miner’s [b]2 gp[/b] --&item34|Pipe, wood [b]1 cp[/b] --&item35|Pole (10-foot) [b]5 cp[/b] --&item36|Pot, iron [b]2 gp[/b] --&item37|Pouch [b]5 sp[/b] --&item38|Quiver [b]1 gp[/b] --&item39|Rake, farming tool [b]1 gp[/b] --&item40|Shovel [b]2 gp[/b] --&item41|Rope, hempen (50 feet) [b]1 gp[/b] --&item42|Lock [b]10 gp[/b] --&item43|Saw, folding 2 gp[/b] --&item44|Bag of Spikes, iron (10) [b]1 gp[/b] --&item45|Signal whistle [b]5 cp[/b] --&item46|Soap [b]2 cp[/b] --&item47|Tarp [b]5 gp[/b] --&item48|Staff [b]5 gp[/b] --&item49|Tongs, metal [b]3 gp[/b] --&item50|Vial [b]1 gp[/b] --&item51|Wood box, large [b]15 gp[/b] --&item52|Goblet [b]5 gp[/b] --&item53|Saddle bag [b]4 gp[/b] --&item54|Shoulder purse [b]3 gp[/b] --&item55|Tobacco pouch, leather [b]1 gp[/b] --&item56|Wood box, medium [b]10 gp[/b] --&item57|Wood box, small [b]5 gp[/b] --&item58|Animal Call [b]20 gp[/b] --&item59|Armor Maintenance kit [b]1 gp[/b] --&item60|Bell [b]1 [b[/b] --&item61|Billhook, farming tool [b]5 gp[/b] --&item62|Block and tackle [b]1 gp[/b] --&item63|Book [b]25 gp[/b] --&item64|Brewmaker, dwarven [b]40 gp[/b] --&item65|Candle mold [b]12 sp[/b] --&item66|Candle, insectbane [b]1 sp[/b] --&item67|Case, crossbow bolt [b]1 gp[/b] --&item68|Chest [b]5 gp[/b] --&item69|Climber's kit [b]25 gp[/b] --&item70|Crystal [b]10 gp[/b] --&item71|Earplugs (pair) [b]3 sp[/b] --&item72|Game board, portable [b]2 gp[/b] --&item73|Hacksaw, superior [b]20 gp[/b] --&item74|Ink (1 ounce bottle) [b]10 gp[/b] --&item75|Ink pen [b]2 cp[/b] --&item76|Keg, cask [b]1 gp[/b] --&item77|Lantern, hooded [b]5 gp[/b] --&item78|Leash & muzzle, Medium-size [b]8 sp[/b] --&item79|Leash & muzzle, Small [b]6 sp[/b] --&item80|Manacles [b]2 gp[/b] --&item81|Mill, hand [b]2 gp[/b] --&item82|Net, butterfly [b]10 gp[/b] --&item83|Orb [b]10 gp[/b] --&item84|Pestle and mortar [b]5 gp[/b] --&item85|Pitchfork, farming tool [b]2 gp[/b] --&item86|Piton [b]5 cp[/b] --&item87|Quiver scabbard [b]10 gp[/b] --&item88|Rod [b]10 [b]gp[/b] --&item89|Sealing wax [b]5 sp[/b] --&item90|Signet ring [b]5 gp[/b] --&item91|Slate board [b]5 gp[/b] --&item92|Sparker [b]2 gp[/b] --&item93|Sprig of mistletoe [b]1 gp[/b] --&item94|Tent, one person [b]5 gp[/b] --&item95|Tent, two-person [b]2 gp[/b] --&item96|Totem [b]1 gp[/b] --&item97|Wand [b]10 gp[/b] --&item98|Wick, candle (50 ft.) [b]2 sp[/b] --&item99|Chest, Large [b]50 gp[/b] --&item100|Acid (vial) [b]25 gp[/b] --&item101|Alchemist’s fire (flask) 50 [b]gp[/b] --&item102|Antitoxin (vial) [b]50 gp[/b] --&item103|Barbed wire (50 ft.) [b]75 gp[/b] --&item104|Book, false [b]30 gp[/b] --&item105|Flotation bags [b]5 gp[/b] --&item106|Fowler's snare [b]20 gp[/b] --&item107|Glass cutter [b]2 gp[/b] --&item108|Hammer, sledge [b]2 gp[/b] --&item109|Holy symbol, Amulet [b]5 gp[/b] --&item110|Holy symbol, Emblem [b]5 gp[/b] --&item111|Holy symbol, Reliquary [b]5 gp[/b] --&item112|Holy text [b]10 gp[/b] --&item113|Holy water (flask) [b]25 gp[/b] --&item114|Ice axe [b]10 gp[/b] --&item115|Jeweler's loupe [b]20 gp[/b] --&item116|Ladder (10-foot) [b]1 sp[/b] --&item117|Lantern, bullseye [b]10 gp[/b] --&item118|Leash & muzzle, Diminutive [b]2 sp[/b] --&item119|Money belt [b]4 gp[/b] --&item120|Perfume (vial) [b]5 gp[/b] --&item121|Potion of healing [b]50 gp[/b] --&item122|Rope, silk (50 feet) [b]10 gp[/b] --&item123|Scale, merchant’s [b]5 gp[/b] --&item124|Teepee [b]60 gp[/b] --&item125|Water, Lawful/Chaotic [b]25 gp[/b] --&item126|Spellbook [b]50 gp[/b] --&item127|Bolt cutters [b]6 gp[/b] --&item128|Grappling ladder (10 ft.) [b]40 gp[/b] --&item129|Insect netting [b]200 gp[/b] --&item130|Abacus [b]2 gp[/b] --&item131|Ascender/slider [b]20 gp[/b] --&item132|Banner/Standard [b]30 gp[/b] --&item133|Cage, Diminutive [b]10 gp[/b] --&item134|Cage, Large [b]75 gp[/b] --&item135|Cage, Medium-size [b]50 gp[/b] --&item136|Cage, Small [b]25 gp[/b] --&item137|Cage, Tiny [b]15 gp[/b] --&item138|Candelabra, Gold, eight candle [b]20 gp[/b] --&item139|Candelabra, Gold, four candle [b]10 gp[/b] --&item140|Candelabra, Gold, sixteen candle [b]25 gp[/b] --&item141|Candelabra, Silver, eight candle [b]35 gp[/b] --&item142|Candelabra, Silver, four candle [b]25 gp[/b] --&item143|Candelabra, Silver, sixteen candle [b]45 gp[/b] --&item144|Crane, portable - (STR 22) [b]30 gp[/b] --&item145|Crane, portable - (STR 24) [b]60 gp[/b] --&item146|Crane, portable - (STR 28) [b]120 gp[/b] --&item147|Finger blades [b]20 gp[/b] --&item148|Grappling hook, collapsible [b]3 gp[/b] --&item149|Heat mat [b]45 gp[/b] --&item150|Hourglass [b]25 gp[/b] --&item151|Housebreaker harness [b]20 gp[/b] --&item152|Lantern, fog-cutter [b]20 gp[/b] --&item153|Leash & muzzle, Tiny [b]4 sp[/b] --&item154|Magnet, small [b]10 gp[/b] --&item155|Magnifying glass [b]100 gp[/b] --&item156|Mirror, steel [b]5 gp[/b] --&item157|Music box [b]35 gp[/b] --&item158|Percolator [b]1 gp[/b] --&item159|Periscope [b]1000 gp[/b] --&item160|Poison, basic (vial) [b]100 gp[/b] --&item161|Post-hole digger, farming tool [b]4 gp[/b] --&item162|Pulley [b]5 gp[/b] --&item163|Ram, portable [b]4 gp[/b] --&item164|Rope, elven (20 ft.) [b]50 gp[/b] --&item165|Shoes, silent [b]10 gp[/b] --&item166|Shriek rock [b]3 gp[/b] --&item167|Skis and poles [b]15 gp[/b] --&item168|Snorkel [b]1 gp[/b] --&item169|Snow goggles [b]2 gp[/b] --&item170|Snowshoes [b]15 gp[/b] --&item171|Spider poles [b]35 gp[/b] --&item172|Sprayer [b]15 gp[/b] --&item173|Springwall [b]60 gp[/b] --&item174|Spyglass [b]1000 gp[/b] --&item175|Stilts [b]5 gp[/b] --&item176|Table case, folding [b]5 gp[/b] --&item177|Tent, four person [b]20 gp[/b] --&item178|Tent, pavilion [b]100 gp[/b] --&item179|Thieving helmet [b]10 gp[/b] --&item180|Tree stand [b]15 gp[/b] --&item181|Tree tent, elven [b]30 gp[/b] --&item182|Winch, portable - (STR 18) [b]20 gp[/b] --&item183|Winch, portable - (STR 20) [b]40 gp[/b] --&item184|Winch, portable - (STR 22) [b]80 gp[/b] --&item185|Yew wand [b]10 gp[/b] --=numUniqueTypes|185 --^INITIALIZE COMMON GEAR COUNTS| --:INITIALIZE COMMON GEAR COUNTS| --%LoopCounter|1;[$numUniqueTypes.Raw] --=count[&LoopCounter]|0 --%| --:LOOP THROUGH numRolls TO START ADDING ITEMS --=numRolls1|8 --=numRolls2|9 --=numRolls3|9 --=numRolls4|14 --=numRolls5|16 --=numRolls6|20 --=numRolls7|25 --=numRolls|0 --C[&Settlement]|Thorp:=numRolls;[$numRolls1.Raw]|Hamlet:=numRolls;[$numRolls2.Raw]|Village:=numRolls;[$numRolls3.Raw]|Small Town:=numRolls;[$numRolls4.Raw]|Large Town:=numRolls;[$numRolls5.Raw]|Small City:=numRolls;[$numRolls6.Raw]|Large City:=numRolls;[$numRolls7.Raw] --%LoopCounter|1;[$numRolls.Raw] --=R1|1d4 --=R2|1d6 --=R3|1d8 --=R4|1d10 --=R5|0 --=MatRoll1|1d50 --=MatRoll2|1d98 --=MatRoll3|1d185 --=MatRoll|0 --:NOTE - ONLY USING R1 HERE, BUT YOU COULD ADD CONDITIONALS FOR DIFFERENT ROLLS, CALLING SAME FUNCTION --C[&Settlement]|Thorp:=MatRoll;[$MatRoll1.Raw]|Hamlet:=MatRoll;[$MatRoll1.Raw]|Village:=MatRoll;[$MatRoll1.Raw]|Small Town:=MatRoll;[$MatRoll2.Raw]|Large Town:=MatRoll;[$MatRoll2.Raw]|Small City:=MatRoll;[$MatRoll3.Raw]|Large City:=MatRoll;[$MatRoll3.Raw] --C[&Settlement]|Thorp:=R5;[$R1.Raw]|Hamlet:=R5;[$R1.Raw]|Village:=R5;[$R2.Raw]|Small Town:=R5;[$R2.Raw]|Large Town:=R5;[$R2.Raw]|Small City:=R5;[$R2.Raw]|Large City:=R5;[$R2.Raw] -->AddCommonGear|[$MatRoll.Raw];[$R5.Raw] --%| --:BUILD COMMA-SEPARATED LIST| --&displayCommonGearString| --%LoopCounter|1;[$numUniqueTypes.Raw] --?[$count[&LoopCounter]] -gt 0|[ --&displayCommonGearString|+ [b]([$count[&LoopCounter].Raw])[/b] [&item[&LoopCounter]], --]| --%| --:CLEANUP TRAILING COMMA IN THE LIST STRING --~stringLength|string;length;[&displayCommonGearString] --=numCharsToKeep|[$stringLength] - 1 --~displayCommonGearString|string;substring;1;[$numCharsToKeep];[&displayCommonGearString] --:ENUMERATE TOBACCO DESCRIPTIONS| --&item1|(lbs.) of Blackberry Yeti [b]5 sp/oz.[/b] --&item2|(lbs.) of Vanilla Clanvendish [b]5 cp/oz.[/b] --&item3|(lbs.) of Aged Fey Perique [b]5 gp/oz.[/b] --&item4|(lbs.) of Faerun Original [b]3 sp/oz.[/b] --&item5|(lbs.) of Faerun Fire [b]5 sp/oz.[/b] --&item6|(lbs.) of Paladin Black Cherry [b]8 sp/oz.[/b] --&item7|(lbs.) of Halfling Hash [b]1 gp/oz.[/b] --&item8|(lbs.) of Hardbuckler Mint [b]8 sp/oz.[/b] --&item9|(lbs.) of Hardbuckler Smooth [b]5 sp/oz.[/b] --&item10|(lbs.) of Hardbuckler Horn [b]10 sp/oz.[/b] --&item11|(lbs.) of Adventurer Blend [b]2 sp/oz.[/b] --&item12|(lbs.) of Fey Flake [b]5 gp/oz.[/b] --&item13|(lbs.) of The Alliance [b]8 sp/oz.[/b] --&item14|(lbs.) of Lord Ladykiller [b]10 sp/oz.[/b] --&item15|(lbs.) of Miner's Maiden [b]7 sp/oz.[/b] --&item16|(lbs.) of Captain's Delight Gold [b]5 sp/oz.[/b] --&item17|(lbs.) of Captain's Delight Royal [b]5 gp/oz.[/b] --&item18|(lbs.) of The Homesteader [b]3 sp/oz.[/b] --&item19|(lbs.) of Vineshade Grape [b]10 sp/oz.[/b] --&item20|(lbs.) of Vineshade [b]7 sp/oz.[/b] --&item21|(lbs.) of Vineshade Spiced [b]5 gp/oz.[/b] --&item22|(lbs.) of Turmish Blackpool [b]3 gp/oz.[/b] --&item23|(lbs.) of Baldur's Blend [b]7 gp/oz.[/b] --&item24|(lbs.) of Baldur's Blend Platinum [b]10 gp/oz.[/b] --&item25|(lbs.) of Happy Halfling [b]7 cp/oz.[/b] --&item26|(lbs.) of Forge Masters Blend [b]7 cp/oz.[/b] --&item27|(lbs.) of Quarrelshigh Quail [b]2 sp/oz.[/b] --=numUniqueTypes|27 --^INITIALIZE TOBACCO COUNTS| --:INITIALIZE TOBACCO COUNTS| --%LoopCounter|1;[$numUniqueTypes.Raw] --=count[&LoopCounter]|0 --%| --:LOOP THROUGH numRolls TO START ADDING ITEMS --=numRolls1|2 --=numRolls2|2 --=numRolls3|2 --=numRolls4|3 --=numRolls5|3 --=numRolls6|4 --=numRolls7|4 --=numRolls|0 --C[&Settlement]|Thorp:=numRolls;[$numRolls1.Raw]|Hamlet:=numRolls;[$numRolls2.Raw]|Village:=numRolls;[$numRolls3.Raw]|Small Town:=numRolls;[$numRolls4.Raw]|Large Town:=numRolls;[$numRolls5.Raw]|Small City:=numRolls;[$numRolls6.Raw]|Large City:=numRolls;[$numRolls7.Raw] --%LoopCounter|1;[$numRolls.Raw] --=R1|1d4 --=R2|1d4 --=R3|1d4 --=R4|1d1 --=R5|0 --=MatRoll1|1d27 --=MatRoll2|1d27 --=MatRoll3|1d27 --=MatRoll|0 --:NOTE - ONLY USING R1 HERE, BUT YOU COULD ADD CONDITIONALS FOR DIFFERENT ROLLS, CALLING SAME FUNCTION --C[&Settlement]|Thorp:=MatRoll;[$MatRoll1.Raw]|Hamlet:=MatRoll;[$MatRoll1.Raw]|Village:=MatRoll;[$MatRoll1.Raw]|Small Town:=MatRoll;[$MatRoll2.Raw]|Large Town:=MatRoll;[$MatRoll2.Raw]|Small City:=MatRoll;[$MatRoll3.Raw]|Large City:=MatRoll;[$MatRoll3.Raw] --C[&Settlement]|Thorp:=R5;[$R1.Raw]|Hamlet:=R5;[$R1.Raw]|Village:=R5;[$R2.Raw]|Small Town:=R5;[$R2.Raw]|Large Town:=R5;[$R2.Raw]|Small City:=R5;[$R2.Raw]|Large City:=R5;[$R2.Raw] -->AddTobacco|[$MatRoll.Raw];[$R5.Raw] --%| --:BUILD COMMA-SEPARATED LIST| --&displayTobaccoString| --%LoopCounter|1;[$numUniqueTypes.Raw] --?[$count[&LoopCounter]] -gt 0|[ --&displayTobaccoString|+ [b]([$count[&LoopCounter].Raw])[/b] [&item[&LoopCounter]], --]| --%| --:CLEANUP TRAILING COMMA IN THE LIST STRING --~stringLength|string;length;[&displayTobaccoString] --=numCharsToKeep|[$stringLength] - 1 --~displayTobaccoString|string;substring;1;[$numCharsToKeep];[&displayTobaccoString] --:ENUMERATE TRAIL FOOD DESCRIPTIONS|====================================================================================== --&item1|Loaves of Buckwheat bread (loaf) [b]1 cp[/b] --&item2|Loaves of Corn bread (loaf) [b]2 cp[/b] --&item3|Loaves of Fruit bread (loaf) [b]5 cp[/b] --&item4|Loaves of Sweet bread (loaf) [b]3 cp[/b] --&item5|lbs. of Berries (lb) [b]3 cp[/b] --&item6|lbs. of Dried Fruit (lb) [b]3 cp[/b] --&item7|lbs. of Figs (lb) [b]3 cp[/b] --&item8|dozen Apples (doz) [b]3 cp[/b] --&item9|dozen Pears (doz) [b]3 cp[/b] --&item10|lbs. of Mixed Nuts (lb) [b]8 cp[/b] --&item11|lbs. of Deer Jerky (lb) [b]1 sp[/b] --&item12|lbs. of Beef Sticks (lb) [b]1 sp[/b] --&item13|jars of Pickled Eggs (jar) [b]5 cp[/b] --&item14|jars of Pickled Olives (jar) [b]5 cp[/b] --&item15|jars of Pickled Beets (jar) [b]3 cp[/b] --&item16|lbs. of Carrots (lb) [b]3 cp[/b] --&item17|lbs. of Potatoes (lb) [b]3 cp[/b] --&item18|heads of Cabbage (head) [b]1 cp[/b] --&item19|dozen Fig Cookies (doz) [b]2 cp[/b] --&item20|Fruit Handpies (ea) [b]3 cp[/b] --&item21|Vegetable Handpies (ea) [b]3 cp[/b] --&item22|dozen Ginger Candy (doz) [b]3 cp[/b] --&item23|dozen Honey Candy (doz) [b]3 cp[/b] --&item24|Fruit Tarts (ea) [b]3 cp[/b] --&item25|Berry Tarts (ea) [b]3 cp[/b] --=numUniqueTypes|25 --^INITIALIZE TRAIL FOOD COUNTS| --:INITIALIZE TRAIL FOOD COUNTS| --%LoopCounter|1;[$numUniqueTypes.Raw] --=count[&LoopCounter]|0 --%| --:LOOP THROUGH numRolls TO START ADDING ITEMS --=numRolls1|2 --=numRolls2|2 --=numRolls3|2 --=numRolls4|3 --=numRolls5|3 --=numRolls6|4 --=numRolls7|4 --=numRolls|0 --C[&Settlement]|Thorp:=numRolls;[$numRolls1.Raw]|Hamlet:=numRolls;[$numRolls2.Raw]|Village:=numRolls;[$numRolls3.Raw]|Small Town:=numRolls;[$numRolls4.Raw]|Large Town:=numRolls;[$numRolls5.Raw]|Small City:=numRolls;[$numRolls6.Raw]|Large City:=numRolls;[$numRolls7.Raw] --%LoopCounter|1;[$numRolls.Raw] --=R1|1d1 --=R2|1d1 --=R3|1d1 --=R4|1d1 --=R5|0 --=MatRoll1|1d25 --=MatRoll2|1d25 --=MatRoll3|1d25 --=MatRoll|0 --:NOTE - ONLY USING R1 HERE, BUT YOU COULD ADD CONDITIONALS FOR DIFFERENT ROLLS, CALLING SAME FUNCTION --C[&Settlement]|Thorp:=MatRoll;[$MatRoll1.Raw]|Hamlet:=MatRoll;[$MatRoll1.Raw]|Village:=MatRoll;[$MatRoll1.Raw]|Small Town:=MatRoll;[$MatRoll2.Raw]|Large Town:=MatRoll;[$MatRoll2.Raw]|Small City:=MatRoll;[$MatRoll3.Raw]|Large City:=MatRoll;[$MatRoll3.Raw] --C[&Settlement]|Thorp:=R5;[$R1.Raw]|Hamlet:=R5;[$R1.Raw]|Village:=R5;[$R2.Raw]|Small Town:=R5;[$R2.Raw]|Large Town:=R5;[$R2.Raw]|Small City:=R5;[$R2.Raw]|Large City:=R5;[$R2.Raw] -->AddTrailFood|[$MatRoll.Raw];[$R5.Raw] --%| --:BUILD COMMA-SEPARATED LIST| --&displayTrailFoodString| --%LoopCounter|1;[$numUniqueTypes.Raw] --?[$count[&LoopCounter]] -gt 0|[ --&displayTrailFoodString|+ [b]([$count[&LoopCounter].Raw])[/b] [&item[&LoopCounter]], --]| --%| --:CLEANUP TRAILING COMMA IN THE LIST STRING --~stringLength|string;length;[&displayTrailFoodString] --=numCharsToKeep|[$stringLength] - 1 --~displayTrailFoodString|string;substring;1;[$numCharsToKeep];[&displayTrailFoodString] --&Rations|[b]([=1d20])[/b] Days Rations [b]5 sp[/b] --/| Determine if Special Items are available for sale --:Availability| --=MatRoll|1d100 --?[$MatRoll] -le 85|>SKIP SPECIAL --?[$MatRoll] -ge 86|>ENUMERATE SPECIAL ITEM DESCRIPTIONS --:EndOfAvailability| --:ENUMERATE SPECIAL ITEM DESCRIPTIONS|============================================================================================= --&item1|[=1d8+8] Arrows +1 (ea.) [b]100 gp[/b] --&item2|[=1d8+8] Bolts, Heavy Crossbow +1 (ea.) [b]100 gp[/b] --&item3|Potion of Healing [b]50 gp[/b] --&item4|Keoghtom's Ointment (Per dose) [b]125 gp[/b] --&item5|Helm of Comprehend Languages [b]525 gp[/b] --&item6|Bastard Sword +1 [b]1,200 gp[/b] --&item7|Battleaxe +1 [b]1,200 gp[/b] --&item8|Broad Sword +1 [b]1,500 gp[/b] --&item9|Flail +1 [b]1,000 gp[/b] --&item10|Glaive +1 [b]1,200 gp[/b] --&item11|Greataxe +1 [b]1,300 gp[/b] --&item12|Greatsword +1 [b]1,500 gp[/b] --&item13|Halberd +1 [b]1,200 gp[/b] --&item14|Longsword +1 [b]1,500 gp[/b] --&item15|Maul +1 [b]1,000 gp[/b] --&item16|Morningstar +1 [b]1,000 gp[/b] --&item17|Rapier +1 [b]1,200 gp[/b] --&item18|Scimitar +1 [b]1,200 gp[/b] --&item19|Shortsword +1 [b]1,000 gp[/b] --&item20|Trident +1 [b]1,200 gp[/b] --&item21|Warhammer +1 [b]1,200 gp[/b] --&item22|Whip +1 [b]800 gp[/b] --&item23|Blowgun +1 [b]900 gp[/b] --&item24|Crossbow, hand +1 [b]1,100 gp[/b] --&item25|Crossbow, heavy +1 [b]1,500 gp[/b] --&item26|Great Bow +1 [b]1,800 gp[/b] --&item27|Longbow +1 [b]1,200 gp[/b] --&item28|Net +1 [b]800 gp[/b] --&item29|Club +1 [b]1,000 gp[/b] --&item30|Dagger +1 [b]1,000 gp[/b] --&item31|Greatclub +1 [b]1,200 gp[/b] --&item32|Handaxe +1 [b]900 gp[/b] --&item33|Javelin +1 [b]1,000 gp[/b] --&item34|Mace +1 [b]1,000 gp[/b] --&item35|Quarterstaff +1 [b]1,200 gp[/b] --&item36|Spear +1 [b]1,000 gp[/b] --&item37|Shortbow +1 [b]1,000 gp[/b] --&item38|Sling +1 [b]900 gp[/b] --&item39|Crossbow, Light Repeating +1 [b]1,800 gp[/b] --&item40|Ring of Warmth [b]1,050 gp[/b] --&item41|Shield +1 [b]1,550 gp[/b] --&item42|Rope of Climbing [b]2,000 gp[/b] --&item43|Cloak of Protectiion [b]3,600 gp[/b] --&item44|Bag of Holding [b]4,200 gp[/b] --=numUniqueTypes|44 --^INITIALIZE SPECIAL ITEM COUNTS| --:INITIALIZE SPECIAL ITEM COUNTS| --%LoopCounter|1;[$numUniqueTypes.Raw] --=count[&LoopCounter]|0 --%| --:LOOP THROUGH numRolls TO START ADDING ITEMS --=numRolls1|1 --=numRolls2|1 --=numRolls3|2 --=numRolls4|2 --=numRolls5|3 --=numRolls6|3 --=numRolls7|4 --=numRolls|0 --C[&Settlement]|Thorp:=numRolls;[$numRolls1.Raw]|Hamlet:=numRolls;[$numRolls2.Raw]|Village:=numRolls;[$numRolls2.Raw]|Small Town:=numRolls;[$numRolls2.Raw]|Large Town:=numRolls;[$numRolls3.Raw]|Small City:=numRolls;[$numRolls3.Raw]|Large City:=numRolls;[$numRolls3.Raw] --%LoopCounter|1;[$numRolls.Raw] --=MatRoll1|1d10 --=MatRoll2|1d30 --=MatRoll3|1d44 --=MatRoll|0 --:NOTE - ONLY USING R1 HERE, BUT YOU COULD ADD CONDITIONALS FOR DIFFERENT ROLLS, CALLING SAME FUNCTION --C[&Settlement]|Thorp:=MatRoll;[$MatRoll1.Raw]|Hamlet:=MatRoll;[$MatRoll1.Raw]|Village:=MatRoll;[$MatRoll1.Raw]|Small Town:=MatRoll;[$MatRoll2.Raw]|Large Town:=MatRoll;[$MatRoll2.Raw]|Small City:=MatRoll;[$MatRoll3.Raw]|Large City:=MatRoll;[$MatRoll3.Raw] -->AddSpecial|[$MatRoll.Raw] --%| --:BUILD COMMA-SEPARATED LIST| --&displaySpecialString| --%LoopCounter|1;[$numUniqueTypes.Raw] --?[$count[&LoopCounter]] -gt 0|[ --&displaySpecialString|+ [&item[&LoopCounter]], --]| --%| --:CLEANUP TRAILING COMMA IN THE LIST STRING --~stringLength|string;length;[&displaySpecialString] --=numCharsToKeep|[$stringLength] - 1 --~displaySpecialString|string;substring;1;[$numCharsToKeep];[&displaySpecialString] --^Display Card| --:SKIP SPECIAL| --&skip|nothing special for sale at this time... but if your looking to sell something special, [b]"Let's see what you got"[/b] --/| END LIONSHIELD COSTER & DISPLAY TOOLS, WEAPONS, ARMOR, GEAR SECTION ON CARD================================================================= --:Display Card --+|[c]🧰 [b]Tools[/b] 🧰[/c] --+|[&displayToolString] --+|[c]🗡️ [b]Weapons[/b] 🗡️[/c] --+|[&displayWeaponString] --+|[c]🎯 [b]Ammunition[/b] 🎯️[/c] --+|[&displayAmmoString] --+|[c]🛡️ [b]Armor[/b] 🛡️[/c] --+|[&displayArmorString] --+|[c]🛢️ [b]Gear[/b] 🛢️[/c] --+|[&displayCommonGearString] --+|[c]🌿 [b]Tobacco[/b] 🌿[/c] --+|[&displayTobaccoString] --+|[c]🌰️ [b]Trail Food[/b] 🌰[/c] --+|[&Rations], [&displayTrailFoodString] --+|[c]🌟 [b]Something Special[/b] 🌟[/c] --+|[b][i]Are you looking for something special?[/i][/b] Well, I have [&displaySpecialString][&skip] --^Output Data| --/| Output data --:Output Data| --X| End Macro --:FUNCTIONS|===================================================================================================== --:AddWeapons| accepts the item index and qty. Increments the count of index [%1%] by qty [%2%] --=count[%1%]|[$count[%1%]] + [%2%] --<| --:AddAmmo| accepts the item index and qty. Increments the count of index [%1%] by qty [%2%] --=count[%1%]|[$count[%1%]] + [%2%] --<| --:AddArmor| accepts the item index and qty. Increments the count of index [%1%] by qty [%2%] --=count[%1%]|[$count[%1%]] + [%2%] --<| --:AddCommonGear| accepts the item index and qty. Increments the count of index [%1%] by qty [%2%] --=count[%1%]|[$count[%1%]] + [%2%] --<| --:AddTools| accepts the item index and qty. Increments the count of index [%1%] by qty [%2%] --=count[%1%]|[$count[%1%]] + [%2%] --<| --:AddTobacco| accepts the item index and qty. Increments the count of index [%1%] by qty [%2%] --=count[%1%]|[$count[%1%]] + [%2%] --<| --:AddTrailFood| accepts the item index and qty. Increments the count of index [%1%] by qty [%2%] --=count[%1%]|[$count[%1%]] + [%2%] --<| --:AddSpecial| accepts the item index --=count[%1%]|[%1%] --<| }}