Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: making dwarf children grow up faster  (Read 5720 times)

meowmix

  • Bay Watcher
    • View Profile
making dwarf children grow up faster
« on: June 21, 2010, 03:18:11 am »

is there a way to mod the dwarf files to make children grow up instantly or something?

and if i do this would existing children stay as children forever.
Logged

rgon842

  • Bay Watcher
    • View Profile
Re: making dwarf children grow up faster
« Reply #1 on: June 21, 2010, 03:39:57 am »

Look for the [CHILD:12] tag under the [CREATURE:DWARF] entry in creature_standard.txt; proceed to change the number 12 to the number of years dorfs spend as children. Changing this to 1, for example, makes dwarves spend one year as babies, one year as children, and then mature into adulthood.

For something even faster, you can erase the [BABY:1] tag from the dwarf entry; newborn dwarves are birthed as children instead of babies, and in one year, you have grown adults to use as you see fit.
Logged

Old-one-eye

  • Bay Watcher
  • Good Day to you! Fhtagn!
    • View Profile
Re: making dwarf children grow up faster
« Reply #2 on: June 21, 2010, 08:28:26 am »

Would it be necessary to regen for this?
Logged
Quote from: breadbocks
ENRAGED
Quote from: Snook
Breadbocks has gone berserk!

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: making dwarf children grow up faster
« Reply #3 on: June 21, 2010, 09:03:13 am »

No it shouldn't, but I don't know how would it work for the existing babies/children.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

meowmix

  • Bay Watcher
    • View Profile
Re: making dwarf children grow up faster
« Reply #4 on: June 21, 2010, 01:09:16 pm »

if i removed both child and baby tags would dwarves be born as adults?
Logged

darkflagrance

  • Bay Watcher
  • Carry on, carry on
    • View Profile
Re: making dwarf children grow up faster
« Reply #5 on: June 21, 2010, 01:11:45 pm »

Current children will grow up instantly the next time the game checks for changes in age if childhood is modded away.

And adults will give birth to adults.

Logged
...as if nothing really matters...
   
The Legend of Tholtig Cryptbrain: 8000 dead elves and a cyclops

Tired of going decades without goblin sieges? Try The Fortress Defense Mod

Lord Urist

  • Bay Watcher
    • View Profile
Re: making dwarf children grow up faster
« Reply #6 on: June 21, 2010, 02:15:30 pm »

ummm... actually, I think if you remove the child tag altogether, you won't get any new dwarfs at all - it is the child tag that means they can reproduce. I think. Also, giving them [BABY:1][CHILD:1] might muck up the game a bit - because I think the values are not the number of years spent at that age, but the age they have to be. So I think the way it works out is:

0 - baby value -> babyhood
baby value - child value -> childhood
child value onwards -> adulthood

But if the baby value and child value are the same, they will have no childhood.
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: making dwarf children grow up faster
« Reply #7 on: June 21, 2010, 05:01:54 pm »

could one slap a [CHILD:0] to gain that effect?
Logged
I thought I would I had never hear my daughter's escapades from some boy...
DAMN YOU RUMRUSHER!!!!!!!!
"body swapping and YOU!"
Adventure in baby making!Adv Homes

rgon842

  • Bay Watcher
    • View Profile
Re: making dwarf children grow up faster
« Reply #8 on: June 21, 2010, 05:12:32 pm »

ummm... actually, I think if you remove the child tag altogether, you won't get any new dwarfs at all - it is the child tag that means they can reproduce. I think. Also, giving them [BABY:1][CHILD:1] might muck up the game a bit - because I think the values are not the number of years spent at that age, but the age they have to be. So I think the way it works out is:

0 - baby value -> babyhood
baby value - child value -> childhood
child value onwards -> adulthood

But if the baby value and child value are the same, they will have no childhood.

Lord Urist is actually right in this regard: If you have both the [BABY] and [CHILD] tags, they should not have the same value, as indeed a baby dwarf will have no childhood. Best bet in this case is:

[BABY:1]
[CHILD:2]

So the whole process from birth to adulthood takes 2 years.
Logged

meowmix

  • Bay Watcher
    • View Profile
Re: making dwarf children grow up faster
« Reply #9 on: June 21, 2010, 05:12:58 pm »

mm gettin kinda confused

so i should just remove the baby tag and set child tag to 1 right?

edit
Quote
Lord Urist is actually right in this regard: If you have both the [BABY] and [CHILD] tags, they should not have the same value, as indeed a baby dwarf will have no childhood. Best bet in this case is:

[BABY:1]
[CHILD:2]

So the whole process from birth to adulthood takes 2 years.

could i do baby-0 child 1?
Logged

Old-one-eye

  • Bay Watcher
  • Good Day to you! Fhtagn!
    • View Profile
Re: making dwarf children grow up faster
« Reply #10 on: June 21, 2010, 05:17:44 pm »

Having such short childhoods seems a bit too much like cheating [BABY:1], [CHILD:4] is short enough for me.
Logged
Quote from: breadbocks
ENRAGED
Quote from: Snook
Breadbocks has gone berserk!

rgon842

  • Bay Watcher
    • View Profile
Re: making dwarf children grow up faster
« Reply #11 on: June 21, 2010, 06:15:32 pm »

mm gettin kinda confused

so i should just remove the baby tag and set child tag to 1 right?

edit
Quote
Lord Urist is actually right in this regard: If you have both the [BABY] and [CHILD] tags, they should not have the same value, as indeed a baby dwarf will have no childhood. Best bet in this case is:

[BABY:1]
[CHILD:2]

So the whole process from birth to adulthood takes 2 years.

could i do baby-0 child 1?

For this, you should just get rid of the baby tag altoghether, and leave [CHILD:1]. Newborn dwarves emerge as children, and take one year to grow into adulthood.
Logged