Sharp Aion2 Lua SDK

Sharp Aion2 Lua SDK

Build your own in-game scripts with Sharp Lua 5.5.1.

This guide is for anyone writing a Sharp Aion2 script. It covers the Scripts folder, instant and persistent scripts, callbacks, game and UI functions, and bundled Lua libraries.

Start here

  1. Run a first script from the Scripts tab.
  2. Choose instant, module, or library.
  3. Use the API reference to look up a function and its failure result.
  4. Open working examples for module patterns.
  5. See API updates for customer-facing additions to the Lua SDK.

Build on the examples with a quest journal or a configurable travel helper.

Scripts use Lua 5.5.1. Each script has its own globals and can import bundled libraries with require.

Functions that depend on a character or world may return nil, error while the game is loading or changing maps. Check the result before using it, and read current values again after a map or character change.

On this page