Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Resurrect and create item  (Read 350 times)

Baalthoros

  • Escaped Lunatic
    • View Profile
Resurrect and create item
« on: December 27, 2022, 01:36:58 am »

I am trying to make an interaction that will both resurrect a creature, and create an item either at the creature doing the interaction or at the target. Does anyone know how to do this?
Logged

Chain

  • Bay Watcher
  • When God closes a door, punch him through it!
    • View Profile
Re: Resurrect and create item
« Reply #1 on: December 28, 2022, 12:28:40 pm »

I am trying to make an interaction that will both resurrect a creature, and create an item either at the creature doing the interaction or at the target. Does anyone know how to do this?

Hi, I had a gander in the df wiki and found on the intelligent undead page at the bottom an example of interactions which resurrect. These maybe help in designing the interaction. And use the RESURRECT Effect instead of ANIMATE if you do not want an undead, link to effects down where create item is.
Link to Intelligent undead page: https://dwarffortresswiki.org/index.php/Intelligent_undead
Link to Necromancer pager contains example too: https://dwarffortresswiki.org/index.php/Necromancer

As for the dropping an item, use the Interaction Effect CREATE_ITEM :).
Link to interaction effect mentioned: https://dwarffortresswiki.org/index.php/Interaction_token#I_EFFECT

Hope this is of some use to you.
Have a good one
« Last Edit: December 28, 2022, 12:38:35 pm by Chain »
Logged