Treasure: how is done?

:wave: Happy Cristhmast for everyone

--------------------
from:  X0_I0_TREASURE  scrip
If you would like to have special monster treasure (monster treasure
defaults to low treasure otherwise), you can also add any of these
base chests:

X0_TREASURE_MONSTER_<monster tag> - treasure found on monsters with
                                    the given tag. This will strip off
                                    any trailing digits, so for instance,
                                    NW_KOBOLD1, NW_KOBOLD2, NW_KOBOLD005 
                                    would all end up checking the chest 
                                    X0_TREASURE_MONSTER_NW_KOBOLD.

I have tagged the monsters as COFRE
and the referend chest as X0_TREASURE_MONSTER_COFRE
marked all doppleable
and the script set for monster the custom default.

but it don runs , could you help me, please?
Thanks

ok, its done, i only must the deafult script from the chest referenced…

but the possibilty is very, very low,

Could I increase it?
THANKS :slight_smile:

You might want to change this line (and recompile all scripts that reference it):

// * this is the percent chance that no treasure will be spawned by a creature dying
const int BK_CHANCE_OF_N0_MONSTERTREASURE = 80;

Also this:


// Probability of a single item being generated, 
// in percentage
int TREASURE_PROBABILITY_1 = 70;

// Probability of two items being generated, 
// in percentage
int TREASURE_PROBABILITY_2 = 20;

// Probability of an item being converted to gold
int TREASURE_GOLD_PROBABILITY = 35;