Difference between revisions of "NPCLoot data"
m |
m (New tests with previous model.) |
||
| Line 27: | Line 27: | ||
You can base it on the old NPC page, and list the types of items he sells like: | You can base it on the old NPC page, and list the types of items he sells like: | ||
If a parameter is empty (for example;[[Bert]] does not Sell any Jewelry);it can be left empty or omitted completely.<br> | |||
Here are two examples of NPCLoot data syntax;these two would produce the same result: | |||
<nowiki> | |||
|Bert = {{#switch:{{{2}}} | |Bert = {{#switch:{{{2}}} | ||
|Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables | |||
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk | |||
|Weapons = Training Crossbow | |||
|Armor = Travelling Shoes | |||
|Beverages = Mannshire Fortified | |||
|Food = Bread;Cheese;Morel | |||
|Medicine = Bandage;Healing Salve;Herbal Extract | |||
|Tools = Hammer;Pickaxe;Bedroll | |||
| #default = }}</nowiki> | |#default = }}</nowiki> | ||
<nowiki> | |||
|Bert = {{#switch:{{{2}}} | |Bert = {{#switch:{{{2}}} | ||
|Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables | |||
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk | |||
|Weapons = Training Crossbow | |||
|Armor = Travelling Shoes | |||
|Jewelry = | |||
|Beverages = Mannshire Fortified | |||
|Food = Bread;Cheese;Morel | |||
|Medicine = Bandage;Healing Salve;Herbal Extract | |||
|Tools = Hammer;Pickaxe;Bedroll | |||
| #default = }}</nowiki> | |#default = }}</nowiki> | ||
Used by: | Used by: | ||
| Line 70: | Line 62: | ||
<!-- Possibilities | <!-- Possibilities | ||
| Jurg = {{#switch: {{{2}}} | |Jurg = {{#switch: {{{2}}} | ||
| Buy = Alcohol;Ammo;Armor;Beverages;Food;Ingredients;Jewelry;Junk;Materials;Valuables;Weapons | |Buy = Alcohol;Ammo;Armor;Beverages;Food;Ingredients;Jewelry;Junk;Materials;Valuables;Weapons | ||
| Sell = Bows;Crossbows;Staves;Maces;Two-Handed Maces;Ammo;Shields | |Sell = Bows;Crossbows;Staves;Maces;Two-Handed Maces;Ammo;Shields | ||
|#default = }} | |#default = }} | ||
ou | ou | ||
| Jurg = {{#switch: {{{2}}} | |Jurg = {{#switch: {{{2}}} | ||
| Buy = Alcohol;Ammo;Armor;Beverages;Food;Ingredients;Jewelry;Junk;Materials;Valuables;Weapons | |Buy = Alcohol;Ammo;Armor;Beverages;Food;Ingredients;Jewelry;Junk;Materials;Valuables;Weapons | ||
| BuyLimitation = Jurg will pay more [[Crowns]] for wooden items than other merchants. | |BuyLimitation = Jurg will pay more [[Crowns]] for wooden items than other merchants. | ||
| Weapon = Bows;Crossbows;Staves;Maces;Two-Handed Maces;Ammo;Shields | |Weapon = Bows;Crossbows;Staves;Maces;Two-Handed Maces;Ammo;Shields | ||
| Armor = Shields | |Armor = Shields | ||
|#default = }} | |#default = }} | ||
}} | }} | ||
| Line 88: | Line 80: | ||
{{#switch:{{{1}}} | {{#switch:{{{1}}} | ||
| NPC1 = {{#switch:{{{2}}} | |NPC1 = {{#switch:{{{2}}} | ||
|Buys = Weapons;Armor | |||
|Sells = Potions;Tools | |||
|Weapons = Sword;Axe;Bow | |||
|Armor = Helmet;Shield | |||
|Potions = HealthPotion;ManaPotion | |||
|Tools = Pickaxe;Hammer | |||
|#default = }} | |||
}} | }} | ||
|--> Bert test <!-- | |--> Bert test <!-- | ||
| Line 106: | Line 98: | ||
--> | --> | ||
|Ormond = {{#switch: {{{2}}} | |Ormond = {{#switch: {{{2}}} | ||
|Buy = Other | |||
|Food = Food | |||
|#default = }} | |||
|Jurg = {{#switch: {{{2}}} | |Jurg = {{#switch: {{{2}}} | ||
|Buy = Alcohol;Ammo;Armor;Beverages;Food;Ingredients;Jewelry;Junk;Materials;Valuables;Weapons | |||
|Sell = Weapons;Armor | |||
|Weapons = Bows;Crossbows;Staves;Maces;Two-Handed Maces;Ammo;Shields | |||
|Armor = Shields | |||
|BuyLimitation = Jurg will pay more [[Crowns]] for wooden items than other merchants. | |||
|#default = }} | |||
|Margyt = {{#switch: {{{2}}} | |Margyt = {{#switch: {{{2}}} | ||
|Buy = | |||
|Food = Food | |||
|#default = }} | |||
|Gina = {{#switch: {{{2}}} | |Gina = {{#switch: {{{2}}} | ||
|Buy = | |||
|Food = Food | |||
|#default = }} | |||
|Frid = {{#switch: {{{2}}} | |Frid = {{#switch: {{{2}}} | ||
|Buy = | |||
|Sells = Herbs;Medicine;Scrolls | |||
|#default = }} | |||
|Brukk = {{#switch: {{{2}}} | |Brukk = {{#switch: {{{2}}} | ||
|Occupation = Innkeeper | |||
|Trader = 1 | |||
|Sells = Food;Drinks;Waterskin | |||
|#default = }} | |||
|Osbrook Female Innkeeper = {{#switch: {{{2}}} | |Osbrook Female Innkeeper = {{#switch: {{{2}}} | ||
|Occupation = Hostess | |||
|Trader = 1 | |||
|Sells = Food;Drinks;Waterskin | |||
|#default = }} | |||
|Bert = {{#switch:{{{2}}} | |Bert = {{#switch:{{{2}}} | ||
|Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables | |||
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk | |||
|Weapons = Training Crossbow | |||
|Armor = Travelling Shoes | |||
|Jewelry = <!--TODO--> | |||
|Books & Notes = <!--TODO--> | |||
|Beverages = Mannshire Fortified | |||
|Food = Bread;Cheese;Morel | |||
|Medicine = Bandage;Healing Salve;Herbal Extract | |||
|Valuables = <!--TODO--> | |||
|Scrolls = <!--TODO--> | |||
|Tools = Hammer;Pickaxe;Bedroll | |||
|Potions = <!--TODO--> | |||
|#default = }} | |||
|Alan = {{#switch: {{{2}}} | |Alan = {{#switch: {{{2}}} | ||
|Occupation = Miller | |||
|Trader = 1 | |||
|Sells = Food | |||
|#default = }} | |||
|Jebar = {{#switch: {{{2}}} | |Jebar = {{#switch: {{{2}}} | ||
|Occupation = Smith | |||
|Trader = 1 | |||
|Repair = 1 | |||
|Sells = Weapons;Lockpicks;Traps | |||
|#default = }} | |||
|Hold = {{#switch: {{{2}}} | |Hold = {{#switch: {{{2}}} | ||
|Occupation = Tailor | |||
|Trader = 1 | |||
|Repair = 1 | |||
|#default = }} | |||
|Lynd = {{#switch: {{{2}}} | |Lynd = {{#switch: {{{2}}} | ||
|Occupation = Apprentice | |||
|Trader = 1 | |||
|Repair = 1 | |||
|Sells = Misc | |||
|#default = }} | |||
|Dirk_(NPC) = {{#switch: {{{2}}} | |Dirk_(NPC) = {{#switch: {{{2}}} | ||
|Occupation = Carpenter | |||
|Trader = 1 | |||
|Repair = 1 | |||
|Sells = Maces;Staves;Shields;Bows;Xbows;Ammunition | |||
|#default = }} | |||
|Knud = {{#switch: {{{2}}} | |Knud = {{#switch: {{{2}}} | ||
|Occupation = Village Elder | |||
|Trader = 1 | |||
|Sells = Maps | |||
|#default = }} | |||
|Agna = {{#switch: {{{2}}} | |Agna = {{#switch: {{{2}}} | ||
|Occupation = Food Trader | |||
|Trader = 1 | |||
|Sells = Milk;Cheese | |||
|#default = }} | |||
|Gunda = {{#switch: {{{2}}} | |Gunda = {{#switch: {{{2}}} | ||
|Occupation = Food Trader | |||
|Trader = 1 | |||
|Sells = Wine;Grapes | |||
|#default = }} | |||
|Weber Vir Lecri = {{#switch: {{{2}}} | |Weber Vir Lecri = {{#switch: {{{2}}} | ||
|Occupation = Governor | |||
|Trader = 1 | |||
|Sells = Maps;Tools | |||
|#default = }} | |||
|Selma = {{#switch: {{{2}}} | |Selma = {{#switch: {{{2}}} | ||
|Occupation = Hostess | |||
|Trader = 1 | |||
|Sells = Food;Drinks;Waterskin | |||
|#default = }} | |||
|Arenn = {{#switch: {{{2}}} | |Arenn = {{#switch: {{{2}}} | ||
|Occupation = Innkeeper | |||
|Trader = 1 | |||
|Sells = Food;Drinks;Waterskin | |||
|#default = }} | |||
|Gerlot = {{#switch: {{{2}}} | |Gerlot = {{#switch: {{{2}}} | ||
|Occupation = Merchant | |||
|Trader = 1 | |||
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk | |||
|#default = }} | |||
|#default = NPC {{{1}}} does not exist in [[NPCLoot data]].}}</includeonly> | |#default = NPC {{{1}}} does not exist in [[NPCLoot data]].}}</includeonly> | ||
Revision as of 04:21, 27 January 2025
Page for all Stoneshard NPC Loot data. [TEST]
---
NPCLoot data is maintained manually (for now).
Usage
The idea is to define this simple template and later on update it to a more complex one, with more parameters and options, if needed.
The parameters are as follows:
Category;Weapons;Armor;Jewelry;Artifacts;Treatises;Loot;Food;Beverages;Potions;Ingredients;Drugs;Medicine;Scrools;Ammunition;Tools;Traps
Possible updates could include:
Weapons(Swords;Axes;Maces;Daggers;THSwords;THAxes;THMaces;Spears;Ranged Weapons;Shields;Staves);Armor;Jewelry;Artifaccts;Treatises;Loot;Food;Beverages;Potions;Ingredients;Drugs;Medicine;Scrools;Ammunition;Tools;Traps
This template "integrates" with Friendly data template, which will be used to gather the data needed for each NPC.
Update Data
The idea here, is to centralize only what the NPCs trade. Buying and selling prices are not needed, as they are already in the determined data pages.
You can base it on the old NPC page, and list the types of items he sells like:
If a parameter is empty (for example;Bert does not Sell any Jewelry);it can be left empty or omitted completely.
Here are two examples of NPCLoot data syntax;these two would produce the same result:
|Bert = {{#switch:{{{2}}} |Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk |Weapons = Training Crossbow |Armor = Travelling Shoes |Beverages = Mannshire Fortified |Food = Bread;Cheese;Morel |Medicine = Bandage;Healing Salve;Herbal Extract |Tools = Hammer;Pickaxe;Bedroll |#default = }}
|Bert = {{#switch:{{{2}}} |Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk |Weapons = Training Crossbow |Armor = Travelling Shoes |Jewelry = |Beverages = Mannshire Fortified |Food = Bread;Cheese;Morel |Medicine = Bandage;Healing Salve;Herbal Extract |Tools = Hammer;Pickaxe;Bedroll |#default = }}
Used by:
{{NPCLootTable/head}}template.{{NPCLootTable/row}}template.{{NPCLootTable/end}}template.
Bert test