Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Bodyswap in adventure mode  (Read 913 times)

Bauta

  • Bay Watcher
    • View Profile
    • My Youtube
Bodyswap in adventure mode
« on: May 03, 2017, 12:52:56 pm »

Hi guys, i already asked this months ago in the adventur forum but i guess no one there can really help me
http://www.bay12forums.com/smf/index.php?topic=163427.0
 :'(
Short version , i want to bodyswap into one of my dwarfs in one of my old fortress for an ongoing lets play project with a background story
I got send some code i need to implement somehow but i dont know where and how i could get it to work, so if someone could help me in here i would be really happy  :-\
Logged
_________
>Blacki loses his right arm, Blacki loses his left arm
>Blacki: I am badly injured, this phases me not
>Blacki bites the Goblin lasher in the throat and the injured part is cloven asunder

Amostubal

  • Bay Watcher
    • View Profile
Re: Bodyswap in adventure mode
« Reply #1 on: May 03, 2017, 09:26:01 pm »

1. Make a txt file,
2. add the code to it that Max gave you,
3. rename it to assumeControl.lua
4. place it in the scripts folder of your DFHack.
5. go in game. find out the ID of the unit you want to be, and the ID of your old unit.
 (hint teleport has a nice command for it).
6. enter "assumeControl newId oldId"

and that should do it... I may be wrong, but atleast I think I have you on the right path.
Logged
Legendary Dwarf Fortress
Legendary Discord Group
"...peering into the darkness behind the curtains, evokes visions of pixies being chased by dragons while eating cupcakes made of coral iced with liquid fire while their hearts burn out with unknown plant substances..." - a quote from the diaries of Amostubal