DF Modding / Individual Legendary Creatures of Myth
« on: November 14, 2007, 02:57:00 am »The idea here is that your dwarves will be able to engrave images of individual hardcoded (mythical) creatures and have them described by name. I used creatures from Norse mythology in my example, but in theory you could do this with any mythic figures:
Put this in "creature_mythic.txt" in your '/raw/objects' folder:
code:
creature_mythic[OBJECT:CREATURE]
[CREATURE:FENRIR]
[NAME:legendary beast, Fenrir, the monsterous wolf:monsterous wolves:monsterous wolf]
[TILE:'W'][COLOR:0:0:1]
[MODVALUE:50]
[FANCIFUL]
[PREFSTRING:mighty jaws]
[ALL_ACTIVE]
[MALE][CREATURE:JORMUNGANDR]
[NAME:legendary beast, Jormungandr, the world serpent:monsterous serpents:monsterous serpent]
[TILE:'S'][COLOR:2:0:0]
[MODVALUE:50]
[FANCIFUL]
[PREFSTRING:legendary length]
[MALE][CREATURE:GULLINBURSTI]
[NAME:legendary beast, Gullinbursti, the golden boar:mythic golden boars:golden boar]
[TILE:'B'][COLOR:6:0:1]
[MODVALUE:50]
[FANCIFUL]
[PREFSTRING:fine craftsdwarfship]
[PREFSTRING:glowing mane and bristles of gold]
[MALE][CREATURE:SLEIPNIR]
[NAME:legendary beast, Sleipnir, the steed of Odin:mythic steeds:mythic steed]
[TILE:'H'][COLOR:4:0:0]
[MODVALUE:50]
[FANCIFUL]
[PREFSTRING:eight legs]
[MALE]
With any luck, you should get items decorated with images of "a legendary beast, Fenrir, the monsterous wolf in elf bone".
I haven't tested it yet, but the only thing that might make it not work would be the commas in the fanciful creatures' names; if names happen to not like commas you could remove them, although the engraving descriptions may not flow as well grammatically.