Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Confused about iron bones & skull effects on combat  (Read 1050 times)

IncompetentFortressMaker

  • Bay Watcher
  • [NATURAL_SKILL:MODDING:2]
    • View Profile
Confused about iron bones & skull effects on combat
« on: May 15, 2019, 03:24:54 pm »

While making a creature, I decided "oh what the heck, let's give this thing iron bones!" Much to my surprise, when getting two of them to fight in the object testing arena, they killed each other instantly when hit in the head. I've also taken control of one and fought an opponent of the same species, and when I hit the opponent in the head with a scratch, it was killed instantly. Oddly enough, this only occurs if the muscle is damaged. They can sometimes instantly kill humans upon hitting them in the head as well. Perhaps the strangest thing is that the iron bones do seem to considerably add to the creature's strength, despite its scratch attack using its claws for damage (or should, anyway). As it also possesses iron teeth, its bite attack is understandably powerful. Why the skull seems to be treated as "doesn't exist" because it's made of iron, I have no idea. Its bite attack also either won't cause an instant-kill or such an instant-kill is uncommon, as I have yet to see a bite attack cause an instant-kill (to another creature of same species or a creature of different species). Here's its raw:
Code: [Select]
creature_bleedilot

[OBJECT:CREATURE]

[CREATURE:BLEEDILOT]
[DESCRIPTION:Furred creature that takes the basic appearance of an ocelot. Key differences are its size (double a normal ocelot's) and constant secretion of blood from its skin (hence its name). Possesses iron bones and teeth.]
[NAME:bleedilot:bleedilots:bleedilot]
[CASTE_NAME:bleedilot:bleedilots:bleedilot]
[CREATURE_TILE:'b'][COLOR:4:0:0]
[CREATURE_CLASS:MAMMAL]
[SAVAGE]
[BIOME:ANY_TROPICAL_FOREST]
[BIOME:SWAMP_MANGROVE]
[BIOME:SAVANNA_TROPICAL]
[BIOME:GRASSLAND_TROPICAL]
[LARGE_ROAMING][FREQUENCY:15]
[POPULATION_NUMBER:10:15]
[CLUSTER_NUMBER:1:3]
[CARNIVORE]
[BONECARN]
[GRASSTRAMPLE:0]
[PREFSTRING:horrific appearance]
[BODY:QUADRUPED_NECK:TAIL:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:SKULL:5TOES_FQ_REG:4TOES_RQ_REG:MOUTH:GENERIC_TEETH_WITH_LARGE_EYE_TEETH:RIBCAGE]
[BODYGLOSS:PAW]
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:IRON_BONE:CARTILAGE]
[BODY_DETAIL_PLAN:BODY_HAIR_TISSUE_LAYERS:HAIR]
[USE_MATERIAL_TEMPLATE:CLAW:NAIL_TEMPATE]
[USE_TISSUE_TEMPLATE:CLAW:CLAW_TEMPLATE]
[USE_TISSUE:IRON_BONE]
[TISSUE_NAME:iron bone:NP]
[STRUCTURAL]
[CONNECTIVE_TISSUE_ANCHOR]
[TISSUE_MATERIAL:INORGANIC:IRON]
[RELATIVE_THICKNESS:2]
[HEALING_RATE:5000]
[VASCULAR:3]
[PAIN_RECEPTORS:50]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
[SETTABLE]
[SPLINTABLE]
[TISSUE_LAYER:BY_CATEGORY:TOE:CLAW:FRONT]
[SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]
[PLUS_TISSUE_LAYER:SKIN:BY_CATEGORY:THROAT]
[TL_MAJOR_ARTERIES]
[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
[BODY_DETAIL_PLAN:HUMANOID_RIBCAGE_POSITIONS]
[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE]
[TENDONS:LOCAL_CREATURE_MAT:SINEW:200]
[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200]
[HAS_NERVES]
[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
[BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]
[STATE_NAME:ALL_SOLID:frozen bleedilot blood]
[STATE_ADJ:ALL_SOLID:frozen bleedilot blood]
[STATE_NAME:LIQUID:bleedilot blood]
[STATE_ADJ:LIQUID:bleedilot blood]
[STATE_NAME:GAS:boiling bleedilot blood]
[STATE_ADJ:GAS:boiling bleedilot blood]
[PREFIX:NONE]
[SYNDROME]
[SYN_NAME:bleedilot blood poisoning]
[SYN_AFFECTED_CLASS:GENERAL_POISON]
[SYN_IMMUNE_CREATURE:BLEEDILOT:ALL]
[SYN_CONTACT]
[SYN_CONCENTRATION_ADDED:100:1000]
[CE_DIZZINESS:SEV:50:PROB:100:RESISTABLE:START:0:PEAK:2000:END:2500]
[CE_NAUSEA:SEV:50:PROB:100:RESISTABLE:START:0:PEAK:2000:END:2500]
[CE_PAIN:SEV:50:PROB:100:RESISTABLE:START:0:PEAK:2000:END:2500]
[CREATURE_CLASS:GENERAL_POISON]
[USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE]
[PUS:LOCAL_CREATURE_MAT:PUS:LIQUID]
[SECRETION:LOCAL_CREATURE_MAT:BLOOD:LIQUID:BY_CATEGORY:ALL:SKIN:CONTINUOUS]
[CAN_DO_INTERACTION:MATERIAL_EMISSION]
[CDI:ADV_NAME:Bleedilot spit]
[CDI:USAGE_HINT:NEGATIVE_SOCIAL_RESPONSE]
[CDI:USAGE_HINT:TORMENT]
[CDI:BP_REQUIRED:BY_CATEGORY:MOUTH]
[CDI:MATERIAL:LOCAL_CREATURE_MAT:BLOOD:LIQUID_GLOB]
[CDI:VERB:spit:spits:NA]
[CDI:TARGET:C:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:C:15]
[CDI:MAX_TARGET_NUMBER:C:1]
[CDI:WAIT_PERIOD:30]
[BODY_SIZE:0:0:500]
[BODY_SIZE:3:0:25000]
[BODY_SIZE:6:0:50000]
[BODY_APPEARANCE_MODIFIER:LENGTH:90:95:98:100:102:105:110]
[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110]
[BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110]
[MAXAGE:16:32]
[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD:BY_CATEGORY:TOOTH]
[ATTACK_SKILL:BITE]
[ATTACK_VERB:bite:bites]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_CANLATCH]
[SPECIALATTACK_SUCK_BLOOD:20:70]
[ATTACK:SCRATCH:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:STANCE:BY_CATEGORY:ALL:CLAW]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:scratch:scratches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_PRIORITY:MAIN]
[NOCTURNAL]
[HOMEOTHERM:10067]
[APPLY_CREATURE_VARIATION:STANDARD_QUADRUPED_GAITS:900:691:482:251:1900:2900] 35 kph
[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:6561:6115:5683:1755:7456:8567] 5 kph
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:6561:6115:5683:1755:7456:8567] 5 kph
[APPLY_CREATURE_VARIATION:STANDARD_CLIMBING_GAITS:1945:1504:1062:548:3100:4500] 16 kph
[STANCE_CLIMBER][NATURAL_SKILL:CLIMBER:15]
[SWIMS_INNATE]
[BABY:3][GENERAL_BABY_NAME:bleedilot kitten:bleedilot kittens:bleedilot kitten]
[CHILD:10][GENERAL_CHILD_NAME:bleedilot kitten:bleedilot kittens:bleedilot kitten]
[CASTE:FEMALE]
[FEMALE]
[CASTE:MALE]
[MALE]
[SET_BP_GROUP:BY_TYPE:LOWERBODY][BP_ADD_TYPE:GELDABLE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:HAIR]
[TL_COLOR_MODIFIER:RED:1]
[TLCM_NOUN:hair:SINGULAR]
[SET_TL_GROUP:BY_CATEGORY:ALL:SKIN]
[TL_COLOR_MODIFIER:BLACK:1]
[TLCM_NOUN:skin:SINGULAR]
[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
[TL_COLOR_MODIFIER:IRIS_EYE_BLACK:1]
[TLCM_NOUN:eyes:PLURAL]
[SELECT_MATERIAL:ALL]
[MULTIPLY_VALUE:4]
I also haven't failed to notice that when controlling a creature fighting it (and said creature is not another bleedilot, as bleedilots are immune to their own syndrome) and said creature touches its blood, the syndrome attached to said blood is only applied after I go back into the arena, but if I control the creature again the syndrome's effects persist and I get status indicators regarding it. Its iron bones, aside from the exception involving the skull, do work correctly in terms of injuries - where I might normally see "bruised" or "broken" for a bone, I saw "dented" instead in reference to injuries (E.G. "left rear paw is dented", as I use the paw bodygloss - though said description would only show up when viewing the screen analogous to a dwarf's "thoughts and preferences" screen in Fortress Mode). Any help appreciated, this is very confusing.

IncompetentFortressMaker

  • Bay Watcher
  • [NATURAL_SKILL:MODDING:2]
    • View Profile
Re: Confused about iron bones & skull effects on combat
« Reply #1 on: May 15, 2019, 03:43:37 pm »

Just saw a kill due to a bite attack, though said kill only worked because the skull collapsed. This is the first kill even mentioning the skull, so I guess it does exist. Scratching the head's muscle (if it's damaged) is still an instant-kill though. Oh, and removed the [BONECARN] tag as I decided it didn't need to eat both bones and meat, but that doesn't seem to have a particularly significant effect... :-\

voliol

  • Bay Watcher
    • View Profile
    • Website
Re: Confused about iron bones & skull effects on combat
« Reply #2 on: May 15, 2019, 04:06:16 pm »

The IRON_BONE tissue needs to be defined before it is used by the BODY_DETAIL_PLAN. As it isn't, the game uses the lowest ID tissue instead (the one defined first), in this case, skin.

IncompetentFortressMaker

  • Bay Watcher
  • [NATURAL_SKILL:MODDING:2]
    • View Profile
Re: Confused about iron bones & skull effects on combat
« Reply #3 on: May 15, 2019, 04:18:21 pm »

...wow thank you.  :) Will be sure to rectify that.

IncompetentFortressMaker

  • Bay Watcher
  • [NATURAL_SKILL:MODDING:2]
    • View Profile
Re: Confused about iron bones & skull effects on combat
« Reply #4 on: May 15, 2019, 04:25:20 pm »

Yet the same thing happened as before (new raw used, new raw below). So... what went wrong?
Code: [Select]
creature_bleedilot

[OBJECT:CREATURE]

[CREATURE:BLEEDILOT]
[DESCRIPTION:Furred creature that takes the basic appearance of an ocelot. Key differences are its size (double a normal ocelot's) and constant secretion of blood from its skin (hence its name). Possesses iron bones and teeth.]
[NAME:bleedilot:bleedilots:bleedilot]
[CASTE_NAME:bleedilot:bleedilots:bleedilot]
[CREATURE_TILE:'b'][COLOR:4:0:0]
[CREATURE_CLASS:MAMMAL]
[SAVAGE]
[BIOME:ANY_TROPICAL_FOREST]
[BIOME:SWAMP_MANGROVE]
[BIOME:SAVANNA_TROPICAL]
[BIOME:GRASSLAND_TROPICAL]
[LARGE_ROAMING][FREQUENCY:15]
[POPULATION_NUMBER:10:15]
[CLUSTER_NUMBER:1:3]
[CARNIVORE]
[GRASSTRAMPLE:0]
[PREFSTRING:horrific appearance]
[BODY:QUADRUPED_NECK:TAIL:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:SKULL:5TOES_FQ_REG:4TOES_RQ_REG:MOUTH:GENERIC_TEETH_WITH_LARGE_EYE_TEETH:RIBCAGE]
[BODYGLOSS:PAW]
[USE_TISSUE:IRON_BONE]
[TISSUE_NAME:iron bone:NP]
[STRUCTURAL]
[CONNECTIVE_TISSUE_ANCHOR]
[TISSUE_MATERIAL:INORGANIC:IRON]
[RELATIVE_THICKNESS:2]
[HEALING_RATE:5000]
[VASCULAR:3]
[PAIN_RECEPTORS:50]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
[SETTABLE]
[SPLINTABLE]
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:IRON_BONE:CARTILAGE]
[BODY_DETAIL_PLAN:BODY_HAIR_TISSUE_LAYERS:HAIR]
[USE_MATERIAL_TEMPLATE:CLAW:NAIL_TEMPATE]
[USE_TISSUE_TEMPLATE:CLAW:CLAW_TEMPLATE]
[TISSUE_LAYER:BY_CATEGORY:TOE:CLAW:FRONT]
[SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]
[PLUS_TISSUE_LAYER:SKIN:BY_CATEGORY:THROAT]
[TL_MAJOR_ARTERIES]
[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
[BODY_DETAIL_PLAN:HUMANOID_RIBCAGE_POSITIONS]
[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE]
[TENDONS:LOCAL_CREATURE_MAT:SINEW:200]
[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200]
[HAS_NERVES]
[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
[BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]
[STATE_NAME:ALL_SOLID:frozen bleedilot blood]
[STATE_ADJ:ALL_SOLID:frozen bleedilot blood]
[STATE_NAME:LIQUID:bleedilot blood]
[STATE_ADJ:LIQUID:bleedilot blood]
[STATE_NAME:GAS:boiling bleedilot blood]
[STATE_ADJ:GAS:boiling bleedilot blood]
[PREFIX:NONE]
[SYNDROME]
[SYN_NAME:bleedilot blood poisoning]
[SYN_AFFECTED_CLASS:GENERAL_POISON]
[SYN_IMMUNE_CREATURE:BLEEDILOT:ALL]
[SYN_CONTACT]
[SYN_CONCENTRATION_ADDED:100:1000]
[CE_DIZZINESS:SEV:50:PROB:100:RESISTABLE:START:0:PEAK:2000:END:2500]
[CE_NAUSEA:SEV:50:PROB:100:RESISTABLE:START:0:PEAK:2000:END:2500]
[CE_PAIN:SEV:50:PROB:100:RESISTABLE:START:0:PEAK:2000:END:2500]
[CREATURE_CLASS:GENERAL_POISON]
[USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE]
[PUS:LOCAL_CREATURE_MAT:PUS:LIQUID]
[SECRETION:LOCAL_CREATURE_MAT:BLOOD:LIQUID:BY_CATEGORY:ALL:SKIN:CONTINUOUS]
[CAN_DO_INTERACTION:MATERIAL_EMISSION]
[CDI:ADV_NAME:Bleedilot spit]
[CDI:USAGE_HINT:NEGATIVE_SOCIAL_RESPONSE]
[CDI:USAGE_HINT:TORMENT]
[CDI:BP_REQUIRED:BY_CATEGORY:MOUTH]
[CDI:MATERIAL:LOCAL_CREATURE_MAT:BLOOD:LIQUID_GLOB]
[CDI:VERB:spit:spits:NA]
[CDI:TARGET:C:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:C:15]
[CDI:MAX_TARGET_NUMBER:C:1]
[CDI:WAIT_PERIOD:30]
[BODY_SIZE:0:0:500]
[BODY_SIZE:3:0:25000]
[BODY_SIZE:6:0:50000]
[BODY_APPEARANCE_MODIFIER:LENGTH:90:95:98:100:102:105:110]
[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110]
[BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110]
[MAXAGE:16:32]
[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD:BY_CATEGORY:TOOTH]
[ATTACK_SKILL:BITE]
[ATTACK_VERB:bite:bites]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_CANLATCH]
[SPECIALATTACK_SUCK_BLOOD:20:70]
[ATTACK:SCRATCH:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:STANCE:BY_CATEGORY:ALL:CLAW]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:scratch:scratches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_PRIORITY:MAIN]
[NOCTURNAL]
[HOMEOTHERM:10067]
[APPLY_CREATURE_VARIATION:STANDARD_QUADRUPED_GAITS:900:691:482:251:1900:2900] 35 kph
[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:6561:6115:5683:1755:7456:8567] 5 kph
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:6561:6115:5683:1755:7456:8567] 5 kph
[APPLY_CREATURE_VARIATION:STANDARD_CLIMBING_GAITS:1945:1504:1062:548:3100:4500] 16 kph
[STANCE_CLIMBER][NATURAL_SKILL:CLIMBER:15]
[SWIMS_INNATE]
[BABY:3][GENERAL_BABY_NAME:bleedilot kitten:bleedilot kittens:bleedilot kitten]
[CHILD:10][GENERAL_CHILD_NAME:bleedilot kitten:bleedilot kittens:bleedilot kitten]
[CASTE:FEMALE]
[FEMALE]
[CASTE:MALE]
[MALE]
[SET_BP_GROUP:BY_TYPE:LOWERBODY][BP_ADD_TYPE:GELDABLE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:HAIR]
[TL_COLOR_MODIFIER:RED:1]
[TLCM_NOUN:hair:SINGULAR]
[SET_TL_GROUP:BY_CATEGORY:ALL:SKIN]
[TL_COLOR_MODIFIER:BLACK:1]
[TLCM_NOUN:skin:SINGULAR]
[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
[TL_COLOR_MODIFIER:IRIS_EYE_BLACK:1]
[TLCM_NOUN:eyes:PLURAL]
[SELECT_MATERIAL:ALL]
[MULTIPLY_VALUE:4]

Roses

  • Bay Watcher
    • View Profile
Re: Confused about iron bones & skull effects on combat
« Reply #5 on: May 16, 2019, 10:06:59 am »

Do you have anything in your error log?
Logged

IncompetentFortressMaker

  • Bay Watcher
  • [NATURAL_SKILL:MODDING:2]
    • View Profile
Re: Confused about iron bones & skull effects on combat
« Reply #6 on: May 16, 2019, 11:09:38 am »

I was being an idiot and thought [USE_TISSUE] meant defining a new tissue.

Roses

  • Bay Watcher
    • View Profile
Re: Confused about iron bones & skull effects on combat
« Reply #7 on: May 16, 2019, 11:47:24 am »

Ah, I didn't even catch that. Yes, you need to use [TISSUE:IRON_BONE] or [USE_TISSUE_TEMPLATE:IRON_BONE:IRON_BONE_TEMPLATE] and make a template in the tissue_templates.txt (helpful if you want to give more than one creature the iron bone tissue)
Logged