SlashCo Wiki

SlashCo.GetDangerColor

 Color SlashCo.GetDangerColor( number or string danger )

Description

Returns the color associated with a SlashCo.DangerLevel, used to display it in UI.

Arguments

1number or string danger

Index or name of the danger level, see SlashCo.DangerLevel

Returns

1Color color

The danger level's color, or a fallback color if danger is invalid