Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: making creatures milkable  (Read 1670 times)

Dame de la Licorne

  • Bay Watcher
  • Cats? Check. FPS? Uh-oh...
    • View Profile
making creatures milkable
« on: November 13, 2007, 08:39:00 pm »

I have no experience modding, so I hope someone here'll be able to point me in the right direction.  I want to make creatures such as cows and camels, etc, milkable.  
1) What do I have to change in the raws?
and
2) Do I have to gen a new world for the changes to take effect?
Thanks.
Logged
If software was real world, then it'd be something equivalent of hitting a nail with a hammer and having a building collapse on the other side of town.

Don't worry people, sometimes -moments occur

JT

  • Bay Watcher
  • Explosively Canadian
    • View Profile
    • http://www.jtgibson.ca/df/
Re: making creatures milkable
« Reply #1 on: November 13, 2007, 08:55:00 pm »

There's not a lot to it:

[EXTRACT :(animal)'s milk:foregroundcolor:backgroundcolor:brightness]
[MILKABLE:frequency] //the creature can be milked once every frequency frames
[EXTRACT_COOKABLE] //the dollop can be cooked and eaten
[EXTRACT_SIZE:10] //speculation: 10 weight units per dollop?

See CREATURE:MAGGOT_PURRING in creature_subterranean.txt.


Bear in mind that MILKABLE is broken, however, due to the fact that both males and females can be milked.  So if you add a milkable flag to cows, cows' milk in Dwarf Fortress will probably taste much saltier than usual.

[ November 13, 2007: Message edited by: JT ]

Logged
"The very existence of flamethrowers proves that some time, somewhere, someone said to themselves, 'You know, I want to set those people over there on fire, but I'm just not close enough to get the job done.'" --George Carlin

Dame de la Licorne

  • Bay Watcher
  • Cats? Check. FPS? Uh-oh...
    • View Profile
Re: making creatures milkable
« Reply #2 on: November 13, 2007, 08:58:00 pm »

Thanks!  And will I need to gen a new world?
Logged
If software was real world, then it'd be something equivalent of hitting a nail with a hammer and having a building collapse on the other side of town.

Don't worry people, sometimes -moments occur

Earthquake Damage

  • Bay Watcher
    • View Profile
Re: making creatures milkable
« Reply #3 on: November 13, 2007, 10:33:00 pm »

I never realized the missing token was why I couldn't milk cows.  I figured there was some bug that rendered non-vermin unmilkable.
Logged

Bouchart

  • Bay Watcher
  • [NO_WORK]
    • View Profile
Re: making creatures milkable
« Reply #4 on: November 14, 2007, 11:17:00 am »

If I wanted cows to be milkable every 3 months do you know what the frequency would be?  There doesn't seem to be any way to determine that.  Thanks in advance.
Logged

Dame de la Licorne

  • Bay Watcher
  • Cats? Check. FPS? Uh-oh...
    • View Profile
Re: making creatures milkable
« Reply #5 on: November 14, 2007, 04:01:00 pm »

The milking thing doesn't work.  In another thread someone said that milking was currently hardcoded so that only animals that can be picked up can be milked, so it looks like this'll have to wait until Toady changes the coding.  Oh well, I've put into the suggestions.
Logged
If software was real world, then it'd be something equivalent of hitting a nail with a hammer and having a building collapse on the other side of town.

Don't worry people, sometimes -moments occur

I3erent

  • Bay Watcher
  • The mounted dwarf has gone bErZeRk
    • View Profile
Re: making creatures milkable
« Reply #6 on: November 15, 2007, 11:32:00 am »

ya he said it is hardcoded
Logged
quot;I got really stoned a couple days ago and ended up talking to THIS GUY. anyway... I''m really drunk now. The guy said: There is this application called "Mya" MI-AH that makes animations of people that he paid $2000 for. F- that Jazz ARMOK ROCKS. FIGHT THE MAN, GO TEAM!

Hague

  • Bay Watcher
  • How do I shot web?
    • View Profile
Re: making creatures milkable
« Reply #7 on: December 22, 2007, 04:14:00 am »

So, what happens if you set the cows to [VERMIN_GROUNDER]?
Logged

Armok

  • Bay Watcher
  • God of Blood
    • View Profile
Re: making creatures milkable
« Reply #8 on: December 22, 2007, 10:34:00 am »

quote:
Originally posted by Hague:
<STRONG>So, what happens if you set the cows to [VERMIN_GROUNDER]?</STRONG>

Then adventurer mode will be fun!   :D
"The spinning live cow strikes the child in the head!"   :D

What I want to say is that making them vermin will have loads of side effects, vermin and normal creatures are fundamentally different in that vermin is handled like items rather than creatures by the game.

Edit: it would however probobly succeed in making them milkable.

[ December 22, 2007: Message edited by: Armok ]

Logged
So says Armok, God of blood.
Sszsszssoo...
Sszsszssaaayysss...
III...

TheSpaceMan

  • Bay Watcher
    • View Profile
    • http://www.digital-lifeform.com
Re: making creatures milkable
« Reply #9 on: December 25, 2007, 09:08:00 am »

The dangerous part is if your dwarfs are hungry.
"Chasing vermin for food."
Logged
Poking around with a DFParser.
Bodypart names, creatures names in one easily overviewable place.

Oh my new (old) picture?

Hague

  • Bay Watcher
  • How do I shot web?
    • View Profile
Re: making creatures milkable
« Reply #10 on: December 25, 2007, 11:11:00 am »

So what if they have the [VERMIN_GROUNDER] and [LARGE_ROAMING] tokens? Also, doesn't creature size become relative to how "heavy" the creature is? Cows are relatively large and so would probably weigh too much to be thrown very far (if at all)
Logged

penguinofhonor

  • Bay Watcher
  • Minister of Love
    • View Profile
Re: making creatures milkable
« Reply #11 on: December 26, 2007, 10:57:00 pm »

Bugs would happen. Vermin, I've heard, are nothing like regular animals in code. Which I would be inclined to believe, considering vermin can disappear every few steps. And they don't seem to mind falling into magma.
Logged