Registry Mirror
搜索
Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Files
Expand file tree
master
Breadcrumbs
scripts
/
ghostly.lua
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
14 lines (14 loc) · 458 Bytes
master
Breadcrumbs
scripts
/
ghostly.lua
Copy path
Top
File metadata and controls
Code
Blame
14 lines (14 loc) · 458 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
local unit = dfhack.world.getAdventurer()
if not unit then
qerror('This script must be used in adventure mode or adventure arena!')
else
if unit.flags1.inactive then
unit.flags1.inactive = false
unit.flags3.ghostly = true
elseif unit.body.components.body_part_status[0].missing then
unit.flags1.inactive = true
unit.flags3.ghostly = false
else
unit.flags3.ghostly = not unit.flags3.ghostly
end
end
You can’t perform that action at this time.