Quantcast
Channel: The Battle for Wesnoth Forums
Viewing all articles
Browse latest Browse all 2273

WML Workshop • Catgirls, the WML side

$
0
0
Hello, I'm trying to develop my own factions of catgirls. The art was started and can be found here.

I'm trying to recolor the following sprite with two color ranges. There's the default magenta palette and a new "cyan" palette. I'd like the magenta to be recolored normally to the team color, but on top of that, I'd like the cyan palette to also be recolored to a custom color_range ("Indigo", "Sky Blue" or "Sun Yellow").
chakram_units4.png
Here is the custom team-colors.cfg that define the palette and the color ranges

Code:

[color_range]    id=indigo    rgb=60219C,FFFFFF,080808,60219C    name= _ "Indigo"[/color_range][color_range]    id=skyblue    rgb=18B8DF,FFFFFF,000510,18B8DF    name= _ "Sky Blue"[/color_range][color_range]    id=sunyellow    rgb=FFDC2D,FFF7DC,893C09,FFDC2D    name= _ "Sun Yellow"[/color_range][+color_palette]    # secondary value used to recolor catgirls    cyan=00FFFF,002424,003636,004545,005252,005E5E,006B6B,007979,008585,009292,00A1A1,00C0C0,00D2D2,00E2E2,00F0F0,30FFFF,60FFFF,91FFFF,C5FFFF    #sorted light-to-dark: C5FFFF,91FFFF,60FFFF,30FFFF,00FFFF,00F0F0,00E2E2,00D2D2,00C0C0,00A1A1,009292,008585,007979,006B6B,005E5E,005252,004545,003636,002424    #sorted dark-to-light: 002424,003636,004545,005252,005E5E,006B6B,007979,008585,009292,00A1A1,00C0C0,00D2D2,00E2E2,00F0F0,00FFFF,30FFFF,60FFFF,91FFFF,C5FFFF[/color_palette]
I linked this file from my _main.cfg of the add-ons (currently named "Feu_Ra") like this:

Code:

[game_config]{~add-ons/Feu_Ra/team-colors.cfg}[/game_config]
Then in the `[unit_type]` tag I added the following:

Code:

    [object]        [effect]            apply_to=image_mod            add=RC(cyan>sunyellow)        [/effect]    [/object]
It doesn't seem to work...
Screenshot from 2024-11-24 02-11-55.png
Could you help me ?
Many thanks in advance :)

Statistics: Posted by laerne — Today, 1:13 am



Viewing all articles
Browse latest Browse all 2273