Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement


This function is implemented in FrameXML/BasicControls.xml.


message("text");

Displays a message box.


Parameters

Arguments

("text")
text
String - message to be displayed.

Returns

nil


Example

message("This is an example.");


Details

Pops up a message box displaying the argument with an "Okay" button inside a frame.
(?) As of 1.10, message("text") no longer seems to work inside instances under certain conditions. The fix for this is currently unknown.
As of 2.1, the cvar "scriptErrors" must be set to 1 for this to work. This can be accomplished through a call to SetCVar().
As of 3.1, message() is no longer an alias of the _ERRORMESSAGE function. It is a standalone function that bypasses the cvar "scriptErrors" entirely and always displays an error box.
Advertisement