Bay 12 Games Forum

Dwarf Fortress => DF Dwarf Mode Discussion => Topic started by: Amdy_vill on May 17, 2018, 10:10:08 am

Title: can you have [CASTE:FEMALE] and another [CASTE:FEMALE] undead the same creature
Post by: Amdy_vill on May 17, 2018, 10:10:08 am
so can you have [CASTE:FEMALE] and another [CASTE:FEMALE] undead the same creature. i a wondering as i am trying to make more realistic litter sizes for animals. I want there to be several female castes with different litter sizes and the more extreme ones are less likely to happen.
Title: Re: can you have [CASTE:FEMALE] and another [CASTE:FEMALE] undead the same creature
Post by: Telgin on May 17, 2018, 11:27:23 am
What's this about undead?  Did you mean under?

To answer the question directly though, you can't have two [CASTE:FEMALE] on the same creature, but you can definitely have multiple castes that are [FEMALE].  I don't have any raws handy to use as a reference, but the general idea is that you want to copy the [CASTE:FEMALE] section multiple times and just rename them to something like [CASTE:FEMALE1], [CASTE:FEMALE2] and so on.  You'll also want to adjust the caste frequencies with [POP_RATIO], otherwise you'll end up with more females than males.

The actual tags should be here for more reference: Creature Tokens (http://dwarffortresswiki.org/index.php/DF2014:Creature_token).
Title: Re: can you have [CASTE:FEMALE] and another [CASTE:FEMALE] undead the same creature
Post by: Ogdibus on May 17, 2018, 04:57:12 pm
For a minute, I thought that you were saying that casts could be tokens, and it blew my mind. x3

So, the "male" and "female" casts are named after their reproductive tokens?

If you have [CASTE:LADY] and [CASTE:HUSSY], they would probably both have the [FEMALE] token, but neither would be a [CASTE:FEMALE]?

If you have [CASTE:WORKER] and [CASTE:QUEEN], modeled after ants and bees, would only the queen would have the [FEMALE] token, even though we think of the workers as sterile females?  Could you give workers the [FEMALE] token and a zero litter size, instead?

I'm getting way more interested in this than I had expected.
Title: Re: can you have [CASTE:FEMALE] and another [CASTE:FEMALE] undead the same creature
Post by: Telgin on May 18, 2018, 03:25:31 pm
That's all pretty much correct, but I'm not sure what happens if you try to make the workers female with a litter of size 0.  My hunch is that the game will force a minimum size of 1, and it'll only work as intended if you leave he [FEMALE] tag off altogether for that caste.
Title: Re: can you have [CASTE:FEMALE] and another [CASTE:FEMALE] undead the same creature
Post by: TubaDragoness on May 20, 2018, 11:26:09 pm
Caste names must be unique, but you can have multiple [FEMALE] tokens, as said. I created a critter based off a book, something like a small dragon that comes in specific colors linked to sex. Two of them were female, both capable of producing egg clutches, but the "queens" consistently produced bigger and healthier clutches. Sadly, there was no way to limit which castes were valid offspring, but I was able to manage giving the "lesser" female a very small clutch size and the "queen" a larger one.

This was several versions ago, but I don't think that much has changed in the token level. I'm doing it again from scratch, so if I have success (or not), I'll share code bits.

Ants and bees in-game only have the [FEMALE] token on the queen caste; workers are genderless.

(Also, this is probably better suited to the modding forum. Just sayin.)
Title: Re: can you have [CASTE:FEMALE] and another [CASTE:FEMALE] undead the same creature
Post by: CaptainArchmage on May 23, 2018, 02:19:33 pm
For a minute, I thought that you were saying that casts could be tokens, and it blew my mind. x3

So, the "male" and "female" casts are named after their reproductive tokens?

If you have [CASTE:LADY] and [CASTE:HUSSY], they would probably both have the [FEMALE] token, but neither would be a [CASTE:FEMALE]?

If you have [CASTE:WORKER] and [CASTE:QUEEN], modeled after ants and bees, would only the queen would have the [FEMALE] token, even though we think of the workers as sterile females?  Could you give workers the [FEMALE] token and a zero litter size, instead?

I'm getting way more interested in this than I had expected.

There are two sex tags, [MALE] and [FEMALE], which are tags that can be set inside a caste. You can just remove the sex tags, so there isn't any sex assigned. You can have any number of castes I believe (OK, might be a breaking point). I came across this in Genesis originally, at the end of 2010 or so. This mod had different castes or tribes of dwarves and each tribe or caste had to have a male and female version. It might be possible to just exclude the litter tags assuming there is no default setting.

I don't think hermaphroditic species are implemented though some of the creatures in dwarf fortress are, in real life, hermaphrodites.
Title: Re: can you have [CASTE:FEMALE] and another [CASTE:FEMALE] undead the same creature
Post by: voliol on May 24, 2018, 11:15:27 am
I don't think hermaphroditic species are implemented though some of the creatures in dwarf fortress are, in real life, hermaphrodites.
Looking at slugs, snails and earthworms (who are all hermaphroditic in real life), they all lack sex castes (and tokens). I would assume the way the tokens currently work the latter either supersedes the former if both are used, or it causes some very weird buggy behavior that Toady gave up on fixing when originally implementing these hermaphroditic creatures.
It'd probably be worth investigating, though.
Title: Re: can you have [CASTE:FEMALE] and another [CASTE:FEMALE] undead the same creature
Post by: scourge728 on May 25, 2018, 06:17:47 pm
Caste names must be unique, but you can have multiple [FEMALE] tokens, as said. I created a critter based off a book, something like a small dragon that comes in specific colors linked to sex. Two of them were female, both capable of producing egg clutches, but the "queens" consistently produced bigger and healthier clutches. Sadly, there was no way to limit which castes were valid offspring, but I was able to manage giving the "lesser" female a very small clutch size and the "queen" a larger one.

This was several versions ago, but I don't think that much has changed in the token level. I'm doing it again from scratch, so if I have success (or not), I'll share code bits.

Ants and bees in-game only have the [FEMALE] token on the queen caste; workers are genderless.

(Also, this is probably better suited to the modding forum. Just sayin.)

I feel as though I know what book that is