Modding:Bodies: Difference between revisions
Kernelmethod (talk | contribs) Start adding more content to the bodies article |
Kernelmethod (talk | contribs) Add section on body part type variants |
||
Line 73: | Line 73: | ||
|- | |- | ||
| DescriptionPrefix | | DescriptionPrefix | ||
| | |||
|- | |||
| ImpliedBy | |||
| | | | ||
|- | |- | ||
Line 117: | Line 120: | ||
|- | |- | ||
|} | |} | ||
== Body part type variants == | |||
In addition to specifying broad categories of body part types, you can also specify ''variants''. Outside of any properties that you explicitly define for a variant, these are functionally equivalent to their original type. | |||
Here is how <code>Bodies.xml</code> defines the <code>Tentacle</code> part type: | |||
<syntaxhighlight lang="xml"> | |||
<bodies> | |||
<!-- ... --> | |||
<bodyparttypevariants> | |||
<!-- ... --> | |||
<bodyparttypevariant VariantOf="Hand" Type="Tentacle" DefaultBehavior="SoftManipulator" Mobility="1" UsuallyOn="Body" /> | |||
<!-- ... --> | |||
</bodyparttypevariants> | |||
<!-- ... --> | |||
</bodies> | |||
</syntaxhighlight> | |||
<code>VariantOf</code> specifies the original part type that this variant belongs to; <code>Type</code> is the unique name of the variant. A type variant can define any of the properties that would normally be defined by a <code>bodyparttype</code>. | |||
{{Modding Navbox}} | {{Modding Navbox}} | ||
[[Category:Modding]] | [[Category:Modding]] |