Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3

Author Topic: Good-region Interaction?  (Read 6013 times)

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Good-region Interaction?
« on: May 15, 2012, 04:08:47 pm »

I'd like to make it so that good regions ressurect dead things.

Here's the interaction I've guessed at:
Code: [Select]
[INTERACTION:GOOD_RESSURECTION]
[I_SOURCE:REGION]
[IS_REGION:GOOD_ONLY]
[IS_REGION:SAVAGE_ALLOWED]
[IS_REGION:ANY_TERRAIN]
[IS_FREQUENCY:100]
[I_TARGET:A:CORPSE]
[IT_LOCATION:CONTEXT_REGION]
[IT_AFFECTED_CLASS:GENERAL_POISON]
[IT_REQUIRES:FIT_FOR_ANIMATION]
[IT_FORBIDDEN:NOT_LIVING]
[I_EFFECT:RESURECT]
[IE_TARGET:A]
[IE_INTERMITTENT:WEEKLY]

If I'm not mistaken, this means that, every week, a bunch of corpses would be resserected in all good areas. Is this right? If not, what did I screw up?
« Last Edit: May 15, 2012, 04:13:55 pm by GreatWyrmGold »
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

ab9rf

  • Bay Watcher
    • View Profile
    • ab9rf@github
Re: Good-region Interaction?
« Reply #1 on: May 15, 2012, 04:10:26 pm »

Aside from misspelling "resurrect"?
Logged

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: Good-region Interaction?
« Reply #2 on: May 15, 2012, 04:13:32 pm »

Yeah, other than that.
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

Mrhappyface

  • Bay Watcher
    • View Profile
Re: Good-region Interaction?
« Reply #3 on: May 15, 2012, 04:19:43 pm »

Why would you do that in a good biome?  :'(
Logged
This is Dwarf Fortress. Where torture, enslavement, and murder are not only tolerable hobbies, but considered dwarfdatory.

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: Good-region Interaction?
« Reply #4 on: May 15, 2012, 04:21:28 pm »

...What do you mean, exactly? It seems like it would have both ups and downs, but overall, resurecting the dead seems very good-ey.
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

arzzult

  • Bay Watcher
  • This statement is false.
    • View Profile
Re: Good-region Interaction?
« Reply #5 on: May 15, 2012, 04:23:48 pm »

Why would you do that in a good biome?  :'(

Resurrect, as in actually come back to life. Not reanimate, as in be filled with an unnatural mockery of life. There is an issue that they will be resurrected with the wounds that killed them and will drop dead again right away. To fix this you can go dig in the spellbook thread and rip off ArKFallen's resurrect/transform combo that brings them back to life fully healthy.
Logged
I just realized two things. 1. For the Win and F___ the World have the same initials. 2. They have the same meaning in Dwarf Fortress.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Good-region Interaction?
« Reply #6 on: May 15, 2012, 04:34:10 pm »

Yep, transform them for one tick into a random creature, or even a custom one named "a fully healed creature" to make it look nicer.
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 :::

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: Good-region Interaction?
« Reply #7 on: May 15, 2012, 04:50:57 pm »

Just to check, something like

Code: [Select]
[INTERACTION:GOOD_RESSURECTION]
[I_SOURCE:REGION]
[IS_REGION:GOOD_ONLY]
[IS_REGION:SAVAGE_ALLOWED]
[IS_REGION:ANY_TERRAIN]
[IS_FREQUENCY:100]
[I_TARGET:A:CORPSE]
[IT_LOCATION:CONTEXT_REGION]
[IT_AFFECTED_CLASS:GENERAL_POISON]
[IT_REQUIRES:FIT_FOR_ANIMATION]
[IT_FORBIDDEN:NOT_LIVING]
[I_EFFECT:RESURECT]
[IE_TARGET:A]
[IE_INTERMITTENT:WEEKLY]
[SYNDROME]
[SYN_CLASS:HEALING]
[CE_BODY_TRANSFORMATION:START:0:END:1][CE_CREATURE:DWARF:MALE]

that?
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Good-region Interaction?
« Reply #8 on: May 15, 2012, 04:52:37 pm »

Yes, that should be it. :)
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 :::

arzzult

  • Bay Watcher
  • This statement is false.
    • View Profile
Re: Good-region Interaction?
« Reply #9 on: May 15, 2012, 04:53:58 pm »

Nope.

[CE_CREATURE:DWARF:MALE]

should be

[CE:CREATURE:DWARF:MALE]
Logged
I just realized two things. 1. For the Win and F___ the World have the same initials. 2. They have the same meaning in Dwarf Fortress.

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: Good-region Interaction?
« Reply #10 on: May 16, 2012, 06:53:25 am »

Alright, I put it into interaction_standard but nothing happened in a good biome. However, I did get an errorlog:

Code: [Select]
GOOD_RESSURECTION:Unrecognized Interaction Effect Type: RESURECT
GOOD_RESSURECTION:Unrecognized Interaction Token: IE_TARGET
GOOD_RESSURECTION:Unrecognized Interaction Token: IE_INTERMITTENT
GOOD_RESSURECTION:Unrecognized Interaction Token: SYNDROME
GOOD_RESSURECTION:Unrecognized Interaction Token: SYN_CLASS
GOOD_RESSURECTION:Unrecognized Interaction Token: CE_BODY_TRANSFORMATION
GOOD_RESSURECTION:Unrecognized Interaction Token: CE

I think I screwed up.
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

Naryar

  • Bay Watcher
  • [SPHERE:VERMIN][LIKES_FIGHTING]
    • View Profile
Re: Good-region Interaction?
« Reply #11 on: May 16, 2012, 08:42:51 am »

This may not be a "good" interaction. Imagine an interaction resurrecting a goblin siege or a dragon at just the wrong time.

Although of course, if good = FUN, my statement means nothing  :P

Or just restrict the interaction to [GOOD] creatures. Cue players having great fun with unicorns.
« Last Edit: May 16, 2012, 08:45:40 am by Naryar »
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Good-region Interaction?
« Reply #12 on: May 16, 2012, 09:32:37 am »

[INTERACTION:RESSURECT]
   [I_SOURCE:REGION]
      [IS_REGION:GOOD_ONLY]
      [IS_REGION:ANY_TERRAIN]
      [IS_FREQUENCY:100]
   [I_TARGET:A:CORPSE]
      [IT_LOCATION:CONTEXT_ITEM]
      [IT_AFFECTED_CLASS:DWARF_INTER]
      [IT_REQUIRES:FIT_FOR_RESURRECTION]
      [IT_CANNOT_HAVE_SYNDROME_CLASS:RESSURECT]
      [IT_MANUAL_INPUT:corpses]
   [I_EFFECT:RESURRECT]
      [IE_TARGET:A]
      [IE_IMMEDIATE]
      [SYNDROME]
      [SYN_NAME:revival shock]
      [SYN_CLASS:RESSURECT]
      [CE_BODY_TRANSFORMATION:START:0:END:10]
         [CE:CREATURE:DWARF_HEAL:GENERIC]

This one should do it, and only affect creature with the class DWARF_INTER, which of course would be only dwarves, to make the reagion more... good. Would lead to no one really dieing, ever...
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 :::

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Good-region Interaction?
« Reply #13 on: May 16, 2012, 10:08:39 am »

Ninja'd by Meph, but you spelled Resurrect wrong thats why. drop this in the I_EFFECT:""RESURRECT""
Logged

Naryar

  • Bay Watcher
  • [SPHERE:VERMIN][LIKES_FIGHTING]
    • View Profile
Re: Good-region Interaction?
« Reply #14 on: May 16, 2012, 10:09:08 am »

[INTERACTION:RESSURECT]
   [I_SOURCE:REGION]
      [IS_REGION:GOOD_ONLY]
      [IS_REGION:ANY_TERRAIN]
      [IS_FREQUENCY:100]
   [I_TARGET:A:CORPSE]
      [IT_LOCATION:CONTEXT_ITEM]
      [IT_AFFECTED_CLASS:DWARF_INTER]
      [IT_REQUIRES:FIT_FOR_RESURRECTION]
      [IT_CANNOT_HAVE_SYNDROME_CLASS:RESSURECT]
      [IT_MANUAL_INPUT:corpses]
   [I_EFFECT:RESURRECT]
      [IE_TARGET:A]
      [IE_IMMEDIATE]
      [SYNDROME]
      [SYN_NAME:revival shock]
      [SYN_CLASS:RESSURECT]
      [CE_BODY_TRANSFORMATION:START:0:END:10]
         [CE:CREATURE:DWARF_HEAL:GENERIC]

This one should do it, and only affect creature with the class DWARF_INTER, which of course would be only dwarves, to make the reagion more... good. Would lead to no one really dieing, ever...

Unless the corpse is destroyed of course.

Also, we must test if dismembering creates several dwarf clones from each dwarf bodypart ?
Pages: [1] 2 3