Unit base colors

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
lovecrafts-cat
Posts: 14
Joined: August 19th, 2020, 11:18 pm

Unit base colors

Post by lovecrafts-cat »

can we get a yellow color base for units?
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2340
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: Unit base colors

Post by Lord-Knightmare »

Here you go!

Code: Select all

[color_range]
    id=yellow
    name= _ "team_color^Yellow"
    rgb=EEE000,FFFFFF,100F00,FFF000
[/color_range]
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
lovecrafts-cat
Posts: 14
Joined: August 19th, 2020, 11:18 pm

Re: Unit base colors

Post by lovecrafts-cat »

thank you ,where do i put this code into?
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2340
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: Unit base colors

Post by Lord-Knightmare »

Inside your campaign's #ifdef and #enddef defines.

Code: Select all

#ifdef YOUR_CAMPAIGN
[binary_path]
     path="data/add-ons/Your_Campaign"
[/binary_path]
[color_range]
    id=yellow
    name= _ "team_color^Yellow"
    rgb=EEE000,FFFFFF,100F00,FFF000
[/color_range]
#enddef
For Multiplayer, I haven't actually tested it out, but I think this should work:

Code: Select all

#ifdef MULTIPLAYER
[color_range]
    id=yellow
    name= _ "team_color^Yellow"
    rgb=EEE000,FFFFFF,100F00,FFF000
[/color_range]
#enddef
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Post Reply