Difference between revisions of "NPCLoot data"

From Stoneshard wiki
Jump to navigation Jump to search
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:


Logic to implement:
<nowiki>
If Trader=1, show template, else "This NPC is not a trader.".
If Sells exists, show it, else "This NPC does not sell anything.".
 
 
 
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
   |Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
   §§ Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
   |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
   §§ Weapons = Training Crossbow
   |Weapons = Training Crossbow
   §§ Armor = Travelling Shoes
   |Armor = Travelling Shoes
   §§ Beverages = Mannshire Fortified
   |Beverages = Mannshire Fortified
   §§ Food = Bread;Cheese;Morel
   |Food = Bread;Cheese;Morel
   §§ Medicine = Bandage;Healing Salve;Herbal Extract
   |Medicine = Bandage;Healing Salve;Herbal Extract
   §§ Tools = Hammer;Pickaxe;Bedroll
   |Tools = Hammer;Pickaxe;Bedroll
| #default = }}</nowiki>
|#default = }}</nowiki>


  <nowiki>
<nowiki>
|Bert = {{#switch:{{{2}}}
|Bert = {{#switch:{{{2}}}
   §§ Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
   |Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
   §§ Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
   |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
   §§ Weapons = Training Crossbow
   |Weapons = Training Crossbow
   §§ Armor = Travelling Shoes
   |Armor = Travelling Shoes
   §§ Jewelry =  
   |Jewelry =  
   §§ Beverages = Mannshire Fortified
   |Beverages = Mannshire Fortified
   §§ Food = Bread;Cheese;Morel
   |Food = Bread;Cheese;Morel
   §§ Medicine = Bandage;Healing Salve;Herbal Extract
   |Medicine = Bandage;Healing Salve;Herbal Extract
   §§ Tools = Hammer;Pickaxe;Bedroll
   |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
   |Buys = Weapons;Armor
   §§Sells = Potions;Tools
   |Sells = Potions;Tools
   §§Weapons = Sword;Axe;Bow
   |Weapons = Sword;Axe;Bow
   §§Armor = Helmet;Shield
   |Armor = Helmet;Shield
   §§Potions = HealthPotion;ManaPotion
   |Potions = HealthPotion;ManaPotion
   §§Tools = Pickaxe;Hammer
   |Tools = Pickaxe;Hammer
   §§#default = }}
   |#default = }}
}}
}}
|--> Bert test <!--
|--> Bert test <!--
Line 106: Line 98:
-->
-->
|Ormond = {{#switch: {{{2}}}
|Ormond = {{#switch: {{{2}}}
§§Buy=Other
|Buy = Other
§§Food=Food
|Food = Food
§§#default = }}
|#default = }}


|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 = Weapons;Armor
|Sell = Weapons;Armor
§§Weapons = Bows;Crossbows;Staves;Maces;Two-Handed Maces;Ammo;Shields
|Weapons = Bows;Crossbows;Staves;Maces;Two-Handed Maces;Ammo;Shields
§§Armor = Shields
|Armor = Shields
§§BuyLimitation = Jurg will pay more [[Crowns]] for wooden items than other merchants.
|BuyLimitation = Jurg will pay more [[Crowns]] for wooden items than other merchants.
§§#default = }}
|#default = }}


|Margyt = {{#switch: {{{2}}}
|Margyt = {{#switch: {{{2}}}
§§Buy =
|Buy =
§§Food = Food
|Food = Food
§§#default = }}
|#default = }}


|Gina = {{#switch: {{{2}}}
|Gina = {{#switch: {{{2}}}
§§Buy=
|Buy =
§§Food=Food
|Food = Food
§§#default = }}
|#default = }}


|Frid = {{#switch: {{{2}}}
|Frid = {{#switch: {{{2}}}
§§Buy=
|Buy =
§§Sells=Herbs, Medicine, Scrolls
|Sells = Herbs;Medicine;Scrolls
§§#default = }}
|#default = }}


|Brukk = {{#switch: {{{2}}}
|Brukk = {{#switch: {{{2}}}
§§Occupation=Innkeeper
|Occupation = Innkeeper
§§Trader=1
|Trader = 1
§§Sells=Food, Drinks, Waterskin
|Sells = Food;Drinks;Waterskin
§§#default = }}
|#default = }}


|Osbrook Female Innkeeper = {{#switch: {{{2}}}
|Osbrook Female Innkeeper = {{#switch: {{{2}}}
§§Name=Random Name
|Occupation = Hostess
§§Occupation=Hostess
|Trader = 1
§§Trader=1
|Sells = Food;Drinks;Waterskin
§§Sells=Food, Drinks, Waterskin
|#default = }}
§§#default = }}


|Bert = {{#switch:{{{2}}}
|Bert = {{#switch:{{{2}}}
§§Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
|Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
§§Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
§§Weapons = Training Crossbow
|Weapons = Training Crossbow
§§Armor = Travelling Shoes
|Armor = Travelling Shoes
§§Jewelry = <!--TODO-->
|Jewelry = <!--TODO-->
§§Books & Notes = <!--TODO-->
|Books & Notes = <!--TODO-->
§§Beverages = Mannshire Fortified
|Beverages = Mannshire Fortified
§§Food = Bread;Cheese;Morel
|Food = Bread;Cheese;Morel
§§Medicine = Bandage;Healing Salve;Herbal Extract
|Medicine = Bandage;Healing Salve;Herbal Extract
§§Valuables = <!--TODO-->
|Valuables = <!--TODO-->
§§Scrolls = <!--TODO-->
|Scrolls = <!--TODO-->
§§Tools = Hammer;Pickaxe;Bedroll
|Tools = Hammer;Pickaxe;Bedroll
§§Potions = <!--TODO-->
|Potions = <!--TODO-->
§§#default = }}
|#default = }}


|Alan = {{#switch: {{{2}}}
|Alan = {{#switch: {{{2}}}
§§Occupation=Miller
|Occupation = Miller
§§Trader=1
|Trader = 1
§§Sells=Food
|Sells = Food
§§#default = }}
|#default = }}


|Jebar = {{#switch: {{{2}}}
|Jebar = {{#switch: {{{2}}}
§§Occupation=Smith
|Occupation = Smith
§§Trader=1
|Trader = 1
§§Repair=1
|Repair = 1
§§Sells=Weapons, Lockpicks, Traps
|Sells = Weapons;Lockpicks;Traps
§§#default = }}
|#default = }}




|Hold = {{#switch: {{{2}}}
|Hold = {{#switch: {{{2}}}
§§Occupation=Tailor
|Occupation = Tailor
§§Trader=1
|Trader = 1
§§Repair=1
|Repair = 1
§§#default = }}
|#default = }}


|Lynd = {{#switch: {{{2}}}
|Lynd = {{#switch: {{{2}}}
§§Occupation=Apprentice
|Occupation = Apprentice
§§Trader=1
|Trader = 1
§§Repair=1
|Repair = 1
§§Sells=Misc
|Sells = Misc
§§#default = }}
|#default = }}


|Dirk_(NPC) = {{#switch: {{{2}}}
|Dirk_(NPC) = {{#switch: {{{2}}}
§§Name=Dirk
|Occupation = Carpenter
§§Occupation=Carpenter
|Trader = 1
§§Trader=1
|Repair = 1
§§Repair=1
|Sells = Maces;Staves;Shields;Bows;Xbows;Ammunition
§§Sells=Maces, Staves, Shields, Bows, Xbows, Ammunition
|#default = }}
§§#default = }}


|Knud = {{#switch: {{{2}}}
|Knud = {{#switch: {{{2}}}
§§Occupation=Village Elder
|Occupation = Village Elder
§§Trader=1
|Trader = 1
§§Sells=Maps
|Sells = Maps
§§#default = }}
|#default = }}


|Agna = {{#switch: {{{2}}}
|Agna = {{#switch: {{{2}}}
§§Occupation=Food Trader
|Occupation = Food Trader
§§Trader=1
|Trader = 1
§§Sells=Milk, Cheese
|Sells = Milk;Cheese
§§#default = }}
|#default = }}


|Gunda = {{#switch: {{{2}}}
|Gunda = {{#switch: {{{2}}}
§§Occupation=Food Trader
|Occupation = Food Trader
§§Trader=1
|Trader = 1
§§Sells=Wine, Grapes
|Sells = Wine;Grapes
§§#default = }}
|#default = }}


|Weber Vir Lecri = {{#switch: {{{2}}}
|Weber Vir Lecri = {{#switch: {{{2}}}
§§Occupation=Governor
|Occupation = Governor
§§Trader=1
|Trader = 1
§§Sells=Maps, Tools
|Sells = Maps;Tools
§§#default = }}
|#default = }}


|Selma = {{#switch: {{{2}}}
|Selma = {{#switch: {{{2}}}
§§Occupation=Hostess
|Occupation = Hostess
§§Trader=1
|Trader = 1
§§Sells=Food, Drinks, Waterskin
|Sells = Food;Drinks;Waterskin
§§#default = }}
|#default = }}


|Arenn = {{#switch: {{{2}}}
|Arenn = {{#switch: {{{2}}}
§§Occupation=Innkeeper
|Occupation = Innkeeper
§§Trader=1
|Trader = 1
§§Sells=Food, Drinks, Waterskin
|Sells = Food;Drinks;Waterskin
§§#default = }}
|#default = }}


|Gerlot = {{#switch: {{{2}}}
|Gerlot = {{#switch: {{{2}}}
§§Occupation=Merchant
|Occupation = Merchant
§§Trader=1
|Trader = 1
§§Sells=Weapons, Armor, Jewelry, Medicine, Valuables, Food, Junk
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
§§#default = }}
|#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:

Bert test