v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

User talk:Kaos

From Dwarf Fortress Wiki
Jump to navigation Jump to search

Creatures

What exactly is the purpose of having 18 "Colors" columns? --Quietust 21:26, 28 March 2011 (UTC)

I want to put all the colors a creature can have, i'm working on it right now....
I want to make 18 cells with the 18 color variations a dwarf can have...
the same with the elves, and so on...
So far I guess 18 is the maximum color variations a creature can have....
If you're referring to the colors that are based on professions (e.g. Miner, Stoneworker, Farmer, etc.), then you should know that those are all hardcoded (and even so, Dwarf Fortress itself only supports 16 colors, one of which is black) - the only colors that can be changed in the raws are caste-specific colors, and no creature has more than 5 castes. --Quietust 21:35, 28 March 2011 (UTC)
no, I'm refering to the skin/fur/outter tissue layer colors that a creature can have, can't you make nested tables when using the templates???
take a look, one picture is better than a thousand words... :)
Dwarf blah
     

just that the template doesn't seem to accept the nested table for some reason... any ideas?

you were right i didn't need 18 columns in the template... i was confused about how the template worked... I edited it back to 1 colors column and I have made what I want to do for the dwarves in the Template:L page,

I've just created a template you might find useful - {{rgb|COLOR_NAME}}. --Quietust 00:05, 29 March 2011 (UTC)

You read my mind!

I got it working with nested tables as you can see in the Template:L page, basically I did this:

{{CreatureCurrent table head}}
{{CreatureCurrent table row|name={{L|Dwarf}}|symbol=☺|color=3:0:0|hostile=No|food=No|size=60,000|value=Not tameable|biome=Fortresses|note=Trading race|colors=<span></span>
                                                   {{{!}}
                                                    {{!}}-
                                                    {{!}} width="20em" style="background: {{rgb|BROWN}}"       {{!}}  
                                                    {{!}} width="20em" style="background: {{rgb|BURNT_UMBER}}" {{!}}  
                                                    {{!}} width="20em" style="background: {{rgb|CINNAMON}}"    {{!}}  
                                                   {{!}}}
}}
{{CreatureCurrent table row|name={{L|Elf}}|symbol=e|color=3:0:0|hostile=Variable<sup>1</sup>|food=No|size=60,000|value=Not tameable|biome=Forest retreats|note=Trading race}}
{{CreatureCurrent table row|name={{L|Goblin}}|symbol=g|color=7:0:0|hostile=Variable<sup>1</sup>|food=No|size=60,000|value=Not tameable|biome=Dark fortresses|note=Trading race}}
{{CreatureCurrent table row|name={{L|Human}}|symbol=U|color=3:0:0|hostile=Variable<sup>1</sup>|food=No|size=70,000|value=Not tameable|biome=Towns and cities|note=Trading race}}
{{CreatureCurrent table row|name={{L|Kobold}}|symbol=k|color=6:0:0|hostile=Variable<sup>1</sup>|food=No|size=20,000|value=Not tameable|biome=Caves|note=Skulking race}}
|}

I was thinking of making a Template with the nested table before I found how to work around the pipe selector problem I had changing "|" for "{{!}}" and adding "<span></span>" so it recognizes the table starting in a new line...

That's why I tried creating this page Template:L but it seems you got a better way using the descriptor file.... just that I don't seem to get it to work.... I tried {{rgb|brown}} and {{rgb|BROWN}} and I get this result

and

am I doing something wrong??--Kaos 00:55, 29 March 2011 (UTC)

The {{rgb}} template is namespace-sensitive - it can only be used within the DF2010, 40d, or 23a namespaces (technically only DF2010 right now, since I haven't uploaded descriptor_color_standard.txt for any other version, but 23a and 40d didn't make any significant use of color tokens aside from dyes), and it cannot be used on talk pages. --Quietust 01:02, 29 March 2011 (UTC)
when I try a preview in the creature page I get:
not found 
and
rgb(150,75,0)
I assume they are case sensitive and the COLOR_NAME parameter is what token from the description file
[NAME:aqua]
or
[COLOR:AQUA]
I'm assuming the latter based on my last tryout....--Kaos 01:11, 29 March 2011 (UTC)
It must be uppercase - it's searching based on the object ID. --Quietust 01:56, 29 March 2011 (UTC)
I tried in the creature page:
{{rgb|BROWN}}
and I get this in the preview:
rgb(150,75,0)
is the template working as designed?? what am I missing?? --Kaos 02:08, 29 March 2011 (UTC)
Yes, that's how it's supposed to work - you feed it the color ID, and it returns the RGB values in that particular format so you can feed them into a CSS 'background' attribute. --Quietust 03:03, 29 March 2011 (UTC)
You mean this:
style="background: {{rgb|BROWN}}"
then why does it say it's a new template, since I copied that code from the Colors page??
How can I get permission to create new pages? I want to create a template that reads the creature raws and gets the data for the colors automatically... =D