Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

Barbarian Loot Definitions

Discussion in 'Modding' started by AedanXaelan, Dec 3, 2017.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. AedanXaelan Apprentice Engineer

    Messages:
    311
    Anybody know how to add a custom inventory item to the barbarian loot options? The place that made the most sense to me was LootTableDefinitions.sbc, but nothing I tried in there did anything.

    Any help would be appreciated, ty!
     
  2. Köbi 2 Apprentice Engineer

    Messages:
    147
    You cant change it directly in the game, it "fixes" itselfe on startup. You need to make a mod. In your modfolder .sbc you can add your item with that beautiful new append option. Something like this:

    <Definition xsi:type="MyObjectBuilder_LootTableDefinition"> Copy="Append">
    <CopyFrom Type="MyObjectBuilder_LootTableDefinition" Subtype="BarbarianBagContent" />
    <Id Type="LootTableDefinition" Subtype="BarbarianBagContent________" />
    </Definition>

    Of course you need to make your own LootTable with your Item:

    <Definition xsi:type="MyObjectBuilder_LootTableDefinition">
    <Id Type="LootTableDefinition" Subtype="BarbarianBagContent________" />
    <Rolls>2</Rolls>

    <Item Type="ConsumableItem" Subtype="---WhateverItem---" Weight="2.5" Amount="8" />

    </Definition>

    I have not tried it, but it works something like this.
     
  3. AedanXaelan Apprentice Engineer

    Messages:
    311
    APPEND! That's where I was failing! Thank you!

    (And yes, I meant as a mod, I realize now I worded that otherwise, though.)
     
  4. Köbi 2 Apprentice Engineer

    Messages:
    147
    So I looked at it, and it seems even easier for what you want "Merge="Append"".

    <Definition xsi:type="MyObjectBuilder_LootTableDefinition"> Merge="Append">
    <Id Type="LootTableDefinition" Subtype="BarbarianBagContent" />

    <Item Type="ConsumableItem(OrWhatever)" Subtype="YourItem" Weight="2.5" Amount="8" />

    </Definition>

    Like this maybe. :)
     
Thread Status:
This last post in this thread was made more than 31 days old.