Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Problem with animate interaction  (Read 1910 times)

Drawde

  • Bay Watcher
    • View Profile
Problem with animate interaction
« on: March 14, 2012, 07:35:11 am »

I'm working on a creature that has an "aura", targeting all corpses within range as a free action.  It also slightly hinders the living as well.

I can get the hindering part to work, although it's not used constantly.  I can't get the animating part to work at all though.

Interaction:

Spoiler (click to show/hide)

CDI:

Spoiler (click to show/hide)

I've based the animation part off of what I could find here, although all I could find were questions asking about it, not any answers.  So it's possible I missed something there.

I've tried changing the target of the animation part to B, as seen above.  But still nothing.

I do know that the spell is trying to animate the living.  So maybe I can't make an interaction affect more than one type of target?
Logged

Di

  • Bay Watcher
    • View Profile
Re: Problem with animate interaction
« Reply #1 on: March 14, 2012, 09:49:13 am »

Here's some fixes
Spoiler: interaction (click to show/hide)

Buuut, the interaction requires all targets to be selected, thus, you've made a curse that can only be applied alongside with zombie raising (or requiring corpse nearby if you take out second [I_EFFECT]), which is kinda neat, but if you want those used separated I'd suggest splitting them in two.
Also, I'd suggest using [CDI:USAGE_HINT:ATTACK] and placing[IT_CANNOT_TARGET_IF_ALREADY_AFFECTED] under  [I_TARGET:A:CREATURE] if you want it evenly applied to everyone opposing your creature, since, I believe, MAJOR_CURSE targets only those particularly disliked by caster.
Logged
Quote from: Creamcorn
Dwarf Fortress: Where you meet the limit of your imagination, moral compass, sanity and CPU processor.
http://www.bay12forums.com/smf/index.php?topic=103080.0 Fix sober vampires!
http://www.bay12forums.com/smf/index.php?topic=91442.0 Dwarven Cognitive Science

Drawde

  • Bay Watcher
    • View Profile
Re: Problem with animate interaction
« Reply #2 on: March 14, 2012, 03:15:51 pm »

Thanks, that worked. 

But now I've got a different problem.  What creature token do you use to make a creature undead?
Logged

ArKFallen

  • Bay Watcher
  • Bohandean Desserter
    • View Profile
Re: Problem with animate interaction
« Reply #3 on: March 14, 2012, 03:27:53 pm »

Thanks, that worked. 

But now I've got a different problem.  What creature token do you use to make a creature undead?
[NOT_LIVING]
Logged
Hm, have you considered murder?  It's either that or letting it go.
SigText
I logged back on ;_;

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
Re: Problem with animate interaction
« Reply #4 on: March 14, 2012, 03:35:30 pm »

MAJOR_CURSE only works for gods. If you want to slightly limit the amount of corpses raised, make them have to be FIT_FOR_RESURRECTION instead, then arms and heads don't get raised.
Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0

Di

  • Bay Watcher
    • View Profile
Re: Problem with animate interaction
« Reply #5 on: March 14, 2012, 04:21:49 pm »

MAJOR_CURSE only works for gods.
[CDI:USAGE_HINT:MAJOR_CURSE] can be seen in mummy example.
Logged
Quote from: Creamcorn
Dwarf Fortress: Where you meet the limit of your imagination, moral compass, sanity and CPU processor.
http://www.bay12forums.com/smf/index.php?topic=103080.0 Fix sober vampires!
http://www.bay12forums.com/smf/index.php?topic=91442.0 Dwarven Cognitive Science

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
Re: Problem with animate interaction
« Reply #6 on: March 14, 2012, 06:59:10 pm »

MAJOR_CURSE only works for gods.
[CDI:USAGE_HINT:MAJOR_CURSE] can be seen in mummy example.
Hm, let me check...

I don't see it, you mean this mummy example?

Code: [Select]
interaction_disturbance

[OBJECT:INTERACTION]

[INTERACTION:EXAMPLE DISTURBANCE EFFECT]
[I_SOURCE:DISTURBANCE]
[I_TARGET:A:CORPSE]
[IT_LOCATION:CONTEXT_ITEM]
[IT_FORBIDDEN:NOT_LIVING]
[IT_REQUIRES:CAN_SPEAK]
[IT_REQUIRES:FIT_FOR_RESURRECTION]
[IT_CANNOT_HAVE_SYNDROME_CLASS:WERECURSE]
[IT_CANNOT_HAVE_SYNDROME_CLASS:VAMPCURSE]
[IT_CANNOT_HAVE_SYNDROME_CLASS:DISTURBANCE_CURSE]
[I_EFFECT:RESURRECT]
[IE_TARGET:A]
[IE_IMMEDIATE]
[IE_ARENA_NAME:Disturbed dead]
[SYNDROME]
[SYN_CLASS:DISTURBANCE_CURSE]
[CE_DISPLAY_TILE:TILE:165:6:0:1:START:0]
[CE_DISPLAY_NAME:NAME:mummy:mummies:mummified:START:0]
[CE_PHYS_ATT_CHANGE:STRENGTH:300:1000:TOUGHNESS:300:1000:START:0]
[CE_ADD_TAG:NO_AGING:NOT_LIVING:OPPOSED_TO_LIFE:STERILE:EXTRAVISION:NOEXERT:NOPAIN:NOBREATHE:NOSTUN:NONAUSEA:NO_DIZZINESS:NO_FEVERS:NOEMOTION:PARALYZEIMMUNE:NOFEAR:NO_EAT:NO_DRINK:NO_SLEEP:NO_PHYS_ATT_GAIN:NO_PHYS_ATT_RUST:NOTHOUGHT:NO_THOUGHT_CENTER_FOR_MOVEMENT:NO_CONNECTIONS_FOR_MOVEMENT:START:0]
[CE_REMOVE_TAG:HAS_BLOOD:TRANCES:LIKES_FIGHTING:MISCHIEVOUS:START:0]
[CE_CAN_DO_INTERACTION:START:0]
[CDI:ADV_NAME:Curse]
[CDI:INTERACTION:EXAMPLE CURSE]
[CDI:TARGET:A:LINE_OF_SIGHT:DISTURBER_ONLY]
[CDI:TARGET_RANGE:A:25]
[CDI:USAGE_HINT:MAJOR_CURSE]
[CDI:VERBAL]
[CDI:VERBAL_SPEECH:curse.txt]
[CDI:MAX_TARGET_NUMBER:A:1]
[CDI:TARGET_VERB:feel horrible:looks horrible]
[CDI:WAIT_PERIOD:20]
[CE_CAN_DO_INTERACTION:START:0]
[CDI:ADV_NAME:Animate corpse]
[CDI:INTERACTION:EXAMPLE D RAISE]
[CDI:TARGET:A:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:A:25]
[CDI:VERB:gesture:gestures:NA]
[CDI:TARGET_VERB:shudder and begin to move:shudders and begins to move]
[CDI:WAIT_PERIOD:10]

[INTERACTION:EXAMPLE CURSE]
[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_CANNOT_TARGET_IF_ALREADY_AFFECTED]
[IT_MANUAL_INPUT:victim]
[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[IE_ARENA_NAME:Cursed]
[SYNDROME]
[CE_SKILL_ROLL_ADJUST:PERC:0:PERC_ON:20:START:0]

[INTERACTION:EXAMPLE D RAISE]
[I_TARGET:A:CORPSE]
[IT_LOCATION:CONTEXT_ITEM]
[IT_AFFECTED_CLASS:GENERAL_POISON]
[IT_REQUIRES:FIT_FOR_ANIMATION]
[IT_FORBIDDEN:NOT_LIVING]
[IT_MANUAL_INPUT:corpses]
[I_EFFECT:ANIMATE]
[IE_TARGET:A]
[IE_IMMEDIATE]
[IE_ARENA_NAME:Animated corpse]
[SYNDROME]
[CE_FLASH_TILE:TILE:165:3:0:0:FREQUENCY:2000:1000:START:0]
[CE_PHYS_ATT_CHANGE:STRENGTH:300:1000:TOUGHNESS:300:1000:START:0]
[CE_SPEED_CHANGE:SPEED_PERC:60:START:0]
[CE_ADD_TAG:NO_AGING:NOT_LIVING:OPPOSED_TO_LIFE:EXTRAVISION:NOEXERT:NOPAIN:NOBREATHE:NOSTUN:NONAUSEA:NO_DIZZINESS:NO_FEVERS:NOEMOTION:PARALYZEIMMUNE:NOFEAR:NO_EAT:NO_DRINK:NO_SLEEP:NO_PHYS_ATT_GAIN:NO_PHYS_ATT_RUST:NOTHOUGHT:NO_THOUGHT_CENTER_FOR_MOVEMENT:NO_CONNECTIONS_FOR_MOVEMENT:START:0]
[CE_REMOVE_TAG:HAS_BLOOD:TRANCES:LIKES_FIGHTING:MISCHIEVOUS:START:0]

Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0

Drawde

  • Bay Watcher
    • View Profile
Re: Problem with animate interaction
« Reply #7 on: March 14, 2012, 08:09:17 pm »

NOT_LIVING needs to be fixed in the wiki.  By the way it reads, to me it looks like it's meant for non-living creatures like a bronze colossus, so they, or their parts, can't be animated.
Logged

Drawde

  • Bay Watcher
    • View Profile
Re: Problem with animate interaction
« Reply #8 on: March 14, 2012, 08:18:41 pm »

And that didn't work.  My supposedly undead creature was still attacked by the animated undead.  NOT_LIVING did nothing.
« Last Edit: March 14, 2012, 08:32:19 pm by Drawde »
Logged

ArKFallen

  • Bay Watcher
  • Bohandean Desserter
    • View Profile
Re: Problem with animate interaction
« Reply #9 on: March 14, 2012, 09:32:47 pm »

And that didn't work.  My supposedly undead creature was still attacked by the animated undead.  NOT_LIVING did nothing.
If you're testing through the arena it won't work like it does in actual DF. If you're not... well I don't know what to tell you.
Logged
Hm, have you considered murder?  It's either that or letting it go.
SigText
I logged back on ;_;

Drawde

  • Bay Watcher
    • View Profile
Re: Problem with animate interaction
« Reply #10 on: March 14, 2012, 10:04:29 pm »

Didn't know that, but it makes sense.  Thanks for the help.
Logged

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Problem with animate interaction
« Reply #11 on: March 14, 2012, 10:14:44 pm »

Arena's teams is more important than the state of the creatures, so you'll have zombies clawing each other for not being on the same team.
Logged
Thank you for all the fish. It was a good run.