wow-lua-api

Document Lua 5.1 functions and Blizzard-specific APIs for WoW addon development.

1|Updated Aug 13, 2024
One-click install
npx skills add https://github.com/Alzakath/Ruilhenn --skill wow-lua-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wow-lua-api
Source: https://github.com/Alzakath/Ruilhenn/tree/main/.gemini/skills/wow-lua-api
Command: npx skills add https://github.com/Alzakath/Ruilhenn --skill wow-lua-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive reference for the Lua 5.1 functions and Blizzard-specific variations available within the World of Warcraft addon environment, enabling developers to understand and utilize core Lua behaviors.

Core Features & Use Cases

  • Lua Function Signatures: Detailed information on base Lua 5.1 functions.
  • WoW-Specific Differences: Notes on Blizzard's modifications to standard Lua behavior (e.g., degrees vs. radians).
  • WoW-Only Helpers: Documentation for functions unique to the WoW API (e.g., strsplit, table.wipe).
  • Use Case: A WoW addon developer needs to understand how to correctly use string.format with WoW's specific formatting rules or needs to find a utility function like table.wipe to clear a table efficiently.

Quick Start

Consult the references/OVERVIEW.md file for general environment notes and scope.

Frequently Asked Questions about wow-lua-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does the World of Warcraft Lua API differ from standard Lua 5.1?

The WoW Lua API modifies standard Lua 5.1 behavior, notably using degrees instead of radians for mathematical operations, and includes Blizzard-specific helper functions like strsplit and table.wipe for addon development.

How do I efficiently clear a table in a WoW addon?

To efficiently clear a table in a WoW addon, use the Blizzard-specific table.wipe function. This WoW-only helper clears all table contents and is documented within the Lua API reference for addon development.

Does string.format work the same way in World of Warcraft addon development?

string.format in World of Warcraft addon development has specific formatting rules that differ slightly from standard Lua. The API reference provides detailed information on these WoW-specific string manipulation nuances.

What Lua 5.1 functions are available for WoW addon scripting?

Available Lua 5.1 functions for WoW addon scripting cover core behavior, mathematical operations, string manipulation, table utilities, bitwise operations, and coroutine management, alongside unique Blizzard API additions.

How do I use coroutines in World of Warcraft addon development?

To use coroutines in World of Warcraft addon development, consult the Lua 5.1 API reference for coroutine management functions. The reference details core Lua behaviors and their specific nuances within the WoW environment.