Difference between revisions of "NPCLoot data"

From Stoneshard wiki
Jump to navigation Jump to search
(Fix "Buy" param. -> "Buys". "Buys" variables, need to be "separated" in the icons categories. At least, for this idea.)
(Add refined template for NPCLootTable, with explanation.)
Line 1: Line 1:
<noinclude>
<noinclude>{{stub}}
Page for all Stoneshard NPC Loot data. [TEST]
Page for all Stoneshard NPC Loot data. '''{{c|-|[TEST]}}'''


---
---
Line 6: Line 6:
NPCLoot data is maintained manually (for now).
NPCLoot data is maintained manually (for now).


This template is a standalone from the [[Friendly data]] template and data, which was used to gather some of the data from each NPC, along with the extra data added in their own pages.


==Usage==
==Update Data==


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.<br>
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.<br>
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:
To adapt to the official [[Category:Icons|Icons]]. The template {{tl|NPCLootTable/row}}, uses the following categories, only for sub-categories:
* Unfortunately, this needs to be changed manually, for every NPC. This is where Friendly NPC and NPCLoot data differ from each other.
* This would require a "complete" rewrite of the NPCs infos, to compell with the game icon categories.


   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
   <nowiki>
 
|SubCategories = {{switch:{{#var:IconCategory}}
 
|Food = Consumables;
This template "integrates" with [[Friendly data]] template, which will be used to gather the data needed for each NPC.
|Beverages = Consumables;
 
|Drinks = Consumables;
==Update Data==
|Wateskin = Consumables;
"Loot" = <!--TBD -> Most likely, the difference between Jewelry and Valuables-->;
|Junk = Other;
|Herbs = Medicine;
"Reagents" = <!--TBD -> Most likely, food additives & ? -->;
|Books & Notes = Scrolls;
|Tools & Traps = Tools;
|Misc = Other;
#default = All}} <!--When icon not found.-->
</nowiki>


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.<br>
* I could not think of a better way to do this icon verification, without a proper loop or a better way to handle the data. So i will leave this as is, and change manually, as needed.
* The thing is, manually cchanging this table, requires you to go to the NPC page, and verify the items listed there and their categories, then update the NPCLoot data page, with the correct categories.


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 this:


If a parameter is empty (for example;[[Bert]] does not Sell any Jewelry);it can be left empty or omitted completely.<br>
If a parameter is empty, for example: '''[[Bert]] does not Sell any Jewelry.'''<br>{{c|+|It can be left empty or omitted completely}}.<br>Here are two examples of NPCLoot data syntax;these two would produce the same result:
Here are two examples of NPCLoot data syntax;these two would produce the same result:


<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
Line 42: Line 50:
|#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
Line 75: Line 82:
</noinclude><includeonly>{{#switch: {{{1}}}
</noinclude><includeonly>{{#switch: {{{1}}}
<!--
<!--
----- OSBROOK -----
----- OSBROOK -----
-->
-->
|Ormond = {{#switch: {{{2}}}
|Ormond = {{#switch: {{{2}}}
Line 87: Line 92:
|Buys = Armor;Beverages;Food;Reagents;Jewelry;Other;Materials;Valuables;Weapons
|Buys = Armor;Beverages;Food;Reagents;Jewelry;Other;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
|BuysLimitation = Jurg will pay more [[Crowns]] for wooden items than other merchants.
|BuysLimitation = "Jurg will pay more [[Crowns]] for wooden items than other merchants."
|#default = }}
|#default = }}


|Margyt = {{#switch: {{{2}}}
|Margyt = {{#switch: {{{2}}}
|Buys =
|Buys =
|Food = Food
|Sells = Food
|Food =
|#default = }}
|#default = }}


|Gina = {{#switch: {{{2}}}
|Gina = {{#switch: {{{2}}}
|Buys =
|Buys =
|Food = Food
|Sells = Food
|Food =  
|#default = }}
|#default = }}


Line 125: Line 132:
|Armor = Travelling_Shoes;
|Armor = Travelling_Shoes;
|Jewelry = <!--TODO-->
|Jewelry = <!--TODO-->
|Books & Notes = <!--TODO-->
|Books & Notes = <!--TODO -> Use "|Scrolls" instead.-->
|Beverages = Mannshire_Fortified
|Consumables = Bread;Cheese;Morel;Mannshire_Fortified
|Food = Bread;Cheese;Morel
|Medicine = Bandage;Healing_Salve;Herbal_Extract
|Medicine = Bandage;Healing Salve;Herbal_Extract
|Valuables = <!--TODO-->
|Valuables = <!--TODO-->
|Scrolls = <!--TODO-->
|Scrolls = <!--TODO-->

Revision as of 21:40, 27 January 2025


This article is a stub. You can help Stoneshard wiki by expanding it.

Page for all Stoneshard NPC Loot data. [TEST]

---

NPCLoot data is maintained manually (for now).

This template is a standalone from the Friendly data template and data, which was used to gather some of the data from each NPC, along with the extra data added in their own pages.

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.

To adapt to the official. The template {{NPCLootTable/row}}, uses the following categories, only for sub-categories:

  • Unfortunately, this needs to be changed manually, for every NPC. This is where Friendly NPC and NPCLoot data differ from each other.
  • This would require a "complete" rewrite of the NPCs infos, to compell with the game icon categories.
 
|SubCategories = {{switch:{{#var:IconCategory}}
|Food = Consumables;
|Beverages = Consumables;
|Drinks = Consumables;
|Wateskin = Consumables;
"Loot" = <!--TBD -> Most likely, the difference between Jewelry and Valuables-->;
|Junk = Other;
|Herbs = Medicine;
"Reagents" = <!--TBD -> Most likely, food additives & ? -->;
|Books & Notes = Scrolls;
|Tools & Traps = Tools;
|Misc = Other;
#default = All}} <!--When icon not found.-->

  • I could not think of a better way to do this icon verification, without a proper loop or a better way to handle the data. So i will leave this as is, and change manually, as needed.
  • The thing is, manually cchanging this table, requires you to go to the NPC page, and verify the items listed there and their categories, then update the NPCLoot data page, with the correct categories.

You can base it on the "old" NPC page, and list the types of items he sells like this:

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: