v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing Creature flags in DF memory

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:
 
Thanks to ToadyOne for explaining what these bits do.
 
Thanks to ToadyOne for explaining what these bits do.
  
Checkbox labels
+
===Flags Word 0 (32 bits)===
 +
* bit 0 - can the dwarf move or are they waiting for their movement timer
 +
* bit 1 - dead (might also be set for incoming/leaving critters that are alive)
 +
* bit 2 - currently in mood
 +
* bit 3 - had a mood
 +
* bit 4 - "marauder" -- wide class of invader/inside creature attackers
 +
* bit 5 - drowning
 +
* bit 6 - active merchant
 +
* bit 7 - "forest" (used for units no longer linked to merchant/diplomacy,
 +
they just try to leave mostly)
  
===Flags Word 0 (32 bits)===
+
* bit 8 - left (left the map)
{| class="wikitable"
+
* bit 9 - rider
! Bit
+
* bit 10 - incoming
! Integer Value (hex)
+
> > bit 11 - unknown (usually set if unit is friendly)
! [[User:Bartavelle/DwarfCompanion|DwarfCompanion]]
+
* bit 11 - diplomat
! Meaning
+
> > bit 12 - zombie
|-
+
* bit 12 - zombie
!0
+
> > bit 13 - skeleton
| 0x00000001
+
* bit 13 - skeleton
| 0x1
+
> > bit 14 - unknown (possibly initial dwarves and friendly units only, i.e
| Can the dwarf move or are they waiting for their movement timer
+
> > things which were born off map?)
|-
+
* can swap tiles during movement (prevents multiple swaps)
!1
+
> > bit 15 - unconscious
| 0x00000002
+
* on the ground (can be conscious)
| dead?
+
> > bit 16 - unknown (unit isn't visible, caged maybe?)
| Dead (might also be set for incoming/leaving critters that are alive)
+
* projectile
|-
+
> > bit 17 - invader? (of some sort?)
!2
+
* active invader (for organized ones)
| 0x00000004
+
> > bit 18 - unknown (unit isn't listed among dwarves?)
| 0x4
+
* hidden in ambush
| Currently in mood
+
> > bit 19 - invader? (of some sort?)
|-
+
* invader origin (could be inactive and fleeing)
!3
+
> > bit 20 - unknown
| 0x00000008
+
* will flee if invasion turns around
| artifact
+
> > bit 21 - hidden ambusher
| Had a mood
+
* active marauder/invader moving inward
|-
+
> > bit 22 - unknown
!4
+
* marauder resident/invader moving in all the way
| 0x00000010
+
> > bit 23 - unknown
| 0x10
+
* check against flows next time you get a chance
| "marauder" -- wide class of invader/inside creature attackers
+
> > bit 24 - unknown
|-
+
* ridden
!5
+
> > bit 25 - unknown (invisble, hidden?)
| 0x00000020
+
* caged
| 0x20
+
> > bit 26 - tame
| Drowning
+
* tame
|-
+
> > bit 27 - unknown
!6
+
* chained
| 0x00000040
+
> > bit 28 - royal guard
| merch1?
+
* royal guard
| Active merchant
+
> > bit 29 - fortress guard
|-
+
* fortress guard
!7
+
> > bit 30 - unknown
| 0x00000080
+
* suppress wield for beatings/etc
| caravan guard?
+
> > bit 31 - unknown
| "forest" (used for units no longer linked to merchant/diplomacy, they just try to leave mostly)
+
* is an important historical figure
|-
 
!8
 
| 0x00000100
 
| 0x100
 
| Left (left the map)
 
|-
 
!9
 
| 0x00000200
 
| 0x200
 
| Rider
 
|-
 
!10
 
| 0x00000400
 
| !unitlist
 
| Incoming
 
|-
 
!11
 
| 0x00000800
 
| liaison?
 
| Diplomat
 
|-
 
!12
 
| 0x00001000
 
| zombie
 
| Zombie
 
|-
 
!13
 
| 0x00002000
 
| skel
 
| Skeleton
 
|-
 
!14
 
| 0x00004000
 
| working?
 
| Can swap tiles during movement (prevents multiple swaps)
 
|-
 
!15
 
| 0x00008000
 
| prone
 
| On the ground (can be conscious)
 
|-
 
!16
 
| 0x00010000
 
| 0x1.4
 
| Projectile
 
|-
 
!17
 
| 0x00020000
 
| inv1
 
| Active invader (for organized ones)
 
|-
 
!18
 
| 0x00040000
 
| hidden
 
| Hidden in ambush
 
|-
 
!19
 
| 0x00080000
 
| inv2
 
| Invader origin (could be inactive and fleeing)
 
|-
 
!20
 
| 0x00100000
 
| 0x1.5
 
| Will flee if invasion turns around
 
|-
 
!21
 
| 0x00200000
 
| 0x2.5
 
| Active marauder/invader moving inward
 
|-
 
!22
 
| 0x00400000
 
| 0x4.5
 
| Marauder resident/invader moving in all the way
 
|-
 
!23
 
| 0x00800000
 
| 0x8.5
 
| Check against flows next time you get a chance
 
|-
 
!24
 
| 0x01000000
 
| 0x1.6
 
| Ridden
 
|-
 
!25
 
| 0x02000000
 
| 0x2.6
 
| Caged
 
|-
 
!26
 
| 0x04000000
 
| tame
 
| Tame
 
|-
 
!27
 
| 0x08000000
 
| 0x8.6
 
| Chained
 
|-
 
!28
 
| 0x10000000
 
| r.guard
 
| Royal guard
 
|-
 
!29
 
| 0x20000000
 
| f.guard
 
| Fortress guard
 
|-
 
!30
 
| 0x40000000
 
| 0x4.7
 
| Suppress wield for beatings/etc
 
|-
 
!31
 
| 0x80000000
 
| 0x8.7
 
| Is an important historical figure
 
|}
 
  
 
===Flags Word 1 (32 bits)===
 
===Flags Word 1 (32 bits)===
{| class="wikitable"
+
> > bits 0 thru 6 - unknown
! Bit
+
* swimming
! Integer Value (hex)
+
* play combat for sparring
! [[User:Bartavelle/DwarfCompanion|DwarfCompanion]]
+
* do not notify about level gains (for embark etc)
! Meaning
+
* unused
|-
+
* nerves calculated
!0
+
* body part info calculated
| 0x00000001
+
* is important historical figure (slight variation)
| 0x1b
+
> > bit 7 - dead? (why are there two dead bits? is there a difference?)
| Swimming
+
* has been killed by kill function (slightly different from dead, not
|-
+
necessarily violent death)
!1
+
> > bits 8 thru 14 - unknown
| 0x00000002
+
* must be forgotten by forget function (just cleanup)
| 0x2b
+
* must be deleted (cleanup)
| Play combat for sparring
+
* recently forgotten (cleanup)
|-
+
* offered for trade
!2
+
* trade resolved
| 0x00000004
+
* has breaks
| 0x4b
+
* gutted
| Do not notify about level gains (for embark etc)
+
> > bit 15 - on ground?
|-
+
* circulatory spray
!3
+
> > bit 16 - flying
| 0x00000008
+
* locked in for trading (it's a projectile on the other set of flags,
| 0x8b
+
might be what the flying was)
| Unused
+
> > bit 17 - marked for slaughter
|-
+
* marked for slaughter
!4
+
> > bit 18 - underworld creature?
| 0x00000010
+
* underworld creature
| 0x10b
+
> > bits 19 thru 23 - unknown
| Nerves calculated
+
* current resident
|-
+
* marked for special cleanup as unused load from unit block on disk
!5
+
* insulation from clothing calculated
| 0x00000020
+
* uninvited guest
| 0x20b
+
* visitor
| Body part info calculated
+
> > bits 24 thru 31 - unknown
|-
+
* inventory order calculated
!6
+
* vision -- have good part
| 0x00000040
+
* vision -- have damaged part
| 0x4b
+
* vision -- have missing part
| Is important historical figure (slight variation)
+
* breathing -- have good part
|-
+
* breathing -- having a problem
!7
+
* roaming wilderness population source
| 0x00000080
+
* roaming wilderness population source -- not a map feature
| dead
 
| Has been killed by kill function (slightly different from dead, not necessarily violent death)
 
|-
 
!8
 
| 0x00000100
 
| vanish
 
| Must be forgotten by forget function (just cleanup)
 
|-
 
!9
 
| 0x00000200
 
| 0x200b
 
| Must be deleted (cleanup)
 
|-
 
!10
 
| 0x00000400
 
| 0x400b
 
| Recently forgotten (cleanup)
 
|-
 
!11
 
| 0x00000800
 
| 0x800b
 
| Offered for trade
 
|-
 
!12
 
| 0x00001000
 
| 0x1000b
 
| Trade resolved
 
|-
 
!13
 
| 0x00002000
 
| winded?
 
| Has breaks
 
|-
 
!14
 
| 0x00004000
 
| 0x4000b
 
| Gutted
 
|-
 
!15
 
| 0x00008000
 
| ground
 
| Circulatory spray
 
|-
 
!16
 
| 0x00010000
 
| flying
 
| Locked in for trading (it's a projectile on the other set of flags, might be what the flying was)
 
|-
 
!17
 
| 0x00020000
 
| slaughter
 
| Marked for slaughter
 
|-
 
!18
 
| 0x00040000
 
| underwrld
 
| Underworld creature
 
|-
 
!19
 
| 0x00080000
 
| can't eat
 
| Current resident
 
|-
 
!20
 
| 0x00100000
 
| 0x1.5b
 
| Marked for special cleanup as unused load from unit block on disk
 
|-
 
!21
 
| 0x00200000
 
| 0x2.5b
 
| Insulation from clothing calculated
 
|-
 
!22
 
| 0x00400000
 
| 0x4.5b
 
| Uninvited guest
 
|-
 
!23
 
| 0x00800000
 
| visitor?
 
| Visitor
 
|-
 
!24
 
| 0x01000000
 
| 0x1.6b
 
| Inventory order calculated
 
|-
 
!25
 
| 0x02000000
 
| 0x2.6b
 
| Vision -- have good part
 
|-
 
!26
 
| 0x04000000
 
| 0x4.6b
 
| Vision -- have damaged part
 
|-
 
!27
 
| 0x08000000
 
| 0x8.6b
 
| Vision -- have missing part
 
|-
 
!28
 
| 0x10000000
 
| 0x1.7b
 
| Breathing -- have good part
 
|-
 
!29
 
| 0x20000000
 
| winded?
 
| Breathing -- having a problem
 
|-
 
!30
 
| 0x40000000
 
| 0x4.7b
 
| Roaming wilderness population source
 
|-
 
!31
 
| 0x80000000
 
| tame2
 
| Roaming wilderness population source -- not a map feature
 
|}
 
 
 
[[Category:Hacking]]
 
{{unversioned}}
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Template used on this page:

This page is a member of 1 hidden category: