How to change the party colour?

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
UHlJ8Lel
Posts: 6
Joined: March 17th, 2023, 1:52 pm

How to change the party colour?

Post by UHlJ8Lel »

Actually, I think it already exists somewhere, but I can't find it. I would like to play the Two Brothers campaign. But red is always the enemy colour. This as my own colour is absolutely terrible. How change it? :x
User avatar
Ravana
Forum Moderator
Posts: 2933
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: How to change the party colour?

Post by Ravana »

You can use :debug and :lua wesnoth.set_side_id(1,"","gold") to change side 1 color to gold.
UHlJ8Lel
Posts: 6
Joined: March 17th, 2023, 1:52 pm

Re: How to change the party colour?

Post by UHlJ8Lel »

Thank you! Where can I use them?
User avatar
Ravana
Forum Moderator
Posts: 2933
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: How to change the party colour?

Post by Ravana »

Default hotkey for command entering is : which is why examples start with it.
UHlJ8Lel
Posts: 6
Joined: March 17th, 2023, 1:52 pm

Re: How to change the party colour?

Post by UHlJ8Lel »

What a pity! I didn't play the game for a long time. I used to appreciate it once because it was all in text files being easy to modify. Nevertheless, thank you!
User avatar
Ravana
Forum Moderator
Posts: 2933
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: How to change the party colour?

Post by Ravana »

It is also in text files, just thought its easier to tell you way that works for all maps, instead of telling you to go to the scenario file you use, find correct [side] and change color there.
UHlJ8Lel
Posts: 6
Joined: March 17th, 2023, 1:52 pm

Re: How to change the party colour?

Post by UHlJ8Lel »

Well, thank you again! But I find it easier to edit a text file. Which one we talk about?
User avatar
Ravana
Forum Moderator
Posts: 2933
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: How to change the party colour?

Post by Ravana »

Its usually different file for every scenario. For example https://github.com/ProditorMagnus/Oroci ... d.cfg#L362 specifies enemy color in orocia.
UHlJ8Lel
Posts: 6
Joined: March 17th, 2023, 1:52 pm

Re: How to change the party colour?

Post by UHlJ8Lel »

No, Ravana, I'm sorry, this was a misunderstanding. An advantage of text files is that the words "color" and "red" can be easily found in them. But I can't find the relevant passage.
User avatar
lhybrideur
Posts: 355
Joined: July 9th, 2019, 1:46 pm

Re: How to change the party colour?

Post by lhybrideur »

If you want to change the team color, you just have to had color= inside the [side] in each scenario or modify it if it is already there.
For example, here is the first scenario a Two Brothers but with purple and green as colors. I simply added color=purple in side 1 and color=green in side 2
Attachments
Untitled.png
UHlJ8Lel
Posts: 6
Joined: March 17th, 2023, 1:52 pm

Re: How to change the party colour?

Post by UHlJ8Lel »

Thank you! This is what I was looking for.
Post Reply