Soldak Entertainment Forums

Soldak Entertainment Forums (http://www.soldak.com/forums/index.php)
-   Din's Curse modding (http://www.soldak.com/forums/forumdisplay.php?f=24)
-   -   Mod to always drop 16 slot bags? (http://www.soldak.com/forums/showthread.php?t=38054)

Anotheragain 01-10-2019 05:18 PM

Mod to always drop 16 slot bags?
 
I recently got back into playing Din's Curse and I'm trying to make a mod where every monster I kill always drops a bag but I'm having trouble:

So I made modBags.gdb in /Database/Items

Code:

modBags overrides BaseBag
{
        Base                BaseItem

        ItemType        Bag

        BaseOnly        1

        ModifiersAllowed        0

        LevelRequirement        1

        ModelName        Models/Items/bag.mdl
        UseModelName        Models/Items/Items/bag.mdl
        DropSoundName        Sounds/Items/bag.wav
}

modBags overrides Bag7
{
        ItemLevel        1

        Size                16

        SpawnChance        100.0
}

Then I made modBags.gdb in /Database

Code:

modBags overrides SpawnSystem
{
       

ItemNormalChance 100
ItemCommonChance 15
ItemUncommonChance 100
ItemRareChance 100
ItemVeryRareChance 100
ItemSetChance 100
ItemUniqueChance 70
ItemArtifactChance 25
ItemLegendaryChance 25


}

I understand that for those particular bags to drop I'd have to mod the drop rate of normal items in general too but that's about it.

Not sure what I'm doing wrong? I would just like the monsters to drop bags without affecting the drop rates of anything else (I'm not looking for more Legendaries or for it to suddenly get in the way of Legendaries dropping for example).

Shadow 01-10-2019 06:02 PM

I don't know if it is the only problem, but you can't make all 3 overrides use the name modBags, they each need to be unique names.

Anotheragain 01-10-2019 08:12 PM

Ok I tried again:

modBags.zip/Directory/Items/modBags1.gdb

Code:

modBags1 overrides BaseBag
{
        Base                BaseItem

        ItemType        Bag

        BaseOnly        1

        ModifiersAllowed        0

        LevelRequirement        1

        ModelName        Models/Items/bag.mdl
        UseModelName        Models/Items/Items/bag.mdl
        DropSoundName        Sounds/Items/bag.wav
}

modBags.zip/Directory/Items/modBags2.gdb

Code:

modBags2 overrides Bag7
{
        ItemLevel        1

        Size                16

        SpawnChance        100.0
}

modBags.zip/Directory/modBags3.gdb

Code:

modBags3 overrides SpawnSystem
{
       

ItemNormalChance 100


}

But it still doesn't work :(

joku 01-11-2019 12:33 AM

All files in your mod should be structured as follows:
Quote:

modBags.zip/Database/modBags1.gdb
Even if the file you're overriding is in "Database/Items", your override file should still be in the "Database" folder.


All times are GMT -4. The time now is 09:09 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2007 - 2019 Soldak Entertainment, Inc.