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.

Difference between revisions of "Creature flags in DF memory"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(for convenience, include the checkbox labels used in Dwarf Companion 0.15)
Line 1: Line 1:
 
==Creature or Unit flags==
 
==Creature or Unit flags==
 
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)===
 
===Flags Word 0 (32 bits)===
 
{|cellpadding="2"
 
{|cellpadding="2"
 +
! Bit
 +
! [[User:Bartavelle/DwarfCompanion|DwarfCompanion]]
 +
! Meaning
 +
|-
 
!0
 
!0
 +
| 0x1
 
| Can the dwarf move or are they waiting for their movement timer
 
| Can the dwarf move or are they waiting for their movement timer
 
|-
 
|-
 
!1
 
!1
 +
| dead?
 
| Dead (might also be set for incoming/leaving critters that are alive)
 
| Dead (might also be set for incoming/leaving critters that are alive)
 
|-
 
|-
 
!2
 
!2
 +
| 0x4
 
| Currently in mood
 
| Currently in mood
 
|-
 
|-
 
!3
 
!3
 +
| artifact
 
| Had a mood
 
| Had a mood
 
|-
 
|-
 
!4
 
!4
 +
| 0x10
 
| "marauder" -- wide class of invader/inside creature attackers
 
| "marauder" -- wide class of invader/inside creature attackers
 
|-
 
|-
 
!5
 
!5
 +
| 0x20
 
| Drowning
 
| Drowning
 
|-
 
|-
 
!6
 
!6
 +
| merch1?
 
| Active merchant
 
| Active merchant
 
|-
 
|-
 
!7
 
!7
 +
| caravan guard?
 
| "forest" (used for units no longer linked to merchant/diplomacy, they just try to leave mostly)
 
| "forest" (used for units no longer linked to merchant/diplomacy, they just try to leave mostly)
 
|-
 
|-
 
!8
 
!8
 +
| 0x100
 
| Left (left the map)
 
| Left (left the map)
 
|-
 
|-
 
!9
 
!9
 +
| 0x200
 
| Rider
 
| Rider
 
|-
 
|-
 
!10
 
!10
 +
| !unitlist
 
| Incoming
 
| Incoming
 
|-
 
|-
 
!11
 
!11
 +
| liaison?
 
| Diplomat
 
| Diplomat
 
|-
 
|-
 
!12
 
!12
 +
| zombie
 
| Zombie
 
| Zombie
 
|-
 
|-
 
!13
 
!13
 +
| skel
 
| Skeleton
 
| Skeleton
 
|-
 
|-
 
!14
 
!14
 +
| working?
 
| Can swap tiles during movement (prevents multiple swaps)
 
| Can swap tiles during movement (prevents multiple swaps)
 
|-
 
|-
 
!15
 
!15
 +
| prone
 
| On the ground (can be conscious)
 
| On the ground (can be conscious)
 
|-
 
|-
 
!16
 
!16
 +
| 0x1.4
 
| Projectile
 
| Projectile
 
|-
 
|-
 
!17
 
!17
 +
| inv1
 
| Active invader (for organized ones)
 
| Active invader (for organized ones)
 
|-
 
|-
 
!18
 
!18
 +
| hidden
 
| Hidden in ambush
 
| Hidden in ambush
 
|-
 
|-
 
!19
 
!19
 +
| inv2
 
| Invader origin (could be inactive and fleeing)
 
| Invader origin (could be inactive and fleeing)
 
|-
 
|-
 
!20
 
!20
 +
| 0x1.5
 
| Will flee if invasion turns around
 
| Will flee if invasion turns around
 
|-
 
|-
 
!21
 
!21
 +
| 0x2.5
 
| Active marauder/invader moving inward
 
| Active marauder/invader moving inward
 
|-
 
|-
 
!22
 
!22
 +
| 0x4.5
 
| Marauder resident/invader moving in all the way
 
| Marauder resident/invader moving in all the way
 
|-
 
|-
 
!23
 
!23
 +
| 0x8.5
 
| Check against flows next time you get a chance
 
| Check against flows next time you get a chance
 
|-
 
|-
 
!24
 
!24
 +
| 0x1.6
 
| Ridden
 
| Ridden
 
|-
 
|-
 
!25
 
!25
 +
| 0x2.6
 
| Caged
 
| Caged
 
|-
 
|-
 
!26
 
!26
 +
| tame
 
| Tame
 
| Tame
 
|-
 
|-
 
!27
 
!27
 +
| 0x8.6
 
| Chained
 
| Chained
 
|-
 
|-
 
!28
 
!28
 +
| r.guard
 
| Royal guard
 
| Royal guard
 
|-
 
|-
 
!29
 
!29
 +
| f.guard
 
| Fortress guard
 
| Fortress guard
 
|-
 
|-
 
!30
 
!30
 +
| 0x4.7
 
| Suppress wield for beatings/etc
 
| Suppress wield for beatings/etc
 
|-
 
|-
 
!31
 
!31
 +
| 0x8.7
 
| Is an important historical figure
 
| Is an important historical figure
 
|}
 
|}
 
===Flags Word 1 (32 bits)===
 
===Flags Word 1 (32 bits)===
 
{|cellpadding="2"
 
{|cellpadding="2"
 +
! Bit
 +
! [[User:Bartavelle/DwarfCompanion|DwarfCompanion]]
 +
! Meaning
 +
|-
 
!0
 
!0
 +
| 0x1b
 
| Swimming
 
| Swimming
 
|-
 
|-
 
!1
 
!1
 +
| 0x2b
 
| Play combat for sparring
 
| Play combat for sparring
 
|-
 
|-
 
!2
 
!2
 +
| 0x4b
 
| Do not notify about level gains (for embark etc)
 
| Do not notify about level gains (for embark etc)
 
|-
 
|-
 
!3
 
!3
 +
| 0x8b
 
| Unused
 
| Unused
 
|-
 
|-
 
!4
 
!4
 +
| 0x10b
 
| Nerves calculated
 
| Nerves calculated
 
|-
 
|-
 
!5
 
!5
 +
| 0x20b
 
| Body part info calculated
 
| Body part info calculated
 
|-
 
|-
 
!6
 
!6
 +
| 0x4b
 
| Is important historical figure (slight variation)
 
| Is important historical figure (slight variation)
 
|-
 
|-
 
!7
 
!7
 +
| dead
 
| Has been killed by kill function (slightly different from dead, not necessarily violent death)
 
| Has been killed by kill function (slightly different from dead, not necessarily violent death)
 
|-
 
|-
 
!8
 
!8
 +
| vanish
 
| Must be forgotten by forget function (just cleanup)
 
| Must be forgotten by forget function (just cleanup)
 
|-
 
|-
 
!9
 
!9
 +
| 0x200b
 
| Must be deleted (cleanup)
 
| Must be deleted (cleanup)
 
|-
 
|-
 
!10
 
!10
 +
| 0x400b
 
| Recently forgotten (cleanup)
 
| Recently forgotten (cleanup)
 
|-
 
|-
 
!11
 
!11
 +
| 0x800b
 
| Offered for trade
 
| Offered for trade
 
|-
 
|-
 
!12
 
!12
 +
| 0x1000b
 
| Trade resolved
 
| Trade resolved
 
|-
 
|-
 
!13
 
!13
 +
| winded?
 
| Has breaks
 
| Has breaks
 
|-
 
|-
 
!14
 
!14
 +
| 0x4000b
 
| Gutted
 
| Gutted
 
|-
 
|-
 
!15
 
!15
 +
| ground
 
| Circulatory spray
 
| Circulatory spray
 
|-
 
|-
 
!16
 
!16
 +
| flying
 
| Locked in for trading (it's a projectile on the other set of flags, might be what the flying was)
 
| Locked in for trading (it's a projectile on the other set of flags, might be what the flying was)
 
|-
 
|-
 
!17
 
!17
 +
| slaughter
 
| Marked for slaughter
 
| Marked for slaughter
 
|-
 
|-
 
!18
 
!18
 +
| underwrld
 
| Underworld creature
 
| Underworld creature
 
|-
 
|-
 
!19
 
!19
 +
| can't eat
 
| Current resident
 
| Current resident
 
|-
 
|-
 
!20
 
!20
 +
| 0x1.5b
 
| Marked for special cleanup as unused load from unit block on disk
 
| Marked for special cleanup as unused load from unit block on disk
 
|-
 
|-
 
!21
 
!21
 +
| 0x2.5b
 
| Insulation from clothing calculated
 
| Insulation from clothing calculated
 
|-
 
|-
 
!22
 
!22
 +
| 0x4.5b
 
| Uninvited guest
 
| Uninvited guest
 
|-
 
|-
 
!23
 
!23
 +
| visitor?
 
| Visitor
 
| Visitor
 
|-
 
|-
 
!24
 
!24
 +
| 0x1.6b
 
| Inventory order calculated
 
| Inventory order calculated
 
|-
 
|-
 
!25
 
!25
 +
| 0x2.6b
 
| Vision -- have good part
 
| Vision -- have good part
 
|-
 
|-
 
!26
 
!26
 +
| 0x4.6b
 
| Vision -- have damaged part
 
| Vision -- have damaged part
 
|-
 
|-
 
!27
 
!27
 +
| 0x8.6b
 
| Vision -- have missing part
 
| Vision -- have missing part
 
|-
 
|-
 
!28
 
!28
 +
| 0x1.7b
 
| Breathing -- have good part
 
| Breathing -- have good part
 
|-
 
|-
 
!29
 
!29
 +
| winded?
 
| Breathing -- having a problem
 
| Breathing -- having a problem
 
|-
 
|-
 
!30
 
!30
 +
| 0x4.7b
 
| Roaming wilderness population source
 
| Roaming wilderness population source
 
|-
 
|-
 
!31
 
!31
 +
| tame2
 
| Roaming wilderness population source -- not a map feature
 
| Roaming wilderness population source -- not a map feature
 
|}
 
|}
 
  
 
[[Category:Hacking]]
 
[[Category:Hacking]]

Revision as of 17:15, 2 November 2009

Creature or Unit flags

Thanks to ToadyOne for explaining what these bits do.

Checkbox labels

Flags Word 0 (32 bits)

Bit DwarfCompanion Meaning
0 0x1 Can the dwarf move or are they waiting for their movement timer
1 dead? Dead (might also be set for incoming/leaving critters that are alive)
2 0x4 Currently in mood
3 artifact Had a mood
4 0x10 "marauder" -- wide class of invader/inside creature attackers
5 0x20 Drowning
6 merch1? Active merchant
7 caravan guard? "forest" (used for units no longer linked to merchant/diplomacy, they just try to leave mostly)
8 0x100 Left (left the map)
9 0x200 Rider
10 !unitlist Incoming
11 liaison? Diplomat
12 zombie Zombie
13 skel Skeleton
14 working? Can swap tiles during movement (prevents multiple swaps)
15 prone On the ground (can be conscious)
16 0x1.4 Projectile
17 inv1 Active invader (for organized ones)
18 hidden Hidden in ambush
19 inv2 Invader origin (could be inactive and fleeing)
20 0x1.5 Will flee if invasion turns around
21 0x2.5 Active marauder/invader moving inward
22 0x4.5 Marauder resident/invader moving in all the way
23 0x8.5 Check against flows next time you get a chance
24 0x1.6 Ridden
25 0x2.6 Caged
26 tame Tame
27 0x8.6 Chained
28 r.guard Royal guard
29 f.guard Fortress guard
30 0x4.7 Suppress wield for beatings/etc
31 0x8.7 Is an important historical figure

Flags Word 1 (32 bits)

Bit DwarfCompanion Meaning
0 0x1b Swimming
1 0x2b Play combat for sparring
2 0x4b Do not notify about level gains (for embark etc)
3 0x8b Unused
4 0x10b Nerves calculated
5 0x20b Body part info calculated
6 0x4b Is important historical figure (slight variation)
7 dead Has been killed by kill function (slightly different from dead, not necessarily violent death)
8 vanish Must be forgotten by forget function (just cleanup)
9 0x200b Must be deleted (cleanup)
10 0x400b Recently forgotten (cleanup)
11 0x800b Offered for trade
12 0x1000b Trade resolved
13 winded? Has breaks
14 0x4000b Gutted
15 ground Circulatory spray
16 flying Locked in for trading (it's a projectile on the other set of flags, might be what the flying was)
17 slaughter Marked for slaughter
18 underwrld Underworld creature
19 can't eat Current resident
20 0x1.5b Marked for special cleanup as unused load from unit block on disk
21 0x2.5b Insulation from clothing calculated
22 0x4.5b Uninvited guest
23 visitor? Visitor
24 0x1.6b Inventory order calculated
25 0x2.6b Vision -- have good part
26 0x4.6b Vision -- have damaged part
27 0x8.6b Vision -- have missing part
28 0x1.7b Breathing -- have good part
29 winded? Breathing -- having a problem
30 0x4.7b Roaming wilderness population source
31 tame2 Roaming wilderness population source -- not a map feature