Skip to content

Forced Change Color Setting

Value syntax for the color field on the Player traits enum. Forces the player's armor tint to a preset color.

ManagedMegalo maps named tokens to e_forced_change_color_setting (forced_change_color_names, fourteen entries). Scripts can also set an explicit RGB triple (color R G B) outside the named enum table.

Named values

ValueEffect
offNo forced color
defaultMap default color
redRed tint
blueBlue tint
greenGreen tint
yellowYellow tint
purplePurple tint
orangeOrange tint
brownBrown tint
pinkPink tint
whiteWhite tint
blackBlack tint
zombieInfection zombie tint
extra4Extra palette slot 4

RGB form

Any three integers 0–255 set a custom tint directly:

megalo
player_traits team_red
	color 255 10 10
end

RGB lines bypass the named enum and write the raw color components.

See also