Darkest Dungeon®

Darkest Dungeon®

View Stats:
o'night Sep 15, 2017 @ 11:39am
Is it possible to edit trinkets?
without replacing whole base.entries.trinkets.json file?
< >
Showing 1-9 of 9 comments
RedKirby Sep 22, 2017 @ 11:39am 
Yes. Just open it using a notepad. You'll need to change the line after <buff>. Example:

{
"id" : "ancestors_pistol",
"buffs" :
[
"TRINKET_rangedonly_ACC_B4",
"TRINKET_ANCESTOR_STRESSDMG"
],
"hero_class_requirements":
[
],
"rarity" : "ancestral",
"price" : 20000,
"limit" : 1,
"origin_dungeon" : ""
},

If you replace "TRINKET_ANCESTOR_STRESSDMG" with "STRESSDMG-20" you'll get a trinket that reduce stress damage instead of increasing it. Got to be careful though since the coding is sensitive to syntax etc. If you decide to add a feature like "PROT10" ontop of "STRESSDMG-20" you need to write it like:

"PROT10", <= (comma is needed here)
"STRESSDMG-20"
],
o'night Sep 22, 2017 @ 11:51am 
It still replaces the whole file
Muscarine Sep 22, 2017 @ 12:00pm 
Originally posted by RedKirby:
snip

Doesn't work like that at all ? Where you got your info ?

These

"TRINKET_rangedonly_ACC_B3", "TRINKET_SPD_B3", "TRINKET_ANCESTOR_STRESSDMG"

are just buff ids pointers, they refer to the base.buffs.json located in the shared folder

In your example if you wanted to change the stress effect as you described, you'd have to pick this entry, in base.buffs.json

{ "id" : "TRINKET_ANCESTOR_STRESSDMG", "stat_type" : "stress_dmg_received_percent", "stat_sub_type" : "", "amount" : 0.1, "remove_if_not_active" : false, "rule_type" : "always", "is_false_rule" : false, "rule_data" : { "float" : 0, "string" : "" } },

and change
"amount" : 0.1,

with
"amount" : -0.2,

Also your base.entries.trinkets.json is outdated.

@OP No i don't think so, you may create an override and use the same buff ids but that will most likely end up giving you either an error or multiple buffs on the same id.
o'night Sep 22, 2017 @ 12:02pm 
For example.
I want to make 2 mods: 1 that changes stats on HWM trinkets and second that changes GR trinkets. And I want those mods to work together or separately
Muscarine Sep 22, 2017 @ 12:11pm 
Originally posted by O'Nightmare!:
For example.
I want to make 2 mods: 1 that changes stats on HWM trinkets and second that changes GR trinkets. And I want those mods to work together or separately

Last part is simple, overrides :
Make a highwayman.entries.trinkets.json and a grave_robber.entries.trinkets.json in each mod's respective trinkets folder, and code the buff ids in a highwayman.overrides.buffs & grave_robber.overrides.buffs inside the shared/buffs folders.

Now your problem is that the game also gets references to the highwayman and grave_robber class ids from the base .json's.
Hence why either error or overlapping buffs

I don't think there's an elegant solution to the problem other than creating replacers, or making clone classes which get their buffs from seaparate mod files and disable their vanilla counterpart
o'night Sep 22, 2017 @ 12:12pm 
The thing is that file " grave_robber.entries.trinkets.json" doesn't change stats on base trinkets at all. It can add new trinkets but not change or override existing ones. Or maybe i'm doing something wrong
Last edited by o'night; Sep 22, 2017 @ 12:13pm
Muscarine Sep 22, 2017 @ 12:13pm 
Originally posted by O'Nightmare!:
The thing is that file " grave_robber.entries.trinkets.json" doesn't change stats on base trinkets at all.

Well there's your error, class id already called in the base.entries.trinkets.json so most likely it takes priority
RedKirby Sep 22, 2017 @ 2:53pm 
Originally posted by Muscarine:
Originally posted by RedKirby:
snip

Doesn't work like that at all ? Where you got your info ?

Trial and error in my game right now.

Tried both STRSSDMG-20 and PROT20 on calming crystals and protection stones. I mean I didn't exhaustively test it but the hero stats updated properly for prot and I was taking less stress damage. Other than a hard limit on 3 buffs, they seem to work properly the way I did it.

For what it's worth, I'm playing on the base game (no crimson countess) with the latest Pitch Black Dungeon mod (literally days old download), but I used similar codes in the past on the base game as well. Maybe the countess DLC changed these files, that I don't know.
Last edited by RedKirby; Sep 22, 2017 @ 2:54pm
Muscarine Sep 22, 2017 @ 11:16pm 
Originally posted by RedKirby:
Originally posted by Muscarine:

Doesn't work like that at all ? Where you got your info ?

Trial and error in my game right now.

Tried both STRSSDMG-20 and PROT20 on calming crystals and protection stones. I mean I didn't exhaustively test it but the hero stats updated properly for prot and I was taking less stress damage. Other than a hard limit on 3 buffs, they seem to work properly the way I did it..

That's because STRESSDMG-20 actually refers to an existing buff id, but if you plan to fiddle with trinkets i recommend you create your own buffs instead
For example STRESSDMG-12 doesn't exist
See what i mean ?
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Sep 15, 2017 @ 11:39am
Posts: 9