Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Caste-specific Tiles  (Read 1413 times)

Scotsmen

  • Bay Watcher
  • FREEDOOOOOMM!!!! And cake.
    • View Profile
Caste-specific Tiles
« on: March 18, 2014, 10:44:15 pm »

Hey.

I do a little bit of modding for DF, just changing things to my liking. Anyways, so I modded dragons some, firstly giving them wings, then making them able to breed, and finally making them different colors. Here is how I did the color thing:
Spoiler (click to show/hide)

Basically, I just copy and pasted each of the castes, then changed the color. It appears to work perfectly, but unfortunately the dragon tile is still a green D. I want to make it so each caste has it's own color tile, meaning that, for example, the red dragons would have red D's, and blue ones would have blue D's. I don't know if this is possible or not. I was thinking to just move the [CREATURE_TILE:'D'][COLOR:2:0:0] tokens to each caste, and change the colors, but I don't know if this will work, and I don't want to break my game.

Thanks.
« Last Edit: March 18, 2014, 10:47:05 pm by Scotsmen »
Logged
As he waits to be unrestrained and taken backstage, he can't help but think I miss my fun bits.

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: Caste-specific Tiles
« Reply #1 on: March 18, 2014, 10:48:24 pm »

Your aren't too far off, but the token you want is [CASTE_COLOR:#:#:#]

You don't need the [CREATURE_TILE:'D'] token in every caste, just in the base of the creature raws, before castes are defined.
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Caste-specific Tiles
« Reply #2 on: March 19, 2014, 08:47:05 am »

TokenTypeArgsDesc
CASTE CREATURENAMEDEFINES A CASTE
CASTE_ALTTILE CASTETILE NUMBER OR "LETTER"CASTE-SPECIFIC ALTERNATE TILE. REQUIRES CASTE_TILE.
CASTE_COLOR CASTEFG,BG,BRIGHTNESSCREATURE TILE COLOR OF THE CASTE.
CASTE_GLOWCOLOR CASTEFG,BG,BRIGHTNESSGLOWTILE COLOR OF THE CASTE.
CASTE_GLOWTILE CASTETILE VALUE OR "LETTER"CASTE-SPECIFIC GLOWTILE
CASTE_NAME CASTE SINGULAR:PLURAL:ADJECTIVE THE NAME OF THE CASTE OF THE CREATURE IN THE GAME.
CASTE_PROFESSION_NAME CASTEUNIT TYPE TOKEN (PROFESSION),SINGULAR,PLURALALTERS THE NAME OF THE GIVEN PROFESSION, CASTE-SPECIFIC
CASTE_SOLDIER_ALTTILE CASTE 'CHARACTER' OR TILE NUMBER CREATURES OF THIS CASTE ACTIVE IN THEIR CIVILIZATION'S MILITARY WILL BLINK BETWEEN THEIR DEFAULT SOLDIER TILE AND THIS ONE. REQUIRES CASTE_SOLDIER_TILE.
CASTE_SOLDIER_TILE CASTE 'CHARACTER' OR TILE NUMBER CREATURES OF THIS CASTE ACTIVE IN THEIR CIVILIZATION'S MILITARY WILL USE THIS TILE INSTEAD.
CASTE_SPEECH CASTE SPEECH FILE? POSSIBLY A CASTE-SPECIFIC INSTANCE OF THE SPEECH TOKEN
CASTE_TILE CASTETILE NUMBER OR "LETTER"CASTE-SPECIFIC CREATURE TILE.

everything to do with caste customization

Anything that is TYPE of CREATURE means it's a creature standard token just like TISSUEs and MATERIALs no matter where they are placed in the creature it will have those tokens
Logged

Scotsmen

  • Bay Watcher
  • FREEDOOOOOMM!!!! And cake.
    • View Profile
Re: Caste-specific Tiles
« Reply #3 on: March 19, 2014, 12:55:01 pm »

Thanks guys! This should help a lot!

EDIT: Here are my new caste raws (I removed the [COLOR:2:0:0] token from in front of the [CREATURE:TILE] token):

Spoiler (click to show/hide)

For the black one, I made it dark grey. I think this will work, and I will go test it now.

EDIT2: It worked!
« Last Edit: March 19, 2014, 01:11:32 pm by Scotsmen »
Logged
As he waits to be unrestrained and taken backstage, he can't help but think I miss my fun bits.

palu

  • Bay Watcher
    • View Profile
Re: Caste-specific Tiles
« Reply #4 on: March 19, 2014, 03:20:10 pm »

Note that you cannot make caste-specific creature graphics. I think that they can be different colors though.
Logged
Hmph, palu showing off that reading-the-instructions superpower.
The internet encourages thoughtful, intelligent discussion and if you disagree I hate you.

Scotsmen

  • Bay Watcher
  • FREEDOOOOOMM!!!! And cake.
    • View Profile
Re: Caste-specific Tiles
« Reply #5 on: March 19, 2014, 03:48:14 pm »

I don't use creature graphics anyway, or any graphics for that matter. I prefer ASCII.
Logged
As he waits to be unrestrained and taken backstage, he can't help but think I miss my fun bits.