Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Bodyswapping  (Read 1382 times)

UselessMcMiner

  • Bay Watcher
  • praise jeebus
    • View Profile
Bodyswapping
« on: July 01, 2017, 02:54:39 pm »

So since adv-bodyswap doesn't work and mode switch says it doesn't have any parameters when it does how do I bodyswap?
Logged
Quote
The scouts have been fighting a giant capuchin for the past month now. They still haven't killed it.

Obsidian 1053

The Sentries are still fighting the capuchin. For two monthes they have done nothing but punch this monkey.

Shonai_Dweller

  • Bay Watcher
    • View Profile
Re: Bodyswapping
« Reply #1 on: July 01, 2017, 06:24:20 pm »

Try asking in the dfhack thread. Only they know what's currently working and what isn't, so you're more likely to get a quicker answer there.
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Bodyswapping
« Reply #2 on: July 01, 2017, 06:46:15 pm »

Click: https://raw.githubusercontent.com/maxthyme/scripts/master/assumecontrol.lua
Save page as: hack > scripts > assumecontrol.lua
View the inventory/wounds screen of a unit and run the script: you're them now
Warning: it does work with non-histfigs but if you don't save your game after swapping or swap to a histfig you'll end up randomly teleporting into different animals when you travel
Logged

UselessMcMiner

  • Bay Watcher
  • praise jeebus
    • View Profile
Re: Bodyswapping
« Reply #3 on: July 03, 2017, 11:01:02 am »

Perfect its working! a bit fiddly i had to kill a cat as the guy i had bodyswapped to switch back starve to death then play as the bodyswapped person in regular adventure mode.
Logged
Quote
The scouts have been fighting a giant capuchin for the past month now. They still haven't killed it.

Obsidian 1053

The Sentries are still fighting the capuchin. For two monthes they have done nothing but punch this monkey.

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Bodyswapping
« Reply #4 on: July 04, 2017, 05:12:14 am »

Got a flag set somewhere wrong in the script I think but not sure where.
Logged

Uzu Bash

  • Bay Watcher
    • View Profile
Re: Bodyswapping
« Reply #5 on: July 06, 2017, 05:53:57 pm »

Code: [Select]
local nwnem=dfhack.units.getNemesis(new)
Typo:
Code: [Select]
if nwem then
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Bodyswapping
« Reply #6 on: July 06, 2017, 06:49:01 pm »

Fuck how did I miss that?
Logged

Uzu Bash

  • Bay Watcher
    • View Profile
Re: Bodyswapping
« Reply #7 on: July 07, 2017, 02:38:40 am »

Why doesn't this work when I hotkey it?
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Bodyswapping
« Reply #8 on: July 07, 2017, 07:23:40 pm »

View a unit description and try it?
Logged