Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetQuestDifficultyColor

Last wiki revision 2022-07-22

Gets the difficulty colour for a given level compared to the player's level. colour = GetQuestDifficultyColor(level)

  • level: - The level to be compared to the player's current level.
  • colour:Table - A table containing the RGB value of the resulting colour.
  • "r" - The red channel of the colour. Ranging from 0.0 to 1.0
  • "g" - The green channel of the colour. Ranging from 0.0 to 1.0
  • "b" - The blue channel of the colour. Ranging from 0.0 to 1.0

local colour = GetQuestDifficultyColor(47); DEFAULT_CHAT_FRAME:AddMessage("Your difficulty colour against a target of level 47.", colour.r, colour.g, colour.b);

  • Changed from GetDifficultyColor to GetQuestDifficultyColor in Patch 3.2

Source

https://warcraft.wiki.gg/wiki/API_GetQuestDifficultyColor · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.