61
DF Modding / Castes, body appearance modifiers, armor and weapons.
« on: July 18, 2023, 04:51:26 pm »
What is the value checked when the game needs to know if a creature may equip a piece of armor or weapon?
I know that it is not the actual size of the creature in question, that is why no dwarves may equip some weapons, even though they may be able to equip them two or even on handed if the minimum size requirements applied to individual creature. I also know that armor is sized to a particular size, and that outside of a small range from that size, other species may not equip it.
However, what I need to know is what value specifically is checked.
For instance, if I have a species of civilized creatures, which are exactly like humans, with the designated creature size being 70,000, but with one of the two castes for each gender being changed to the size of a dwarf using [CHANGE_BODY_SIZE_PERC], what would be the result? Could the smaller caste still equip the "human sized armor"? Could they equip all weapons?
Additionally, may the average size of a creature be made to be smaller than their indicated size should dictate, if [BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110] is changed to
[BODY_APPEARANCE_MODIFIER:HEIGHT:10:25:50:75:90:105:110]? And would such changes prevent any of the smaller creatures from wearing armor or equipping weapons they rightfully ought to be able to given their [BODY_SIZE]?
This is very important for a mod I am working on, which includes castes ranging from half the size of a human, to three times their size. I would greatly appreciate any help.
I know that it is not the actual size of the creature in question, that is why no dwarves may equip some weapons, even though they may be able to equip them two or even on handed if the minimum size requirements applied to individual creature. I also know that armor is sized to a particular size, and that outside of a small range from that size, other species may not equip it.
However, what I need to know is what value specifically is checked.
For instance, if I have a species of civilized creatures, which are exactly like humans, with the designated creature size being 70,000, but with one of the two castes for each gender being changed to the size of a dwarf using [CHANGE_BODY_SIZE_PERC], what would be the result? Could the smaller caste still equip the "human sized armor"? Could they equip all weapons?
Additionally, may the average size of a creature be made to be smaller than their indicated size should dictate, if [BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110] is changed to
[BODY_APPEARANCE_MODIFIER:HEIGHT:10:25:50:75:90:105:110]? And would such changes prevent any of the smaller creatures from wearing armor or equipping weapons they rightfully ought to be able to given their [BODY_SIZE]?
This is very important for a mod I am working on, which includes castes ranging from half the size of a human, to three times their size. I would greatly appreciate any help.