DFHack ScriptsΒΆ
Lua or ruby scripts placed in the hack/scripts/
directory
are considered for execution as if they were native DFHack commands.
The following pages document all the scripts in the DFHack standard library.
- Basic Scripts
- adaptation
- add-recipe
- add-thought
- adv-fix-sleepers
- adv-max-skills
- adv-rumors
- animal-control
- armoks-blessing
- assign-attributes
- assign-beliefs
- assign-facets
- assign-goals
- assign-preferences
- assign-profile
- assign-skills
- autolabor-artisans
- autonick
- autounsuspend
- ban-cooking
- binpatch
- bodyswap
- brainwash
- break-dance
- build-now
- burial
- cannibalism
- caravan
- catsplosion
- clear-smoke
- clear-webs
- colonies
- color-schemes
- combat-harden
- combine-drinks
- combine-plants
- create-items
- deathcause
- deep-embark
- deteriorateclothes
- deterioratecorpses
- deterioratefood
- do-job-now
- dorf_tables
- drain-aquifer
- dwarf-op
- elevate-mental
- elevate-physical
- embark-skills
- emigration
- empty-bin
- exportlegends
- exterminate
- extinguish
- feature
- fillneeds
- firestarter
- fix-ster
- fixnaked
- flashstep
- force
- forget-dead-body
- forum-dwarves
- full-heal
- gaydar
- geld
- ghostly
- growcrops
- hermit
- hfs-pit
- hotkey-notes
- install-info
- item-descriptions
- launch
- lever
- light-aquifers-only
- linger
- list-agreements
- list-waves
- load-save
- locate-ore
- lua
- make-legendary
- make-monarch
- markdown
- masspit
- migrants-now
- multicmd
- names
- on-new-fortress
- once-per-save
- open-legends
- points
- position
- pref-adjust
- prefchange
- prioritize
- putontable
- questport
- quickfort
- quicksave
- region-pops
- rejuvenate
- remove-stress
- remove-wear
- repeat
- resurrect-adv
- reveal-adv-map
- reveal-hidden-sites
- reveal-hidden-units
- season-palette
- set-orientation
- set-timeskip-duration
- setfps
- show-unit-syndromes
- siren
- source
- spawnunit
- startdwarf
- starvingdead
- stripcaged
- superdwarf
- tame
- teleport
- tidlers
- timestream
- troubleshoot-item
- twaterlvl
- undump-buildings
- unforbid
- ungeld
- uniform-unstick
- unretire-anyone
- unsuspend
- view-item-info
- view-unit-reports
- warn-starving
- weather
- workorder
- workorder-recheck
- Development Scripts
- devel/all-bob
- devel/annc-monitor
- devel/block-borders
- devel/check-other-ids
- devel/check-release
- devel/clear-script-env
- devel/click-monitor
- devel/cmptiles
- devel/dump-offsets
- devel/export-dt-ini
- devel/find-offsets
- devel/find-primitive
- devel/find-twbt
- devel/inject-raws
- devel/inspect-screen
- devel/kill-hf
- devel/light
- devel/list-filters
- devel/lsmem
- devel/lua-example
- devel/luacov
- devel/modstate-monitor
- devel/nuke-items
- devel/pop-screen
- devel/prepare-save
- devel/print-args
- devel/print-args2
- devel/print-event
- devel/query
- devel/save-version
- devel/sc
- devel/scanitemother
- devel/send-key
- devel/spawn-unit-helper
- devel/test-perlin
- devel/unforbidall
- devel/unit-path
- devel/visualize-structure
- devel/watch-minecarts
- Bugfixing Scripts
- fix/blood-del
- fix/build-location
- fix/corrupt-equipment
- fix/dead-units
- fix/diplomats
- fix/drop-webs
- fix/dry-buckets
- fix/fat-dwarves
- fix/feeding-timers
- fix/item-occupancy
- fix/loyaltycascade
- fix/merchants
- fix/population-cap
- fix/retrieve-units
- fix/stable-temp
- fix/stuck-merchants
- fix/stuckdoors
- fix/tile-occupancy
- GUI Scripts
- gui/advfort
- gui/advfort_items
- gui/assign-rack
- gui/autobutcher
- gui/autogems
- gui/blueprint
- gui/choose-weapons
- gui/clone-uniform
- gui/color-schemes
- gui/companion-order
- gui/confirm-opts
- gui/cp437-table
- gui/create-item
- gui/create-tree
- gui/dfstatus
- gui/extended-status
- gui/family-affairs
- gui/gm-editor
- gui/gm-unit
- gui/guide-path
- gui/hack-wish
- gui/hello-world
- gui/liquids
- gui/load-screen
- gui/manager-quantity
- gui/mass-remove
- gui/mechanisms
- gui/mod-manager
- gui/no-dfhack-init
- gui/pathable
- gui/power-meter
- gui/prerelease-warning
- gui/quickcmd
- gui/quickfort
- gui/rename
- gui/room-list
- gui/settings-manager
- gui/siege-engine
- gui/stamper
- gui/stockpiles
- gui/teleport
- gui/unit-info-viewer
- gui/workflow
- gui/workshop-job
- Scripts for Modders
- modtools/add-syndrome
- modtools/anonymous-script
- modtools/change-build-menu
- modtools/create-item
- modtools/create-tree
- modtools/create-unit
- modtools/equip-item
- modtools/extra-gamelog
- modtools/force
- modtools/if-entity
- modtools/interaction-trigger
- modtools/invader-item-destroyer
- modtools/item-trigger
- modtools/moddable-gods
- modtools/outside-only
- modtools/pref-edit
- modtools/projectile-trigger
- modtools/random-trigger
- modtools/raw-lint
- modtools/reaction-product-trigger
- modtools/reaction-trigger
- modtools/reaction-trigger-transition
- modtools/set-belief
- modtools/set-need
- modtools/set-personality
- modtools/skill-change
- modtools/spawn-flow
- modtools/spawn-liquid
- modtools/syndrome-trigger
- modtools/transform-unit