Bay 12 Games Forum

Dwarf Fortress => DF Modding => Topic started by: Starmantis on September 20, 2014, 02:15:37 pm

Title: How would one go about making tattoos/markings
Post by: Starmantis on September 20, 2014, 02:15:37 pm
So Im interested in having some civilizations have tattoos and such, warpaint or whatever, how would I best go about doing this?
Title: Re: How would one go about making tattoos/markings
Post by: Featheredragon on September 20, 2014, 05:53:16 pm
Maybe add clothing called tattoos, with the reagent a dye/paint?
Title: Re: How would one go about making tattoos/markings
Post by: cyberTripping on September 21, 2014, 11:52:45 pm
Same way dwarves have beards would work, wouldn't it?
Title: Re: How would one go about making tattoos/markings
Post by: Suds Zimmerman on September 22, 2014, 05:00:22 am
If you're fine with them being on a creature basis rather than a civ basis, you can use colours.

For example, placing this in descriptor_color_standard

Code: [Select]
[COLOR:TATTOO_BROWN]
[NAME:brown and covered in ganger tattoos]
[WORD:BROWN]
[RGB:150:75:0]

And putting the colour in the creature entry under skin, like so

Code: [Select]
[SET_TL_GROUP:BY_CATEGORY:ALL:SKIN]
[TL_COLOR_MODIFIER:TATTOO_BROWN:1]
[TLCM_NOUN:skin:SINGULAR]

Will make it so that the creature description will say "his/her/its skin is brown and covered in ganger tattoos." As a side effect, some of your denizens may report that they like the colour 'brown and covered in ganger tattoos', a little unfortunate side effect.
Title: Re: How would one go about making tattoos/markings
Post by: Starmantis on September 22, 2014, 02:13:25 pm
That could work, couldnt I put in a new tissue layer or something though and have it go over the skin? or would that cause some other problem
Title: Re: How would one go about making tattoos/markings
Post by: Findulidas on September 22, 2014, 03:54:15 pm
That could work, couldnt I put in a new tissue layer or something though and have it go over the skin? or would that cause some other problem

I think it would be another layer to hit through. So it would say things like pierces the tatto a.s.o. in the combat logs wouldnt it?
Title: Re: How would one go about making tattoos/markings
Post by: scamtank on September 22, 2014, 03:58:49 pm
You could make it one of those weird-shaped tissue layers like hair or feathers. Those don't get in the way of normal attacks.
Title: Re: How would one go about making tattoos/markings
Post by: WillowLuman on September 22, 2014, 04:01:11 pm
Facial hair (and head hair) of any kind never gets in the way of combat. A new tissue layer with the same properties should be fine, so it can say "her tattoos are blue" etc.
Title: Re: How would one go about making tattoos/markings
Post by: Dirst on September 23, 2014, 09:15:01 am
Facial hair (and head hair) of any kind never gets in the way of combat. A new tissue layer with the same properties should be fine, so it can say "her tattoos are blue" etc.
There are also "shapings" for tissue layers which at the moment apply only to hairy bits.  The [TISSUE_SHAPE:STRANDS] is what makes them irrelevant to combat.  The TISSUE_TEMPLATE for each of those has [COSMETIC] and [STYLEABLE] tags, which apparently allows them to use the shapings in the creature or entity file.

The problem is, the only shapings available are the hard-coded NEATLY_COMBED, BRAIDED, DOUBLE_BRAIDS, PONY_TAILS, CLEAN_SHAVEN, STANDARD_HAIR_SHAPINGS, STANDARD_BEARD_SHAPINGS, STANDARD_MOUSTACHE_SHAPINGS, and STANDARD_SIDEBURNS_SHAPINGS.  I don't know if anyone has tried to make a shapings_custom.txt file or what its syntax might be.

Getting that syntax, if it's even possible, would probably require talking to one of the gurus who look at dissassemblies and string dumps.  If it's possible, you could have the color and the "shaping" be independent of one another.  It would appear as His/Her (color) tattoos are (shaping).

Her black tattoos are in a geometric pattern.
His crimson tattoos are depictions of weapons.

The much-less-appealing alternative would be to use a bodypart appearance modifier (look for BP_APPEARANCE_MODIFIER tags in CREATURE files).  The choices are hard-coded, and in my opinion none of them are generic enough to apply to tattoos.  That is, there's nothing along the lines of "very small" to "very large"  (If I were to guess, it's to discourage modding in boobies and stuff) or "simple" to "elaborate".  The BROADNESS range might work for describing war paint stripes.
Title: Re: How would one go about making tattoos/markings
Post by: Findulidas on September 23, 2014, 09:17:28 am
A dwarf covered in pony-tail-tattos sounds amusing though.
Title: Re: How would one go about making tattoos/markings
Post by: Quietust on September 23, 2014, 09:50:59 am
I don't know if anyone has tried to make a shapings_custom.txt file or what its syntax might be.
It's not possible, since shapings are hardcoded and cannot be specified in the raws.
Title: Re: How would one go about making tattoos/markings
Post by: Dirst on September 23, 2014, 09:54:01 am
I don't know if anyone has tried to make a shapings_custom.txt file or what its syntax might be.
It's not possible, since shapings are hardcoded and cannot be specified in the raws.
Thanks.  That's disappointing, but knowing that saves time.