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.

Creature flags in DF memory

From Dwarf Fortress Wiki
Revision as of 11:51, 29 October 2009 by Lord Nightmare (talk | contribs) (add note)
Jump to navigation Jump to search

Creature or Unit flags

Thanks to ToadyOne for explaining what these bits do.

=Stuff with > > was (or wasn't) known by dfhack authors, will be removed when i have time Lord Nightmare 11:51, 29 October 2009 (UTC)

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)

  • bit 8 - left (left the map)
  • bit 9 - rider
  • bit 10 - incoming

> > bit 11 - unknown (usually set if unit is friendly)

  • bit 11 - diplomat

> > bit 12 - zombie

  • bit 12 - zombie

> > bit 13 - skeleton

  • bit 13 - skeleton

> > bit 14 - unknown (possibly initial dwarves and friendly units only, i.e > > things which were born off map?)

  • can swap tiles during movement (prevents multiple swaps)

> > bit 15 - unconscious

  • on the ground (can be conscious)

> > bit 16 - unknown (unit isn't visible, caged maybe?)

  • projectile

> > bit 17 - invader? (of some sort?)

  • active invader (for organized ones)

> > bit 18 - unknown (unit isn't listed among dwarves?)

  • hidden in ambush

> > bit 19 - invader? (of some sort?)

  • invader origin (could be inactive and fleeing)

> > bit 20 - unknown

  • will flee if invasion turns around

> > bit 21 - hidden ambusher

  • active marauder/invader moving inward

> > bit 22 - unknown

  • marauder resident/invader moving in all the way

> > bit 23 - unknown

  • check against flows next time you get a chance

> > bit 24 - unknown

  • ridden

> > bit 25 - unknown (invisble, hidden?)

  • caged

> > bit 26 - tame

  • tame

> > bit 27 - unknown

  • chained

> > bit 28 - royal guard

  • royal guard

> > bit 29 - fortress guard

  • fortress guard

> > bit 30 - unknown

  • suppress wield for beatings/etc

> > bit 31 - unknown

  • is an important historical figure

Flags Word 1 (32 bits)

> > bits 0 thru 6 - unknown

  • swimming
  • play combat for sparring
  • do not notify about level gains (for embark etc)
  • unused
  • nerves calculated
  • body part info calculated
  • is important historical figure (slight variation)

> > bit 7 - dead? (why are there two dead bits? is there a difference?)

  • has been killed by kill function (slightly different from dead, not

necessarily violent death) > > bits 8 thru 14 - unknown

  • must be forgotten by forget function (just cleanup)
  • must be deleted (cleanup)
  • recently forgotten (cleanup)
  • offered for trade
  • trade resolved
  • has breaks
  • gutted

> > bit 15 - on ground?

  • circulatory spray

> > bit 16 - flying

  • locked in for trading (it's a projectile on the other set of flags,

might be what the flying was) > > bit 17 - marked for slaughter

  • marked for slaughter

> > bit 18 - underworld creature?

  • underworld creature

> > bits 19 thru 23 - unknown

  • current resident
  • marked for special cleanup as unused load from unit block on disk
  • insulation from clothing calculated
  • uninvited guest
  • visitor

> > bits 24 thru 31 - unknown

  • inventory order calculated
  • vision -- have good part
  • vision -- have damaged part
  • vision -- have missing part
  • breathing -- have good part
  • breathing -- having a problem
  • roaming wilderness population source
  • roaming wilderness population source -- not a map feature