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 v0.34:Interaction token

Jump to navigation Jump to search

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

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.34"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

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 37: Line 37:
 
| Within I_SOURCE
 
| Within I_SOURCE
 
| text
 
| text
| Describes what the interaction did to a historical figure. Displayed after the name of the historical figure that was targeted by the interaction.
+
| Describes what the interaction did to a historical figure. Displayed after the name of the historical figure that was targetted by the interaction.
  
 
[IS_HIST_STRING_2: to assume the form of a lizard-like monster every full moon]
 
[IS_HIST_STRING_2: to assume the form of a lizard-like monster every full moon]
Line 45: Line 45:
 
| Within I_SOURCE
 
| Within I_SOURCE
 
| Number
 
| Number
| Presumably, the probability of biome specified by [IS_REGION] to have this interaction.
+
| ?
  
 
|-
 
|-
Line 73: Line 73:
 
| Within I_SOURCE:SECRET
 
| Within I_SOURCE:SECRET
 
| [[Sphere]]
 
| [[Sphere]]
| Indicates the sphere to which this secret pertains. Only one sphere can be defined for each [I_SOURCE:SECRET] token, thus several [I_SOURCE:SECRET] tokens required to create a valid custom secret, which belongs to several different spheres
+
| Indicates the sphere to which this secret pertains.
  
 
|-
 
|-
Line 90: Line 90:
 
* MUNDANE_RESEARCH_POSSIBLE - the secret can be researched by mundane means
 
* MUNDANE_RESEARCH_POSSIBLE - the secret can be researched by mundane means
 
* MUNDANE_TEACHING_POSSIBLE - the secret can be taught to apprentices
 
* MUNDANE_TEACHING_POSSIBLE - the secret can be taught to apprentices
* MUNDANE_RECORDING_POSSIBLE:objects/text/(book_title).txt:objects/text/(book_topic).txt - the secret can be written in books with the specified title. If this tag is present, a slab will be created upon learning the secret by supernatural means.
+
* MUNDANE_RECORDING_POSSIBLE:objects/text/(book_title).txt:objects/text/(book_topic).txt - the secret can be written in books with the specified title.
 +
 
 
|-
 
|-
 
| IS_USAGE_HINT
 
| IS_USAGE_HINT
 
| Within I_SOURCE:DEITY
 
| Within I_SOURCE:DEITY
 
| Usage Hint token
 
| Usage Hint token
| Indicates why a deity would choose to perform this interaction. See CDI:USAGE_HINT below for valid values - in this context, MAJOR_CURSE is the only value that makes sense.
+
| Indicates why a deity would choose to perform this interaction. Usually MAJOR_CURSE; GREETING, CLEAN_SELF, CLEAN_FRIEND, ATTACK, and FLEEING don't make sense here.
  
 
|-
 
|-
Line 102: Line 103:
 
| id, type
 
| id, type
 
| Specifies what things this interaction acts upon. Can be specified multiple times. Valid values:
 
| Specifies what things this interaction acts upon. Can be specified multiple times. Valid values:
* CORPSE - Also includes pieces of corpses
+
* CORPSE
 
* CREATURE
 
* CREATURE
 
* MATERIAL
 
* MATERIAL
Line 112: Line 113:
 
| Location
 
| Location
 
| Narrows down exactly what the interaction targets. Valid values:
 
| Narrows down exactly what the interaction targets. Valid values:
* CONTEXT_REGION - Can only be used by IS_REGION interactions.
+
* CONTEXT_REGION
 
* CONTEXT_CREATURE
 
* CONTEXT_CREATURE
* CONTEXT_ITEM - Used when the target is a CORPSE.
+
* CONTEXT_ITEM
 
* CONTEXT_BP - Use body part from CDI:BP_REQUIRED token (below).
 
* CONTEXT_BP - Use body part from CDI:BP_REQUIRED token (below).
 
* CONTEXT_LOCATION
 
* CONTEXT_LOCATION
Line 127: Line 128:
 
| IT_AFFECTED_CREATURE
 
| IT_AFFECTED_CREATURE
 
| Within I_TARGET:CORPSE or I_TARGET:CREATURE
 
| Within I_TARGET:CORPSE or I_TARGET:CREATURE
| CREATURE:CASTE
+
| ?
 
| Specifies specific creatures the interaction can target.
 
| Specifies specific creatures the interaction can target.
  
Line 139: Line 140:
 
| IT_IMMUNE_CREATURE
 
| IT_IMMUNE_CREATURE
 
| Within I_TARGET:CORPSE or I_TARGET:CREATURE
 
| Within I_TARGET:CORPSE or I_TARGET:CREATURE
| CREATURE:CASTE
+
| ?
 
| Specifies specific creatures the interaction cannot target.
 
| Specifies specific creatures the interaction cannot target.
  
Line 153: Line 154:
 
| Creature token or property
 
| Creature token or property
 
| Indicates that the target must have the specified property. Valid values:
 
| Indicates that the target must have the specified property. Valid values:
* FIT_FOR_ANIMATION - Any corpse or body part that can become a zombie (heads, hands, etc.)
+
* FIT_FOR_ANIMATION
* FIT_FOR_RESURRECTION - The target corpse's UPPERBODY must be attached.
+
* FIT_FOR_RESURRECTION
 
* HAS_BLOOD
 
* HAS_BLOOD
 
* MORTAL
 
* MORTAL
 
* NO_AGING
 
* NO_AGING
 
* STERILE
 
* STERILE
* Creature token: BLOODSUCKER, CAN_LEARN, CAN_SPEAK, CRAZED, EXTRAVISION, LIKES_FIGHTING (or LIKESFIGHTING), MISCHIEVOUS (or MISCHIEVIOUS), NO_CONNECTIONS_FOR_MOVEMENT, NO_DIZZINESS, NO_DRINK, NO_EAT, NO_FEVERS, NO_PHYS_ATT_GAIN, NO_PHYS_ATT_RUST, NO_SLEEP, NO_THOUGHT_CENTER_FOR_MOVEMENT, NOBREATHE, NOEMOTION, NOEXERT, NOFEAR, NONAUSEA, NOPAIN, NOSTUN, NOT_LIVING, NOTHOUGHT, OPPOSED_TO_LIFE, PARALYZEIMMUNE, SUPERNATURAL, TRANCES, UTTERANCES
+
* Creature token: BLOODSUCKER, CAN_LEARN, CAN_SPEAK, CRAZED, EXTRAVISION, LIKESFIGHTING, MISCHIEVIOUS / MISCHIEVOUS, NO_CONNECTIONS_FOR_MOVEMENT, NO_DIZZINESS, NO_DRINK, NO_EAT, NO_FEVERS, NO_PHYS_ATT_GAIN, NO_PHYS_ATT_RUST, NO_SLEEP, NO_THOUGHT_CENTER_FOR_MOVEMENT, NOBREATHE, NOEMOTION, NOEXERT, NOFEAR, NONAUSEA, NOPAIN, NOSTUN, NOT_LIVING, NOTHOUGHT, OPPOSED_TO_LIFE, PARALYZEIMMUNE, SUPERNATURAL, TRANCES, UTTERANCES
  
 
|-
 
|-
Line 171: Line 172:
 
| Within I_TARGET:CORPSE or I_TARGET:CREATURE
 
| Within I_TARGET:CORPSE or I_TARGET:CREATURE
 
|  
 
|  
| Prevents the interaction from targeting a creature that's already under the effect of the same interaction.
+
| Prevents the interaction from targetting a creature that's already under the effect of the same interaction.
  
 
|-
 
|-
Line 177: Line 178:
 
| Within I_TARGET:CORPSE or I_TARGET:CREATURE
 
| Within I_TARGET:CORPSE or I_TARGET:CREATURE
 
| [[Syndrome]] class
 
| [[Syndrome]] class
| Prevents the interaction from targeting a creature under the effects of a syndrome having the specified SYN_CLASS value.
+
| Prevents the interaction from targetting a creature under the effects of a syndrome having the specified SYN_CLASS value.
  
 
|-
 
|-
Line 193: Line 194:
 
| type
 
| type
 
| Specifies what the interaction does to the targets. Can be specified multiple times. Valid values:
 
| Specifies what the interaction does to the targets. Can be specified multiple times. Valid values:
* ANIMATE - Raises the target corpse/bodypart as a zombie.  The zombie will always be hostile to life and will retain no information about its original personality/loyalties.  Syndromes can also be specified within this tag.
+
* ANIMATE
* RESURRECT - Returns the creature to life.  This can be used on parts that are not FIT_FOR_RESURRECTION, but only the main part (with an UPPERBODY attached) will remain loyal to its original faction.  Syndromes can also be specified within this tag.
+
* RESURRECT
* ADD_SYNDROME - Adds one or more syndromes.  The actual syndrome is specified with the [SYNDROME] tag.
+
* ADD_SYNDROME
* CLEAN - Cleans off most liquids/dust covering the creature.
+
* CLEAN
* HIDE - Allows the creature to hide even if another creature can see it.
+
* HIDE
* CONTACT - Causes the creatures to touch.  The interaction's range must be TOUCHABLE.
+
* CONTACT
* MATERIAL_EMISSION - Used within the MATERIAL_EMISSION interaction.
+
* MATERIAL_EMISSION
  
 
|-
 
|-
Line 235: Line 236:
 
| text
 
| text
 
| Allows the interaction to be applied to newly spawned creatures in Arena mode.
 
| Allows the interaction to be applied to newly spawned creatures in Arena mode.
 
|-
 
| IE_GRIME_LEVEL
 
| Within I_EFFECT:CLEAN
 
| amount?
 
| [IE_GRIME_LEVEL:2] appears in the default cleaning interaction, and may indicate amount of grime cleaned.
 
 
|-
 
| IE_SYNDROME_TAG
 
| Within I_EFFECT:CLEAN
 
| Syndrome flag
 
| Indicates that cleaning off materials will activate their syndromes if they have this flag.
 
  
 
|-
 
|-
Line 274: Line 263:
 
| TARGET
 
| TARGET
 
| target ID, target types
 
| target ID, target types
| Specifies how the creature chooses what to . Target ID refers to an I_TARGET defined in the interaction itself. Multiple target types can be specified. If no target is specified, creature will target any available target within range, even through walls.  Valid target types:
+
| Specifies how the creature chooses what to . Target ID refers to an I_TARGET defined in the interaction itself. Multiple target types can be specified. Valid target types:
 
* LINE_OF_SIGHT - the source needs to be able to see the target
 
* LINE_OF_SIGHT - the source needs to be able to see the target
 
* TOUCHABLE - the source needs to be able to touch the target
 
* TOUCHABLE - the source needs to be able to touch the target
Line 288: Line 277:
 
|-
 
|-
 
| LOCATION_HINT
 
| LOCATION_HINT
| Location Hint (see above)
+
| Location Hint (see avove)
 
| ?
 
| ?
  
Line 294: Line 283:
 
| USAGE_HINT
 
| USAGE_HINT
 
| Usage hint token
 
| Usage hint token
| Indicates when and how CPU-controlled creatures will use the interaction. If no hint is specified, the interaction will be used whenever a valid target is available. Valid values:
+
| Indicates how the interaction is to be used. Valid values:
* MAJOR_CURSE - Used in disturbance curses and deity curses.  Targets the tomb disturber/temple defiler.
+
* MAJOR_CURSE
* GREETING - Creatures will target 'friendly' creatures, usually at random.
+
* GREETING
* CLEAN_SELF - Creature targets itself when covered in liquids or dust.
+
* CLEAN_SELF
* CLEAN_FRIEND - Same, but targets other friendly units.
+
* CLEAN_FRIEND
* ATTACK - Targets enemy creatures in combat.  If the interaction specifies SELF_ONLY, CPU-controlled creatures will never use it.
+
* ATTACK
* FLEEING - Used when fleeing an enemy.  Creature will target itself.
+
* FLEEING
  
 
|-
 
|-
Line 320: Line 309:
 
| VERBAL
 
| VERBAL
 
|  
 
|  
| Only creatures that can speak will be able to use the interaction.  Might also be needed for VERBAL_SPEECH.
+
| When the creature performs the interaction, they will speak a line of text to their target.
  
 
|-
 
|-
Line 330: Line 319:
 
| CAN_BE_MUTUAL
 
| CAN_BE_MUTUAL
 
|  
 
|  
| Presumably, allows two creatures with this same interaction to use it on each other simultaneously, for example cats cleaning each other.
+
| ?
  
 
|-
 
|-
Line 339: Line 328:
 
|-
 
|-
 
| VERB
 
| VERB
| self:other:mutual
+
| self:other:?
 
| When a creature uses the interaction, a message will display, describing the source as doing this.
 
| When a creature uses the interaction, a message will display, describing the source as doing this.
  
Line 349: Line 338:
 
|-
 
|-
 
| TARGET_VERB
 
| TARGET_VERB
| self:other
+
| plural:singular
 
| When a creature uses the interaction, a message will display, describing the target as doing this.
 
| When a creature uses the interaction, a message will display, describing the target as doing this.
  
Line 359: Line 348:
 
|-
 
|-
 
| FLOW
 
| FLOW
| [[Syndrome#Breath Attack Types|Breath attack token]]
+
| Breath attack token
 
| Causes the interaction to create an effect not made of any material. Only makes sense for FIREBALL, FIREJET, or DRAGONFIRE.
 
| Causes the interaction to create an effect not made of any material. Only makes sense for FIREBALL, FIREJET, or DRAGONFIRE.
  

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)