Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Is it possible to give an entire race a syndrome?  (Read 1399 times)

Deinos

  • Bay Watcher
    • View Profile
Is it possible to give an entire race a syndrome?
« on: December 08, 2012, 05:19:02 pm »

So, I want to make werewolves (the civilization) from Fortress Defense into the same, or very similar thing, as werewolves from Fear The Night. Is it possible to simply give them all a werewolf syndrome at birth or do I have to basically fake it?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #1 on: December 08, 2012, 06:05:41 pm »

Yes, by giving that race an interaction that gives other memgers of the race the syndrome.

Deinos

  • Bay Watcher
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #2 on: December 09, 2012, 04:01:12 am »

So how would I make it so werewolves, as in the FD race (included second), automatically have the werewolf curse, as in the FTN mod, included first?



Werewolves (the syndrome):
Spoiler (click to show/hide)

Werewolves, the creature:

Spoiler (click to show/hide)
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #3 on: December 09, 2012, 09:32:03 pm »

Make a CREATURE_ACTION interaction that happens to be identical to the curse except for its source (CREATURE_ACTION, natch) and target (werewolves only, cannot target if already affected). Give werewolves the ability to use the interaction.

Robosaur

  • Bay Watcher
  • [POOP:INORGANIC: NUCLEAR_BOMBS]
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #4 on: December 09, 2012, 09:47:35 pm »

Would this be a thing during world generation, though? Wouldn't there be members of said civilization that don't get the syndrome?
Logged
You are a terrible person and the sad truth is deep down you know it.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #5 on: December 09, 2012, 10:38:39 pm »

It wouldn't happen in worldgen, but they would get the syndrome the instant they appear in gameplay.

Deinos

  • Bay Watcher
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #6 on: December 10, 2012, 12:03:31 am »

Would this be a thing during world generation, though? Wouldn't there be members of said civilization that don't get the syndrome?

I suspect this to be impossible, at least atm.

Make a CREATURE_ACTION interaction that happens to be identical to the curse except for its source (CREATURE_ACTION, natch) and target (werewolves only, cannot target if already affected). Give werewolves the ability to use the interaction.

Cool. But how do I make it so they DECIDE to use the action? Or will not putting a condition to use the action result in them immediately use it?

Can I just add [INTERACTION:WEREWOLF_CURSE_N] to the creature somewhere to simply give them the werewolf curse?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #7 on: December 10, 2012, 12:06:56 am »

No. The method that I gave is all that can be done.

Vattic

  • Bay Watcher
  • bibo ergo sum
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #8 on: December 10, 2012, 02:54:47 am »

There is another way.

If, for example, you give dwarves the following:
Code: [Select]
[CREATURE_CLASS:SICK_DWARF]
[USE_MATERIAL_TEMPLATE:FLUID:CREATURE_EXTRACT_TEMPLATE]
[STATE_NAME:ALL_SOLID:frozen dwarf spittle]
[STATE_NAME_ADJ:ALL_SOLID:frozen dwarf spittle]
[STATE_NAME:LIQUID:dwarf spittle]
[STATE_NAME_ADJ:LIQUID:dwarf spittle]
[STATE_NAME:GAS:boiling dwarf spittle]
[STATE_NAME_ADJ:GAS:boiling dwarf spittle]
[STATE_COLOR:ALL:LIGHT_BLUE]
[PREFIX:NONE]
[SYNDROME]
[SYN_NAME:dwarven sickness]
[SYN_AFFECTED_CLASS:SICK_DWARF]
[SYN_CONTACT]
[CE_NAUSEA:SEV:10000:PROB:100:START:0:PEAK:100000:END:200000]
[SECRETION:LOCAL_CREATURE_MAT:FLUID:LIQUID:BY_CATEGORY:MOUTH:SKIN]

Then dwarves will get a liquid called spittle on their mouths which makes them violently sick.
Logged
6 out of 7 dwarves aren't Happy.
How To Generate Small Islands

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #9 on: December 10, 2012, 11:44:59 am »

That wouldn't have any difference in regards to acting during world generation though, and would probably end up causing more lag in the long run (as the game would need to track contaminants and if it rained they would start leaking contaminants all over). Other then that it would work identically though.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

expwnent

  • Bay Watcher
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #10 on: December 11, 2012, 12:34:59 pm »

The secretion method would also work even if you only get one of them for some reason.
Logged

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #11 on: December 11, 2012, 01:09:59 pm »

That wouldn't have any difference in regards to acting during world generation though, and would probably end up causing more lag in the long run (as the game would need to track contaminants and if it rained they would start leaking contaminants all over).
Maybe you could make a non-vascular body part that's destroyed by dwarf body heat? So (to use the example above) instead of having the mouth produce spittle, you'd have salivary glands that produced spittle for long enough to transmit the syndrome, and then they'd melt and hopefully become non-functional. It'd lead to some oddness in any screens that displayed wounds though...
Logged
I am trying to make chickens lay bees as eggs. So far it only produces a single "Tame Small Creature" when a hen lays bees.
Honestly at the time, I didn't see what could go wrong with crowding 80 military Dwarves into a small room with a necromancer for the purpose of making bacon.

Lycaeon

  • Bay Watcher
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #12 on: December 11, 2012, 01:27:47 pm »

What about a self-targeting interaction?

Code: [Select]
[CAN_DO_INTERACTION:INSTALL_WEREWOLF]
[CDI:ADV_NAME:take on werewolf aspect]
[CDI:TARGET:A:SELF_ONLY]
[CDI:WAIT_PERIOD:1200]
[CDI:FREE_ACTION]

[INTERACTION:INSTALL_WEREWOLF]
[I_SOURCE:CREATURE_ACTION]
[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
[IT_MANUAL_INPUT:self]
[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[SYN_NAME:werewolf]
[CE_BODY_TRANSFORMATION:START:0]
             [CE:CREATURE:WEREBEAST:DEFAULT] (Your werebeast syndrome here)
             [CE:PERIODIC:MOON_PHASE:27:0]

The creature will automatically target itself only once, and then will have the werebeast syndrome.
« Last Edit: December 11, 2012, 01:30:50 pm by Lycaeon »
Logged
“I want to calm the storm, but the war is in your eyes.
How can I shield you from the horror and the lies?
When all that once held meaning is shattered, ruined, bleeding
And the whispers in the darkness tell me we won’t survive?”

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #13 on: December 11, 2012, 07:54:18 pm »

That'd be much neater, yes.

Would this necessarily show up as an announcement? It'd be a pretty neat way of tweaking vampire dwarves to temporarily have the same lack-of-tags as regular dwarves, giving them the ability to feed their alcohol dependence and maybe to blend in a little better overall.
Logged
I am trying to make chickens lay bees as eggs. So far it only produces a single "Tame Small Creature" when a hen lays bees.
Honestly at the time, I didn't see what could go wrong with crowding 80 military Dwarves into a small room with a necromancer for the purpose of making bacon.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Is it possible to give an entire race a syndrome?
« Reply #14 on: December 11, 2012, 07:58:46 pm »

Announcements only show up if you have VERB and/or TARGET_VERB.