summaryrefslogtreecommitdiff
path: root/dfhack.init-example
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-02-25 17:08:05 +0400
committerAlexander Gavrilov2012-02-25 17:08:05 +0400
commitad7b9d42a1016eed36c7530bb5d297259d6bec65 (patch)
treeea3c576d035158feb0840d595cc6c274eef684df /dfhack.init-example
parentbca78088e208b27c83fa5fca5123286e986157d1 (diff)
downloaddfhack-ad7b9d42a1016eed36c7530bb5d297259d6bec65.tar.gz
dfhack-ad7b9d42a1016eed36c7530bb5d297259d6bec65.tar.bz2
dfhack-ad7b9d42a1016eed36c7530bb5d297259d6bec65.tar.xz
Add a command for swapping body with another units in adventure mode.
Based on dfusion code, with lots of safety checks added. Supports two swap modes: transient and permanent; the former does a minimal change and is intended for managing companion inventory. The permanent one performs all known actions necessary to turn it into the real adventurer. Note: the transient mode is a hack and may cause the game to crash if not reverted while within range of the real adventurer unit.
Diffstat (limited to 'dfhack.init-example')
-rw-r--r--dfhack.init-example7
1 files changed, 7 insertions, 0 deletions
diff --git a/dfhack.init-example b/dfhack.init-example
index 4a4c0437..e4d1d3d3 100644
--- a/dfhack.init-example
+++ b/dfhack.init-example
@@ -13,6 +13,13 @@ keybinding add Ctrl-Shift-K autodump-destroy-here
# any item:
keybinding add Ctrl-K autodump-destroy-item
+##############################
+# Generic adv mode bindings #
+##############################
+
+keybinding add Ctrl-B adv-bodyswap
+keybinding add Ctrl-Shift-B "adv-bodyswap force"
+
#############################
# Context-specific bindings #
#############################