Template:Expose Item

From bg3.wiki
Jump to navigation Jump to search


Warning: at the moment this is an experimental template and it may be changed without warning or backwards compatibility. Please don't use it without a good reason to.

What this templates does: it appends the provided single item name to the contents of the non-locally scoped var page_exposed_items.

Why: This will make it possible to collect a list of every drop table item transcluded into a page, thus letting you later query sources of items.

{{Expose Item|<item name to expose>}}
Items are stored in following format separated by commas:
ITEM_NAME++LEVEL_LOW++LEVEL_HIGH

The level low and high are read from vars page_expose_item_level_low and page_expose_item_level_high, defaulting to 1 and 12, respectively. Vars are set with Template:Expose Item/SetLevel and reset with Template:Expose Item/ResetLevel. ResetLevel should be called by DropTableStart, while SetLevel should be called by Template:DropTableLevel. Template:DropTableDivider will be the implementation details of DropTableLevel.

Example below:

Shop

Stock

Arron always has these bits and bobs that he no longer needs.

Item Quantity Chance
Dragon's Grasp 1 Always
Ring of Flinging 1 Always
Hedge Wanderer Armour 1 Always
Rain Dancer 1 Always
Gloves of Missile Snaring 1 Always
Spellthief 1 Always
Leather Armour 1 Always
Leather Helmet 1 Always
Potion of Healing 3 Always
Level 6+
Scroll of Revivify 3 Always
Thieves' Tools 4 Always
Trap Disarm Toolkit 5 Always
Dye Remover 10 Always
Gold [1] 200 - 1350 Always
  1. Gold for a normal trader from levels 1 to 6

Magic Armour

Potion

Arron rolls three times on the Potion Table.

Potion of Superior Healing Icon.png The potion table contains the following items:

Scroll

Arron rolls 9 times on the Scroll Table. See Scrolls for a list of many of the scrolls in the game.

Item Quantity Chance
Single Scroll Supply Table 1 3/4
Single Utility Scroll Supply Table 1 1/4

Arrows

Rolls 9 times on the Common Special Arrow Table.

Item Quantity Chance
Arrow of Acid 1 1/4
Arrow of Fire 1 1/4
Arrow of Ice 1 1/4
Arrow of Lightning 1 1/4

Rolls 5 times on the Uncommon Special Arrow Table.

Item Quantity Chance
Arrow of Darkness 1 1/3
Arrow of Ilmater 1 1/3
Arrow of Roaring Thunder 1 1/3


Supplies

The Fancy Trader Table is worth a total of 55.5 + # Camp Supplies on average.

Food

Rolls two or three times. Worth 14.8 Camp Supplies on average.

Quantity23
Chance 3/52/5
Item Quantity Chance
Food Supply Table 2 1 1/22
Food Supply Table 3 1 2/22
Food Supply Table 4 1 3/22
Food Supply Table 5 1 4/22
Food Supply Table 6 1 4/22
Food Supply Table 7 1 4/22
Food Supply Table 10 1 3/22
Food Supply Table 12 [1] 1 1/22
  1. Food Supply Table 12 consists entirely of a single Pumpkin.

Cooked food

Rolls 1-3 times. Worth # Camp Supplies on average.

Quantity123
Chance 1/63/62/6
Item Quantity Chance
Cooked Food Supply Table 5 1 5/19
Cooked Food Supply Table 8 1 1/19
Cooked Food Supply Table 10 1 5/19
Cooked Food Supply Table 15 1 5/19
Cooked Food Supply Table 20 1 3/19

Drinks

Rolls 0-2 times on the Drink Supply Table. Worth 0.7 Camp Supplies on average.

Quantity012
Chance 1/42/41/4
Item Quantity Chance
Drink Supply Table 1 Always

Supply pack

Always drops 1 Supply Pack, worth 40 supplies.

Item Quantity Chance
Supply Pack 1 Always


Results

Dragon's Grasp++1++12,Ring of Flinging++1++12,Hedge Wanderer Armour++1++12,Rain Dancer++1++12,Gloves of Missile Snaring++1++12,Spellthief++1++12,Leather Armour++1++12,Leather Helmet++1++12,Potion of Healing++1++12,Scroll of Revivify++6++12,Thieves' Tools++6++12,Trap Disarm Toolkit++6++12,Dye Remover++6++12,Gold++6++12,Leather Armour +1++1++12,Leather Armour +2++1++12,Padded Armour +1++1++12,Padded Armour +2++1++12,Studded Leather Armour +1++1++12,Studded Leather Armour +2++1++12,Chain Shirt +1++1++12,Chain Shirt +2++1++12,Breastplate +1++1++12,Breastplate +2++1++12,Half Plate Armour +1++1++12,Half Plate Armour +2++1++12,Hide Armour +1++1++12,Hide Armour +2++1++12,Scale Mail +1++1++12,Scale Mail +2++1++12,Chain Mail +1++1++12,Chain Mail +2++1++12,Plate Armour +1++1++12,Plate Armour +2++1++12,Ring Mail Armour +1++1++12,Ring Mail Armour +2++1++12,Splint Armour +1++1++12,Splint Armour +2++1++12,Healing Potion Table++1++12,Utility Potion Table++1++12,Elixir Table++1++12,Single Scroll Supply Table++1++12,Single Utility Scroll Supply Table++1++12,Arrow of Acid++1++12,Arrow of Fire++1++12,Arrow of Ice++1++12,Arrow of Lightning++1++12,Arrow of Darkness++1++12,Arrow of Ilmater++1++12,Arrow of Roaring Thunder++1++12,Food Supply Table 2++1++12,Food Supply Table 3++1++12,Food Supply Table 4++1++12,Food Supply Table 5++1++12,Food Supply Table 6++1++12,Food Supply Table 7++1++12,Food Supply Table 10++1++12,Food Supply Table 12++1++12,Cooked Food Supply Table 5++1++12,Cooked Food Supply Table 8++1++12,Cooked Food Supply Table 10++1++12,Cooked Food Supply Table 15++1++12,Cooked Food Supply Table 20++1++12,Drink Supply Table++1++12,Supply Pack++1++12