Changing a team's color?
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.
Changing a team's color?
Is there a way to change a team's color in a campaign without changing their side? I want the enemy to be the red team and the heroes to be either blue or black (2 or 6?), but I don't want the enemy to go before the player due to side order issues.
- beetlenaut
- Developer
- Posts: 2814
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: Changing a team's color?
Use color= in the [side] tag.
From the wiki: "color: May be either a numeric color index or a color name (e.g. 'blue', 'purple', 'orange', etc.). The numeric form is deprecated. The default list of numbers and corresponding colors can be found in data/core/team_colors.cfg."
From the wiki: "color: May be either a numeric color index or a color name (e.g. 'blue', 'purple', 'orange', etc.). The numeric form is deprecated. The default list of numbers and corresponding colors can be found in data/core/team_colors.cfg."
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: Changing a team's color?
If you use 1.10.x, then you can modify colors only at the beginning of a scenario: only use a new one. F.e, in map9, team 1's color was red, and you want to change it to green, then map10's code should look like:
This will change the color of the side.
But, you cannot modify color on the spot, during a game.
If you use 1.11.x, you can always use [modify_side] to modify a side's color at any moment you wish.
WhiteWolf
Code: Select all
[scenario]
......wml....
[side]
side=1
color=green
....wml....
[/side]
....wm....
[/scenario]
But, you cannot modify color on the spot, during a game.
If you use 1.11.x, you can always use [modify_side] to modify a side's color at any moment you wish.
WhiteWolf
Main UMC campaigns: The Ravagers - now for 1.16, with new bugs!
Old UMC works: The Underness Series, consisting of 5 parts: The Desolation of Karlag, The Blind Sentinel, The Stone of the North, The Invasion Of The Western Cavalry, Fingerbone of Destiny
Old UMC works: The Underness Series, consisting of 5 parts: The Desolation of Karlag, The Blind Sentinel, The Stone of the North, The Invasion Of The Western Cavalry, Fingerbone of Destiny