Item cost

Hello all

Ive got simple question. Can i change cost of items on my own ?.

I have got with this big problem becouse extension of proper file is "bp." and i dont know how to open it and also I cannot convert it becouse converert does not know extension of that type. Please need help becouse I like to moderate games :)

3,284 views 1 replies
Reply #1 Top

You can do it as a mod non-destrutively

1) Follow the instructions to make a mod (folder and mod info)
2) create your own Mod_Units.bp file (this is a text file with the .bp extension)
3) Override the costs using the data structure that can be found in your dgdata.zip's units\ug\b\ugbshopXX file (where XX is the specific shop number for each page of items in the store)

eg: In the Mod_Units.bp file of my Balmod mod here is the structure of the consumable price changes, and this is overwritng the values in the DGDATA.zip's units\ug\b\ugbshop05\UGBShop05Consumables_unit.bp file.

Code: c++
  1. UnitBlueprint {
  2.     BlueprintId = "ugbshop05consumables",
  3.     Merge = true,
  4.     Shop = {
  5.     Tree = {
  6.         # Combat Health
  7.             Item_Health_Potion_Art = {
  8.                 Cost = 375,
  9.                 ItemBP = 'Item_Health_Potion_Art',
  10.             },
  11.             # Large Health
  12.             Item_Large_Health_Potion_Art = {
  13.                 Cost = 750,
  14.                 ItemBP = 'Item_Large_Health_Potion_Art',
  15.             },
  16.             # Combat Mana
  17.             Item_Mana_Potion_Art = {
  18.                 Cost = 400,
  19.                 ItemBP = 'Item_Mana_Potion_Art',
  20.             },
  21.             # Large Mana
  22.             Item_Large_Mana_Potion_Art = {
  23.                 Cost = 750,
  24.                 ItemBP = 'Item_Large_Mana_Potion_Art',
  25.             },
  26.             # Combat Rejuv
  27.             Item_Rejuv_Elixir_Art = {
  28.                 Cost = 500,
  29.                 ItemBP = 'Item_Rejuv_Elixir_Art',
  30.             },
  31.             # Large Rejuv
  32.             Item_Large_Rejuv_Elixir_Art = {
  33.                 Cost = 900,
  34.                 ItemBP = 'Item_Large_Rejuv_Elixir_Art',
  35.             },
  36.     },
  37.     },
  38. }