v0.13.8

loadstring

functionimplementedavailable in: camelot

Parse a string as Lua code and return it as a reference to a function. func, errorMessage = loadstring("luaCodeBlock"[, "chunkName"]);

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
luaCodeBlockstringa string of Lua code. Can be very long.
chunkNamestringoptionally name the code block. Will be shown as the "file name" in error messages. If not given, the file name will be "[string: *first line of your Lua code here...*]".
funcfunction?nil if there was a syntax error in the code block
errorMessagestring?will contain an error message if *func* was nil.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.