Skip to content
Rinaldo Bueno edited this page Jul 20, 2023 · 5 revisions

To add hair to your custom you need to add the tag <Hair>True</Hair> and <HairInfo></HairInfo> in your custom archerData.xml

<HairInfo> support the following values (in side of it):

Color : The color of the hair. need to be a HEX value and works better with white sprites (the defaults one are, so don't worry) ie <Color>c33f3f</Color> (required)

Links : how many links the hair have. almost like its lenght. ie <Links>5</Links> (required)

LinksDist : how far each links the hair are from each othert. ie <LinksDist>5</LinksDist> (required)

X : the X offset from the head. use this to position the hair in the head horizontally. you can even go nuts and created Scarfs, Capes, Tails and you creativity . Usually 0 is fine. Mind the caps. ie <X>0</X> (required)

Y : the Y offset from the head. use this to position the hair in the head vertically. you can even go nuts and created Scarfs, Capes, Tails and you creativity. Mind the caps. ie <Y>2</Y> (required)

DuckingOffset : have as X and Y, but happens when you character is duck . ie <DuckingOffset>2</DuckingOffset> by default is only applys to Y. But you can use <DuckingOffset x="2" y="1"/> in case you want to change the X. (required)

Scale : the scale of the hair . ie <Scale>2</Scale>

EndColor : The color from the bottom (last link) of the hair. need to be a HEX value and works better with white sprites (the defaults one are, so don't worry) ie <EndColor>4cff00</EndColor>

HairSprite : Used to change the hair appearance. Need to be a valid sprite in the custom Atlas. it is recommend to use a white sprite to be able to use together with <Color>. or have a sprite with color but use <Color>ffffff<Color> last link) of the hair. HairEndSprite : Used to change the bottom (last link) of the hair. Need to be a valid sprite in the custom Atlas. it is recommend to use a white sprite to be able to use together with <Color>. or have a sprite with color but use <Color>ffffff<Color> last link) of the hair.

Gradient : When True, will make a Gradient from the the <Color> to <EndColor> . so use both elements. ie <Gradient>True/False</Gradient>

SineValue : should work, but it don't.

VisibleWithHat When False, the hair will not show while using a Hat. <VisibleWithHat>True/False</VisibleWithHat> (dafault: True)

WithHatOffset : Same as X and Y, but happens when you character has the Hat on . ie
<WithHatOffset x="2" y="1"/>

A simple hair for sample:

    <Hair>True</Hair>
    <HairInfo>
      <Links>5</Links>
      <Scale>2</Scale>
      <LinksDist>3</LinksDist>
      <X>0</X>
      <Y>2</Y>
      <DuckingOffset>2</DuckingOffset>
      <Color>c33f3f</Color>
    </HairInfo>
  • Can I start without a Hat? Use <StartNoHat>True</StartNoHat> outside OUTSIDE of <HairInfo>

  • Can make the Hair behave like White archer? Set <VisibleWithHat> to False and set head for the "Hat" head

Clone this wiki locally