WowAddons

World of Warcraft Forever API · C_CurveUtil.md, for your AI

C_CurveUtil

5 functions, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_CurveUtil.CreateColorCurve

curve = C_CurveUtil.CreateColorCurve()

Returns a new color curve object with no assigned points.

Returns

curveLuaColorCurveObject

C_CurveUtil.CreateCurve

curve = C_CurveUtil.CreateCurve()

Returns a new curve object with no assigned points.

Returns

curveLuaCurveObject

C_CurveUtil.EvaluateColorFromBoolean

value = C_CurveUtil.EvaluateColorFromBoolean(boolean, valueIfTrue, valueIfFalse)

Evaluates a potentially-secret boolean value and returns a color.

Arguments

booleanbool
valueIfTruecolorRGBA
valueIfFalsecolorRGBA

Returns

valuecolorRGBA

C_CurveUtil.EvaluateColorValueFromBoolean

value = C_CurveUtil.EvaluateColorValueFromBoolean(boolean, valueIfTrue, valueIfFalse)

Evaluates a potentially-secret boolean value and returns a single color component (eg. alpha).

Arguments

booleanbool
valueIfTrueSingleColorValue
valueIfFalseSingleColorValue

Returns

valueSingleColorValue

C_CurveUtil.EvaluateGameCurve

y = C_CurveUtil.EvaluateGameCurve(curveID, x)

Arguments

curveIDnumber
xnumber

Returns

ynumber

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows