WildStar/uiapitype

This is the main WildStar API 'value type' reference. The UI API uses rather complex values using Lua native types for some of its parameters and return values. Rather than re-explain them every time they're used. This reference provides list of 'distinct' Lua based data types used in WildStar. See also API events.

Reference[edit | edit source]

Simple types[edit | edit source]

WildStar/id - the Lua 'nil' type. a type, or variable state, which has no value
WildStar/id - a Lua 'boolean' type, which holds Lua 'false' or 'true' values
WildStar/id - a regular Lua number, which for WS is a 'double' size floating point number
WildStar/id - a regular Lua string, always 1 byte per char. WS utf-8 encodes non-ASCII chars
WildStar/id - a regular Lua function, which any variable can reference.
WildStar/id - a regular Lua table, which any variable can reference.
WildStar/id - a regular Lua userdata, which any variable can reference.

Complex types[edit | edit source]

WildStar/id - Numbers representing bags you carry, bank bags, bank window, etc
WildStar/id - A structured string holds item data, like Created by, itemId, ...
WildStar/id - A string that is clickable if shown in-game, contains an itemString.
WildStar/id - String classification of an item, ["Armor", "Consumable", ...]
WildStar/id - An identifier that specifies a unit or unit type ["target", "party1", ...]
WildStar/id - A structured table containing information about a particular item on the Auction House, [BuyoutPrice, CurrentBid, etc]

Data types[edit | edit source]

WildStar/id [userdata] - target-able unit data. prefixed unit, unitPlayer, unitTarget
WildStar/id [userdata] - currency data
WildStar/id [userdata] - quest data
WildStar/id [userdata] - Item data
WildStar/id [userdata] - Player Ability Information

Module types[edit | edit source]

WildStar/id - actual AddOn instance type. see UI AddOn.
WildStar/id - actual library AddOn instance type. see UI AddOn.

See also[edit | edit source]

Community content is available under CC-BY-SA unless otherwise noted.