Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Why can't this wear armor?  (Read 803 times)

Dibuk

  • Bay Watcher
    • View Profile
Why can't this wear armor?
« on: November 30, 2010, 07:42:27 am »

As the topic says. The creature below is supposed to be a skeleton, it's based of the bronze colossus.
It can use weapons just fine, but when I spawn one with armor it gets the right size and all, but lies on the floor at the soon-to-be-dead creature. I guess it's because it is made of only one type of material (copper camoflaged as bone for now, else they get chopped to bits by a punch or less... because they dont have armor...), so any nifty way to solve this?
 

Code: [Select]
[CREATURE:DEATHKIN]
[DESCRIPTION:A Undead humanoid creature.]
[NAME:deathkin:deathkins:deathkin]
[CASTE_NAME:deathkin:deathkins:deathkin]
[CREATURE_TILE:'d'][COLOR:4:0:0]
[NOPAIN][EXTRAVISION][NOBREATHE][NOSTUN][NONAUSEA][NOEMOTION]
[NOTHOUGHT][NOEXERT]
[NO_DIZZINESS]
[NO_FEVERS]
[NOBLEED]
[INTELLIGENT]
[PARALYZEIMMUNE]
[BUILDINGDESTROYER:2]
[LARGE_PREDATOR]
[NO_DRINK][NO_EAT][NO_SLEEP]
[SPHERE:EVIL]
[SPHERE:WAR]
[CANNOT_UNDEAD]
[CANOPENDOORS]
[NOT_BUTCHERABLE]
[BIOME:ANY_LAND]
[EQUIPS]
[NOSMELLYROT]
[NOFEAR]
[PREFSTRING:creepyness]
[NOMEAT]
[BODY:HUMANOID:HUMANOID_JOINTS:MOUTH:5FINGERS:5TOES]
[NO_THOUGHT_CENTER_FOR_MOVEMENT]
[TISSUE:COPPER]
[TISSUE_NAME:bone:bone]
[TISSUE_MATERIAL:INORGANIC:COPPER]
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[RELATIVE_THICKNESS:1]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
[TISSUE_LAYER:BY_CATEGORY:ALL:COPPER]
[BODY_SIZE:0:0:55]
[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110]
[BODY_APPEARANCE_MODIFIER:BROADNESS:85:88:90:92:95:98:100]
[PERSONALITY:VULNERABILITY:0:5:10]
[PERSONALITY:ACTIVITY_LEVEL:90:95:100]
[PERSONALITY:DUTIFULNESS:90:95:100]
[PERSONALITY:INTELLECTUAL_CURIOSITY:0:25:50]
[PERSONALITY:SELF_CONSCIOUSNESS:5:10:15]

[PROFESSION_NAME:CRAFTSMAN:craftskin:craftskins]
[PROFESSION_NAME:HAMMERMAN:hammerkin:hammerkins]
[PROFESSION_NAME:SPEARMAN:spearkin:spearkins]
[PROFESSION_NAME:CROSSBOWMAN:markskin:markskins]
[PROFESSION_NAME:AXEMAN:scythekin:scythekins]
[PROFESSION_NAME:SWORDSMAN:swordkin:swordkins]
[PROFESSION_NAME:MACEMAN:macekin:macekins]
[PROFESSION_NAME:PIKEMAN:pikekin:pikekins]
[PROFESSION_NAME:BOWMAN:bowdkin:bowkins]
[PROFESSION_NAME:MASTER_CROSSBOWMAN:Elite Markskin:Elite Markskins]
[PROFESSION_NAME:MASTER_BOWMAN:Elite Bowkin:Elite Bowkins]
[PROFESSION_NAME:MASTER_AXEMAN:scythelord:scythelords]

[NATURAL_SKILL:MELEE_COMBAT:1]
[NATURAL_SKILL:DODGING:2]
[NATURAL_SKILL:SITUATIONAL_AWARENESS:1]

[PHYS_ATT_RANGE:STRENGTH:700:1200:1400:1500:1600:1800:2500]             ++
[PHYS_ATT_RANGE:AGILITY:700:1200:1400:1500:1600:1800:2500]              ++
[PHYS_ATT_RANGE:TOUGHNESS:700:1200:1400:1500:1600:1800:2500]            ++
[PHYS_ATT_RANGE:RECUPERATION:400:500:600:750:1000:1200:1750]            -
[PHYS_ATT_RANGE:DISEASE_RESISTANCE:5000:5000:5000:5000:5000:5000:5000]  MAX
[MENT_ATT_RANGE:INTUITION:400:500:600:750:1000:1200:1750]               -
[MENT_ATT_RANGE:FOCUS:5000:5000:5000:5000:5000:5000:5000]         MAX
[MENT_ATT_RANGE:PATIENCE:5000:5000:5000:5000:5000:5000:5000]         MAX
[MENT_ATT_RANGE:MEMORY:5000:5000:5000:5000:5000:5000:5000]         MAX
[MENT_ATT_RANGE:SPATIAL_SENSE:700:1200:1400:1500:1600:1800:2500]        ++
[MENT_ATT_RANGE:LINGUISTIC_ABILITY:400:500:600:750:1000:1200:1750]      -
[MENT_ATT_RANGE:MUSICALITY:0:0:0:0:0:0:0]
[MENT_ATT_RANGE:MUSICALITY:NONE:NONE:NONE:NONE:NONE:NONE:NONE]
[MENT_ATT_RANGE:KINESTHETIC_SENSE:700:1200:1400:1500:1600:1800:2500]    ++
[MENT_ATT_RANGE:EMPATHY:100:200:300:400:500:600:750]                    ---
[MENT_ATT_RANGE:SOCIAL_AWARENESS:100:200:300:400:500:600:750]           ---

[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_PRIORITY:SECOND]
[ATTACK_FLAG_CANLATCH]
[ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:punch:punches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:MAIN]
[ATTACK:KICK:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:kick:kicks]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:SECOND]
[ALL_ACTIVE]
[SWIMS_LEARNED][SWIM_SPEED:1500]
Logged

inEQUALITY

  • Bay Watcher
  • Living On the Mirror's Edge
    • View Profile
Re: Why can't this wear armor?
« Reply #1 on: November 30, 2010, 04:20:51 pm »

As the topic says. The creature below is supposed to be a skeleton, it's based of the bronze colossus.
It can use weapons just fine, but when I spawn one with armor it gets the right size and all, but lies on the floor at the soon-to-be-dead creature. I guess it's because it is made of only one type of material (copper camoflaged as bone for now, else they get chopped to bits by a punch or less... because they dont have armor...), so any nifty way to solve this?
 

Code: [Select]
[CREATURE:DEATHKIN]
[DESCRIPTION:A Undead humanoid creature.]
[NAME:deathkin:deathkins:deathkin]
[CASTE_NAME:deathkin:deathkins:deathkin]
[CREATURE_TILE:'d'][COLOR:4:0:0]
[NOPAIN][EXTRAVISION][NOBREATHE][NOSTUN][NONAUSEA][NOEMOTION]
[NOTHOUGHT][NOEXERT]
[NO_DIZZINESS]
[NO_FEVERS]
[NOBLEED]
[INTELLIGENT]
[PARALYZEIMMUNE]
[BUILDINGDESTROYER:2]
[LARGE_PREDATOR]
[NO_DRINK][NO_EAT][NO_SLEEP]
[SPHERE:EVIL]
[SPHERE:WAR]
[CANNOT_UNDEAD]
[CANOPENDOORS]
[NOT_BUTCHERABLE]
[BIOME:ANY_LAND]
[EQUIPS]
[NOSMELLYROT]
[NOFEAR]
[PREFSTRING:creepyness]
[NOMEAT]
[BODY:HUMANOID:HUMANOID_JOINTS:MOUTH:5FINGERS:5TOES]
[NO_THOUGHT_CENTER_FOR_MOVEMENT]
[TISSUE:COPPER]
[TISSUE_NAME:bone:bone]
[TISSUE_MATERIAL:INORGANIC:COPPER]
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[RELATIVE_THICKNESS:1]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
[TISSUE_LAYER:BY_CATEGORY:ALL:COPPER]
[BODY_SIZE:0:0:55]
[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110]
[BODY_APPEARANCE_MODIFIER:BROADNESS:85:88:90:92:95:98:100]
[PERSONALITY:VULNERABILITY:0:5:10]
[PERSONALITY:ACTIVITY_LEVEL:90:95:100]
[PERSONALITY:DUTIFULNESS:90:95:100]
[PERSONALITY:INTELLECTUAL_CURIOSITY:0:25:50]
[PERSONALITY:SELF_CONSCIOUSNESS:5:10:15]

[PROFESSION_NAME:CRAFTSMAN:craftskin:craftskins]
[PROFESSION_NAME:HAMMERMAN:hammerkin:hammerkins]
[PROFESSION_NAME:SPEARMAN:spearkin:spearkins]
[PROFESSION_NAME:CROSSBOWMAN:markskin:markskins]
[PROFESSION_NAME:AXEMAN:scythekin:scythekins]
[PROFESSION_NAME:SWORDSMAN:swordkin:swordkins]
[PROFESSION_NAME:MACEMAN:macekin:macekins]
[PROFESSION_NAME:PIKEMAN:pikekin:pikekins]
[PROFESSION_NAME:BOWMAN:bowdkin:bowkins]
[PROFESSION_NAME:MASTER_CROSSBOWMAN:Elite Markskin:Elite Markskins]
[PROFESSION_NAME:MASTER_BOWMAN:Elite Bowkin:Elite Bowkins]
[PROFESSION_NAME:MASTER_AXEMAN:scythelord:scythelords]

[NATURAL_SKILL:MELEE_COMBAT:1]
[NATURAL_SKILL:DODGING:2]
[NATURAL_SKILL:SITUATIONAL_AWARENESS:1]

[PHYS_ATT_RANGE:STRENGTH:700:1200:1400:1500:1600:1800:2500]             ++
[PHYS_ATT_RANGE:AGILITY:700:1200:1400:1500:1600:1800:2500]              ++
[PHYS_ATT_RANGE:TOUGHNESS:700:1200:1400:1500:1600:1800:2500]            ++
[PHYS_ATT_RANGE:RECUPERATION:400:500:600:750:1000:1200:1750]            -
[PHYS_ATT_RANGE:DISEASE_RESISTANCE:5000:5000:5000:5000:5000:5000:5000]  MAX
[MENT_ATT_RANGE:INTUITION:400:500:600:750:1000:1200:1750]               -
[MENT_ATT_RANGE:FOCUS:5000:5000:5000:5000:5000:5000:5000]         MAX
[MENT_ATT_RANGE:PATIENCE:5000:5000:5000:5000:5000:5000:5000]         MAX
[MENT_ATT_RANGE:MEMORY:5000:5000:5000:5000:5000:5000:5000]         MAX
[MENT_ATT_RANGE:SPATIAL_SENSE:700:1200:1400:1500:1600:1800:2500]        ++
[MENT_ATT_RANGE:LINGUISTIC_ABILITY:400:500:600:750:1000:1200:1750]      -
[MENT_ATT_RANGE:MUSICALITY:0:0:0:0:0:0:0]
[MENT_ATT_RANGE:MUSICALITY:NONE:NONE:NONE:NONE:NONE:NONE:NONE]
[MENT_ATT_RANGE:KINESTHETIC_SENSE:700:1200:1400:1500:1600:1800:2500]    ++
[MENT_ATT_RANGE:EMPATHY:100:200:300:400:500:600:750]                    ---
[MENT_ATT_RANGE:SOCIAL_AWARENESS:100:200:300:400:500:600:750]           ---

[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_PRIORITY:SECOND]
[ATTACK_FLAG_CANLATCH]
[ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:punch:punches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:MAIN]
[ATTACK:KICK:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:kick:kicks]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:SECOND]
[ALL_ACTIVE]
[SWIMS_LEARNED][SWIM_SPEED:1500]

To be honest, I don't know for sure. Is it a specific piece of armor you keep trying to equip or no?
Logged
Quote from: Carl Sagan
It does no harm to the romance of the sunset to know a little bit about it.
If the magma cannon doesn't count, they aren't proper scientists.

Steele

  • Bay Watcher
    • View Profile
Re: Why can't this wear armor?
« Reply #2 on: November 30, 2010, 04:44:49 pm »

Just gave it a quick test in the arena, and upon giving it an iron breastplate I noticed it was immediately dropped like you said. I also noticed that the dropped breastplate was called "small iron breastplate" as opposed to just "iron breastplate".
In my experience, any piece of armor that is the correct size for an NPC shouldn't say it is large or small, just what it is and what it's made of.

So, I changed BODY_SIZE from 55 to 70000, and now it equips armor just fine.
Apparently, your creature was just too small.

Edit: Ugh. Should have gotten more sleep. Forgot to assume control of the deathkin during testing in the arena, which is why the breastplate showed as small. And yet I was right anyway. Go figure.
« Last Edit: November 30, 2010, 06:43:02 pm by Steele »
Logged

Lancensis

  • Bay Watcher
    • View Profile
Re: Why can't this wear armor?
« Reply #3 on: November 30, 2010, 04:47:12 pm »

Ha, size 55 is about the size of a bar of chocolate, or a sparrow. Game probably can't create armour that small, or treats any creature that size as a vermin, or something.
Logged

Dibuk

  • Bay Watcher
    • View Profile
Re: Why can't this wear armor?
« Reply #4 on: December 01, 2010, 04:52:36 pm »

Just gave it a quick test in the arena, and upon giving it an iron breastplate I noticed it was immediately dropped like you said. I also noticed that the dropped breastplate was called "small iron breastplate" as opposed to just "iron breastplate".
In my experience, any piece of armor that is the correct size for an NPC shouldn't say it is large or small, just what it is and what it's made of.

So, I changed BODY_SIZE from 55 to 70000, and now it equips armor just fine.
Apparently, your creature was just too small.

Edit: Ugh. Should have gotten more sleep. Forgot to assume control of the deathkin during testing in the arena, which is why the breastplate showed as small. And yet I was right anyway. Go figure.

That's riiight! I forgot a cuple of zeros at the end of that number.... I though "55kg thats about what a skeleton would weight! I'm so smart it hurts!"...

Thanks for the help!

Aslo a chocolate bar race would be cool as hell.
Logged