Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Gender Specific Syndromes  (Read 799 times)

HFS Victim

  • Bay Watcher
    • View Profile
Gender Specific Syndromes
« on: June 11, 2014, 01:33:01 am »

This is specifically a question about the body transformation syndrome. Is it possible to have a syndrome that selectively transforms dwarves depending on their gender?
The reason I ask is that I'd like to have dwarves transform into a given race while retaining their previous gender, and as the CE_BODY_TRANSFORMATION effect has the argument [CE:CREATURE:[Creature name in raws]:[caste]]. I'd like to avoid transforming dwarves all into one gender; what would the caste name need to be?

Is it possible to create two syndromes on a single material? This could be a solution, but it seemed that the tags on the second overwrote the first. I was using the SYN_IMMUNE_CREATURE tag to prevent males from getting the female syndrome and vice versa; the female version was second, and it made it so that the syndrome only affected female dwarves.

An answer to either question would solve my problem.
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Gender Specific Syndromes
« Reply #1 on: June 11, 2014, 07:38:14 am »

Yes.

Do a mass replacement for all creatures, adding CREATURE_CLASS:MALE to all male castes, and CREATURE_CLASS:FEMALE to all female castes. Then make the syndrome affect only the fitting class with SYN_AFFECTED_CLASS:MALE or FEMALE.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: Gender Specific Syndromes
« Reply #2 on: June 11, 2014, 09:40:33 am »

Meph's solution will work generally across any species of victim.  If you are interested in affecting only one or two species, then it's probably easier to specify them in the syndrome with SYN_AFFECTED_CREATURE tags.

Here's a really silly example of a gender-preserving syndrome.

Code: [Select]
interaction_man_bites_dog

[OBJECT:INTERACTION]

[INTERACTION:WEREHUMAN_CURSE]

[I_SOURCE:DEITY]
[IS_USAGE_HINT:MAJOR_CURSE]
[IS_HIST_STRING_1: cursed ]
[IS_HIST_STRING_2: to assume the form of a squishy human every new moon]

[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_AFFECTED_CREATURE:WOLF:ALL]
[IT_FORBIDDEN:NOT_LIVING]
[IT_FORBIDDEN:SUPERNATURAL]
[IT_CANNOT_HAVE_SYNDROME_CLASS:WERECURSE]
[IT_CANNOT_HAVE_SYNDROME_CLASS:VAMPCURSE]
[IT_CANNOT_HAVE_SYNDROME_CLASS:DISTURBANCE_CURSE]

[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[IE_ARENA_NAME:Wereman]
[SYN_AFFECTED_CREATURE:WOLF:MALE]
[SYN_CLASS:WERECURSE]
[CE_BODY_TRANSFORMATION:START:0]
[CE:CREATURE:HUMAN:MALE]
[CE:PERIODIC:MOON_PHASE:12:16]
[CE_ADD_TAG:NO_AGING:START:0]

[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[IE_ARENA_NAME:Werewoman]
[SYN_AFFECTED_CREATURE:WOLF:FEMALE]
[SYN_CLASS:WERECURSE]
[CE_BODY_TRANSFORMATION:START:0]
[CE:CREATURE:HUMAN:FEMALE]
[CE:PERIODIC:MOON_PHASE:12:16]
[CE_ADD_TAG:NO_AGING:START:0]



[INTERACTION:WEREHUMAN_BITE]

[I_SOURCE:ATTACK]
[IS_HIST_STRING_1: bit ]
[IS_HIST_STRING_2:, passing on the werehuman curse]

[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_AFFECTED_CREATURE:WOLF:ALL]
[IT_FORBIDDEN:NOT_LIVING]
[IT_FORBIDDEN:SUPERNATURAL]
[IT_CANNOT_HAVE_SYNDROME_CLASS:WERECURSE]
[IT_CANNOT_HAVE_SYNDROME_CLASS:VAMPCURSE]
[IT_CANNOT_HAVE_SYNDROME_CLASS:DISTURBANCE_CURSE]


[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[SYN_AFFECTED_CREATURE:WOLF:MALE]
[SYN_CLASS:WERECURSE]
[CE_BODY_TRANSFORMATION:START:16800]
[CE:CREATURE:HUMAN:MALE]
[CE:PERIODIC:MOON_PHASE:12:16]

[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[SYN_AFFECTED_CREATURE:WOLF:FEMALE]
[SYN_CLASS:WERECURSE]
[CE_BODY_TRANSFORMATION:START:16800]
[CE:CREATURE:HUMAN:FEMALE]
[CE:PERIODIC:MOON_PHASE:12:16]

Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

HFS Victim

  • Bay Watcher
    • View Profile
Re: Gender Specific Syndromes
« Reply #3 on: June 12, 2014, 12:42:42 am »

I plan on using this syndrome applied to a material with a [SYN_INHALED] tag. The werehuman example is excellent, and what I'll emulate to have it spread throughout the fortress, but how can I have the gender preserving option on a simple material definition? Is it possible to use the interaction definitions as listed above in that case?
« Last Edit: June 12, 2014, 12:54:47 am by HFS Victim »
Logged