Question about custom animals

Started by pablo603, July 24, 2018, 01:49:32 PM

Previous topic - Next topic

pablo603

Do I need to do something so they can show up in friendly caravans/trading ships?
As far as I know I didn't need to do anything in order to sell it.

If I have to do something to make them appear in trade screens, how can I do it?

PleccyMM

#1
If you want to have an animal appear in caravans as stock you need to make sure to have appropriate tradeTags. tradeTags specify which animals can be sold by which traders, this stops weapon specialists from stocking pigs and and instead suggests that they stock more dangerous animals.
Trade tags are set up as seen below at the very end of the ThingDef part of an animals code, not the PawnKindDef part:
Quote<tradeTags>
  <li>AnimalCommon</li>
  <li>AnimalFarm</li>
</tradeTags>
tradeTags for a cow in 1.0

There are several different tradeTags each which are fairly self-explanatory.

All the tradeTags in 1.0 are: AnimalFarm, AnimalCommon, AnimalUncommon, AnimalExotic and AnimalFighter. You'll always need 1 tradeTag specifying the rarity of the animal - these, in ascending order of rarity, are: AnimalCommon, AnimalUncommon then AnimalExotic.

The tradeTags in B18 are: StandardAnimal and BadassAnimal. You'll always need StandardAnimal as a tradeTag however BadassAnimal is only needed for more dangerous, or rarer, animals.

If you don't want an animal to appear in trade caravans, such as giant insects or thrumbos, don't specify any tradeTags and it won't appear. Hope this all makes sense - PleccyMM

pablo603

Quote from: PleccyMM on July 25, 2018, 03:59:32 AM
If you want to have an animal appear in caravans as stock you need to make sure to have appropriate tradeTags. tradeTags specify which animals can be sold by which traders, this stops weapon specialists from stocking pigs and and instead suggests that they stock more dangerous animals.
Trade tags are set up as seen below at the very end of the ThingDef part of an animals code, not the PawnKindDef part:
<tradeTags>
  <li>AnimalCommon</li>
  <li>AnimalFarm</li>
</tradeTags>
tradeTags for a cow in 1.0

There are several different tradeTags each which are fairly self-explanatory.

All the tradeTags in 1.0 are: AnimalFarm, AnimalCommon, AnimalUncommon, AnimalExotic and AnimalFighter. You'll always need 1 tradeTag specifying the rarity of the animal - these, in ascending order of rarity, are: AnimalCommon, AnimalUncommon then AnimalExotic.

The tradeTags in B18 are: StandardAnimal and BadassAnimal. You'll always need StandardAnimal as a tradeTag however BadassAnimal is only needed for more dangerous, or rarer, animals.

If you don't want an animal to appear in trade caravans, such as giant insects or thrumbos, don't specify any tradeTags and it won't appear. Hope this all makes sense - PleccyMM

Thanks for explaining and helping!