Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Next stumper... body part not being recognized for simple attack.  (Read 735 times)

Magnut

  • Bay Watcher
    • View Profile

Okay, this one has me totally puzzled.  I've created a humanoid elephant creature, and like most humanoids in the game, I figure they should be able to punch in combat.  It's one of the perks of being a humanoid, I've found.

Code: [Select]
[CREATURE:GANESHAN]
[NAME:ganeshan:ganeshans:ganeshan]
[GENERAL_BABY_NAME:ganeshan calf:ganeshan calves]
[GENERAL_CHILD_NAME:ganeshan calf:ganeshan calves]
[DESCRIPTION:A large animal person with the head of an elephant.]
[INTELLIGENT]
[POPULATION_NUMBER:30:50]
[CLUSTER_NUMBER:5:10]
[MAXAGE:70:90]
[CREATURE_TILE:'G']
[COLOR:7:0:1]
[PREFSTRING:wise eyes]
[PREFSTRING:wrinkled skin]
[PREFSTRING:long tusks]
[PREFSTRING:flexible trunks]
[BODY:HUMANOID:TAIL:2EYES:2EARS:TRUNK:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:THROAT:NECK:SPINE:BRAIN:SKULL:MOUTH:2TUSKS:GENERIC_TEETH:RIBCAGE]
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[USE_MATERIAL_TEMPLATE:IVORY:TOOTH_TEMPLATE]
[STATE_NAME:ALL_SOLID:ivory]
[STATE_ADJ:ALL_SOLID:ivory]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[USE_TISSUE_TEMPLATE:IVORY:IVORY_TEMPLATE]
[TISSUE_NAME:ivory:NP]
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]
[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]
[CREATURE_CLASS:GENERAL_POISON]
[GETS_WOUND_INFECTIONS]
[GETS_INFECTIONS_FROM_ROT]
[USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE]
[PUS:LOCAL_CREATURE_MAT:PUS:LIQUID]
[BODY_SIZE:0:0:17500]
[BODY_SIZE:8:0:70000]
[BODY_SIZE:18:0:140000]
[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]
[ATTACK:PUNCH:BODYPART:BY_CATEGORY:HAND]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:punch:punches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PRIORITY:MAIN]
[ATTACK:PUNCH:BODYPART:BY_CATEGORY:TRUNK]
[ATTACK_SKILL:WRESTLING]
[ATTACK_VERB:grab:grabs]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_FLAG_CANLATCH]
[ATTACK_PRIORITY:MAIN]
[ATTACK:GORE:BODYPART:BY_CATEGORY:TUSK]
[ATTACK_SKILL:BITE]
[ATTACK_VERB:gore:gores]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PRIORITY:SECOND]
[PROFESSION_NAME:WRESTLER:berserker:berserkers]
[PROFESSION_NAME:HAMMERMAN:earthshaker:earthshakers]
[PROFESSION_NAME:SPEARMAN:shieldpiercer:shieldpiercers]
[PROFESSION_NAME:SWORDSMAN:stalwart:stalwarts]
[PROFESSION_NAME:PIKEMAN:guardian:guardians]
[PROFESSION_NAME:WRESTLER:grappler:grapplers]
[PROFESSION_NAME:CARPENTER:builder:builders]
[PROFESSION_NAME:MASON:builder:builders]
[PROFESSION_NAME:FURNACE_OPERATOR:metallurgist:metallurgists]
[PROFESSION_NAME:MINER:digger:diggers]
[TRANCES]
[SKILL_RATES:100:64:64:64]
[CASTE:FEMALE]
[FEMALE]
[CASTE:MALE]
[MALE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:SKIN]
[TL_COLOR_MODIFIER:GRAY:1]
[TLCM_NOUN:skin:SINGULAR]
[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
[TL_COLOR_MODIFIER:IRIS_EYE_BROWN:1:IRIS_EYE_GOLD:1:IRIS_EYE_YELLOW:1]
[TLCM_NOUN:eyes:PLURAL]
[SELECT_MATERIAL:ALL]
[MULTIPLY_VALUE:2]

Here's what the errorlog says:

*** Error(s) found in the file "raw/objects/creature_ganeshan.txt"
GANESHAN:Attack PUNCH seems to have correct format but could not find proper BPs in any caste, so not added.

I tried setting the attack to use bodypart by type GRASP, that didn't work.  So then I tried just giving it to all parts with the category of hand.  That didn't work either.  It acts like there's no GRASP or HAND bodyparts in the creature, but there are - owing to the HUMANOID body plan.  I'm copying and pasting functional punch attacks from other humanoid creatures - dwarves - and it's just not recognizing that the creature has the right kind of bodypart to carry out the attack.

What simple thing am I missing? 

I'm pretty proud of these guys otherwise - here's the tiles.  Their beady little eyes are BEGGING to be able to punch things.


Logged

Igfig

  • Bay Watcher
    • View Profile
Re: Next stumper... body part not being recognized for simple attack.
« Reply #1 on: March 27, 2011, 05:48:07 pm »

You have two attacks named PUNCH, one of which uses the trunk.  Try changing that attack's name to something else.

More importantly, there's no such thing as CATEGORY:TRUNK.  Use CATEGORY:NOSE.

Magnut

  • Bay Watcher
    • View Profile
Re: Next stumper... body part not being recognized for simple attack.
« Reply #2 on: March 27, 2011, 06:00:23 pm »

That did it.  Three cheers for peer review picking up tiny errors where I wasn't even looking.
Logged