Dune 2000
Information and discussion for custom maps and mods.
Adrian
Posts: 77 Joined: Wed Feb 12, 2020 5:44 pm
Post
by Adrian » Wed Apr 19, 2023 2:41 pm
I found
Color trait in map.yaml.
Can I change it?
I try to change standard red (D64A42) for Harkonnen to another color (ABB7E4 — light-blue). Nothing happened.
This is not important. Just test.
Code: Select all
PlayerReference@Harkonnen:
Name: Harkonnen
Playable: True
LockFaction: True
Faction: harkonnen
LockColor: True
Color: ABB7E4 # D64A42
Adrian
Posts: 77 Joined: Wed Feb 12, 2020 5:44 pm
Post
by Adrian » Wed Apr 19, 2023 4:59 pm
Later, I tried to change color for Atreides. From blue to violet.
This is 5 mission. Where is Starport with contraband.
All the units stay blue.
But Mission Text at the top become violet:
"
The contraband will arrive in ..."
And Floating Text over Refinery is violet too: "
+100 ".
Code: Select all
PlayerReference@Atreides:
Name: Atreides
(...)
Faction: atreides
LockColor: True
Color: 865994 #5A7394
abcdefg30
Posts: 644 Joined: Mon Aug 18, 2014 6:00 pm
Post
by abcdefg30 » Thu Apr 20, 2023 6:51 pm
The missions define custom remappings for the player colors, see the "campaign-palettes.yaml" file in the rules directory. You can exclude that file from your mission, then the color should change again as usual.
Adrian
Posts: 77 Joined: Wed Feb 12, 2020 5:44 pm
Post
by Adrian » Thu Apr 20, 2023 7:56 pm
O, thank you.
I change map.yaml like this, and Atreides are violet now
Code: Select all
Rules: d2k|rules/campaign-rules.yaml, d2k|rules/campaign-tooltips.yaml, rules.yaml #, d2k|rules/campaign-palettes.yaml
----------------------------------------------------------------------
see the "campaign-palettes.yaml" file in the rules directory
It looks like this trait.