Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Domestication v0.1  (Read 414 times)

zaporozhets

  • Bay Watcher
    • View Profile
Domestication v0.1
« on: September 10, 2020, 06:49:13 pm »

A small DFHack mod allowing creatures to be domesticated and embarked with by a given civilization with when a certain level of experience with that animal is reached.

Successful training of animals will result in some knowledge being transferred to your civilization every time the Dwarven caravan returns to the Mountainhomes.
When the level of knowledge regarding a specific creature reaches a certain threshold, that animal can then be brought with you at the embark screen.

https://dffd.bay12games.com/file.php?id=15198

Bug reports appreciated.
Logged

Conor891

  • Bay Watcher
    • View Profile
Re: Domestication v0.1
« Reply #1 on: September 16, 2020, 05:53:15 am »

Hey there.

The script seems to give a error on manipulating the variable on starting a world in df.global.world.raws.creatures.all.flags.CASTE_COMMON_DOMESTIC on line 101

I checked my game through gm-editor and there doesn't seem to be a CASTE_COMMON_DOMESTIC in the flags table for a creature but there is a HAS_ANY_COMMON_DOMESTIC value and changing it to fit this seemed to make the error not come up.

I'll keep using it to see if it works.
Logged