Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: help with resurrecting creature  (Read 2253 times)

Hiul

  • Bay Watcher
    • View Profile
help with resurrecting creature
« on: February 10, 2017, 04:55:49 am »

i try to create interaction that resurrect my creature and it work, but the resurrected still missing his body part also its manage to resurrecting mutilated and even butchered part which get me spam of resurrect but dead again so what mistake in it or what should i add there?
also is my egg syndrome right ? to make my female egg laying civ incubating egg without need to eat and drink?

Code: [Select]
          [INTERACTION:DRAGOON_SALIVA]
                [I_SOURCE:CREATURE_ACTION]
                [I_TARGET:A:CORPSE]
                        [IT_LOCATION:CONTEXT_ITEM]
                        [IT_FORBIDDEN:NOT_LIVING]
                        [IT_AFFECTED_CREATURE:DRAGOON:MALE]
                        [IT_AFFECTED_CREATURE:DRAGOON:FEMALE]
                        [IT_REQUIRES:FIT_FOR_RESURRECTION]
                        [IT_MANUAL_INPUT:corpses]
                [I_EFFECT:RESURRECT]
                        [IE_TARGET:A]
                        [IE_IMMEDIATE]
                        [SYNDROME]
                                 [SYN_NAME:male Dragoon Ressurection]
                                 [SYN_CLASS:MALE]
                                 [IT_AFFECTED_CREATURE:DRAGOON:MALE]
                                 [SYN_CONTACT]
                                 [CE_BODY_TRANSFORMATION:START:0:END:1]
                                 [CE:CREATURE:DRAGOON:MALE]
                        [SYNDROME]
                                [SYN_NAME:female Dragoon Ressurection]
                                [SYN_CLASS:FEMALE]
                                [IT_AFFECTED_CREATURE:DRAGOON:FEMALE]
                                [SYN_CONTACT]
                                [CE_BODY_TRANSFORMATION:START:0:END:1]
                                [CE:CREATURE:DRAGOON:FEMALE]

[USE_MATERIAL_TEMPLATE:SPIT_DRAGOON_:SPIT_DRAGOON_TEMPLATE]
[STATE_COLOR:ALL_SOLID:CLEAR]
[STATE_NAME:ALL_SOLID:frozen Dragoon spit]
[STATE_ADJ:ALL_SOLID:frozen Dragoon spit]
[STATE_COLOR:LIQUID:CLEAR]
[STATE_NAME:LIQUID:Dragoon spit]
[STATE_ADJ:LIQUID:Dragoon spit]
[STATE_COLOR:GAS:CLEAR]
[STATE_NAME:GAS:boiling Dragoon spit]
[STATE_ADJ:GAS:boiling Dragoon spit]
                [I_SOURCE:CREATURE_ACTION]
                [I_TARGET:C:CORPSE]
                        [IT_FORBIDDEN:NOT_LIVING]
                        [IT_MANUAL_INPUT:corpses]
                        [IT_AFFECTED_CREATURE:DRAGOON:MALE]
                        [IT_AFFECTED_CREATURE:DRAGOON:FEMALE]
                        [IT_REQUIRES:FIT_FOR_RESURRECTION]
                [I_EFFECT:RESURRECT]
                        [IE_IMMEDIATE]
                        [IE_ARENA_NAME:Ressurected Dragoon corpse]
        [SYNDROME]
                [SYN_NAME:male Dragoon Ressurection]
                [SYN_CLASS:RESSURECT]
                [SYN_AFFECTED_CREATURE:DRAGOON:MALE]
                [CE_BODY_TRANSFORMATION:START:0:END:1]
                [CE:CREATURE:DRAGOON:MALE]
        [SYNDROME]
                [SYN_NAME:female Dragoon Ressurection]
                [SYN_CLASS:RESSURECT]
                [SYN_AFFECTED_CREATURE:DRAGOON:FEMALE]
                [CE_BODY_TRANSFORMATION:START:0:END:1]
                [CE:CREATURE:DRAGOON:FEMALE]


             [INTERACTION:DRAGOON_EGG_LAYING]
             [I_TARGET:A:CREATURE]
       [IT_LOCATION:CONTEXT_CREATURE]
                       [IT_FORBIDDEN:NOT_LIVING]
       [IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
                       [IT_AFFECTED_CREATURE:DRAGOON:FEMALE]
                       [IT_AFFECTED_CREATURE:LIZAURUS:FEMALE]
             [I_EFFECT:ADD_SYNDROME]
       [IE_TARGET:A]
       [IE_IMMEDIATE]
[SYNDROME]
                [SYN_NAME:Egg Incubation]
                [SYN_CLASS:FEMALE]
                [SYN_AFFECTED_CREATURE:DRAGOON:FEMALE]
                [SYN_CONTACT]
                [CE_ADD_TAG:NO_EAT:NO_DRINK:NO_SLEEP:START:0:END:302400]
[CE:COUNTER_TRIGGER:EGG_SPENT:0:302400:NONE:REQUIRED]
Logged

Gigabytebob

  • Bay Watcher
  • Thief! Protect the hoard from skulking filth!
    • View Profile
Re: help with resurrecting creature
« Reply #1 on: February 13, 2017, 07:21:00 am »

when you resurrect someone they will always stay mutilated and there body parts will come alive there is nothing you can do to fix that 
Logged
adamantine, the only material that can be honed to an edge so fine it can cut light, cleave steel like butter, and sever heads with the enthusiasm of a deranged bloodthirsty child.

Turn those goblinoid uglybolds into adorable cutebolds

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: help with resurrecting creature
« Reply #2 on: February 13, 2017, 07:54:54 am »

also if you resurrect anyone who has no historical figure id or data the game will crash so best of luck that a dragon doesnt get near a temple or a tomb at world gen or decides to pay a visit and rez a dead animal.
Logged
I thought I would I had never hear my daughter's escapades from some boy...
DAMN YOU RUMRUSHER!!!!!!!!
"body swapping and YOU!"
Adventure in baby making!Adv Homes

Hiul

  • Bay Watcher
    • View Profile
Re: help with resurrecting creature
« Reply #3 on: February 24, 2017, 02:59:06 pm »

sorry for the late reply i thought no one gonna answer

when you resurrect someone they will always stay mutilated and there body parts will come alive there is nothing you can do to fix that 
but i also include CE_BODY_TRANSFORMATION for syndrome its say in the wiki it will instantly heal and some say that transformation will grow back body part.

i guess the wrong part is in the syndrome can someone help me find what part is wrong ?
Logged

Teneb

  • Bay Watcher
  • (they/them) Penguin rebellion
    • View Profile
Re: help with resurrecting creature
« Reply #4 on: February 24, 2017, 03:19:58 pm »

Ok, first: there is no character (ok, there is, but it is huge) or time limit here, so take the time to type properly. I actually had to spend a few seconds figuring out what you were trying to get help with.

As you've noted, any damage done is retained on resurrection. The way to deal with that is to transform the revived creature into another (any other) temporarily. So you add a syndrome with [CE_BODY_TRANSFORMATION:START:0:END:1][CE:CREATURE:<CREATURE>:<CASTE>] to the effect. Be warned: transformations pause the game and give a message. Use them wisely.
Logged
Monstrous Manual: D&D in DF
Quote from: Tack
What if “slammed in the ass by dead philosophers” is actually the thing which will progress our culture to the next step?

Nahere

  • Bay Watcher
    • View Profile
Re: help with resurrecting creature
« Reply #5 on: February 24, 2017, 05:27:25 pm »

Your problem appears to be that you cannot transform a creature into the same creature and caste it already is. If you want it to heal them, then you will need to transform them into something different for a brief time.
Logged

soul4hdwn

  • Bay Watcher
  • make due with what you have
    • View Profile
Re: help with resurrecting creature
« Reply #6 on: February 24, 2017, 10:19:47 pm »

Your problem appears to be that you cannot transform a creature into the same creature and caste it already is. If you want it to heal them, then you will need to transform them into something different for a brief time.
well that explains a lot for my own issues... and the OP's code gave me idea to condense some of my own work.
Logged

Hiul

  • Bay Watcher
    • View Profile
Re: help with resurrecting creature
« Reply #7 on: February 25, 2017, 08:58:22 am »

Your problem appears to be that you cannot transform a creature into the same creature and caste it already is. If you want it to heal them, then you will need to transform them into something different for a brief time.

oh so thats the reason..... thanks
after testing it work

also is this the right interaction and syndrome to make egg laying civilization can laying egg without them require to eat and drink ?
some suggest it like that but theres no example of it so m not sure is it put correctly thats why im asking just want confirmation.

Code: [Select]
             [INTERACTION:DRAGOON_EGG_LAYING]
             [I_TARGET:A:CREATURE]
       [IT_LOCATION:CONTEXT_CREATURE]
                       [IT_FORBIDDEN:NOT_LIVING]
       [IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
                       [IT_AFFECTED_CREATURE:DRAGOON:FEMALE]
                       [IT_AFFECTED_CREATURE:LIZAURUS:FEMALE]
             [I_EFFECT:ADD_SYNDROME]
       [IE_TARGET:A]
       [IE_IMMEDIATE]
[SYNDROME]
                [SYN_NAME:Egg Incubation]
                [SYN_CLASS:FEMALE]
                [SYN_AFFECTED_CREATURE:DRAGOON:FEMALE]
                [SYN_CONTACT]
                [CE_ADD_TAG:NO_EAT:NO_DRINK:NO_SLEEP:START:0:END:302400]
[CE:COUNTER_TRIGGER:EGG_SPENT:0:302400:NONE:REQUIRED]

« Last Edit: February 27, 2017, 12:45:23 am by Hiul »
Logged

Enemy post

  • Bay Watcher
  • Modder/GM
    • View Profile
Re: help with resurrecting creature
« Reply #8 on: February 25, 2017, 09:23:01 am »

also if you resurrect anyone who has no historical figure id or data the game will crash so best of luck that a dragon doesnt get near a temple or a tomb at world gen or decides to pay a visit and rez a dead animal.

I didn't know that. I'd better fix my own mod then.
Logged
My mods and forum games.
Enemy post has claimed the title of Dragonsong the Harmonic of Melodious Exaltion!

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: help with resurrecting creature
« Reply #9 on: February 25, 2017, 03:21:17 pm »

also if you resurrect anyone who has no historical figure id or data the game will crash so best of luck that a dragon doesnt get near a temple or a tomb at world gen or decides to pay a visit and rez a dead animal.

I didn't know that. I'd better fix my own mod then.
resurrection works fine if you limit it to adv control or a select group of creatures that probably would have a historical figure. also resurrection works on reanimated to at least make them talkable so if you're making a summoner with commands having resurrection spell for upgrading a minion to be an armed minion is possible.
Logged
I thought I would I had never hear my daughter's escapades from some boy...
DAMN YOU RUMRUSHER!!!!!!!!
"body swapping and YOU!"
Adventure in baby making!Adv Homes

Enemy post

  • Bay Watcher
  • Modder/GM
    • View Profile
Re: help with resurrecting creature
« Reply #10 on: February 25, 2017, 03:40:53 pm »

also if you resurrect anyone who has no historical figure id or data the game will crash so best of luck that a dragon doesnt get near a temple or a tomb at world gen or decides to pay a visit and rez a dead animal.

I didn't know that. I'd better fix my own mod then.
resurrection works fine if you limit it to adv control or a select group of creatures that probably would have a historical figure. also resurrection works on reanimated to at least make them talkable so if you're making a summoner with commands having resurrection spell for upgrading a minion to be an armed minion is possible.

Do severed pieces of sentient beings count as historical figures?
Logged
My mods and forum games.
Enemy post has claimed the title of Dragonsong the Harmonic of Melodious Exaltion!

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: help with resurrecting creature
« Reply #11 on: February 25, 2017, 03:52:15 pm »

also if you resurrect anyone who has no historical figure id or data the game will crash so best of luck that a dragon doesnt get near a temple or a tomb at world gen or decides to pay a visit and rez a dead animal.

I didn't know that. I'd better fix my own mod then.
resurrection works fine if you limit it to adv control or a select group of creatures that probably would have a historical figure. also resurrection works on reanimated to at least make them talkable so if you're making a summoner with commands having resurrection spell for upgrading a minion to be an armed minion is possible.

Do severed pieces of sentient beings count as historical figures?
well yes if you a reanimate them which puts in a new unit in that body, other wise resurrecting it will fill it in with the soul of the dead unit and prevent you from resurrecting the other pieces.
that said in adventure mode since everyone talks to each other it often leads to them all getting temp historical figures ids also dying leads to their corpse having a name.
if their corpse doesn't have a name then it's bound to lead to some df crashery.
Logged
I thought I would I had never hear my daughter's escapades from some boy...
DAMN YOU RUMRUSHER!!!!!!!!
"body swapping and YOU!"
Adventure in baby making!Adv Homes

Enemy post

  • Bay Watcher
  • Modder/GM
    • View Profile
Re: help with resurrecting creature
« Reply #12 on: February 25, 2017, 03:54:48 pm »

Thanks.
Logged
My mods and forum games.
Enemy post has claimed the title of Dragonsong the Harmonic of Melodious Exaltion!

D_E

  • Bay Watcher
    • View Profile
Re: help with resurrecting creature
« Reply #13 on: March 01, 2017, 08:46:33 am »

also if you resurrect anyone who has no historical figure id or data the game will crash so best of luck that a dragon doesnt get near a temple or a tomb at world gen or decides to pay a visit and rez a dead animal.

I didn't know that. I'd better fix my own mod then.
resurrection works fine if you limit it to adv control or a select group of creatures that probably would have a historical figure. also resurrection works on reanimated to at least make them talkable so if you're making a summoner with commands having resurrection spell for upgrading a minion to be an armed minion is possible.

This also looks like it affects me, but I'm not clear on what exactly the trigger is for a crash occurring.

Can this be a source of world-gen crashes?  Ie, if you have a race of creatures with a resurrecting interaction, will world gen start randomly crashing because they use their interactions on bad targets?

Or is this a gameplay problem?  Ie, there are some corpses without historical figure ids, and if a resurrecting creature uses their ability on one during gameplay the game crashes?
Logged
Mods I've done:
Zelda mod-mod, Beta in the Wild DF 47.04
Illithid Empire mod DF 31.25 (update canceled)
Spotter's Guide to Illithids (Genesis mod-mod) genesis 3.19a4 (update canceled)