Skip to content

Lua Script API

ShadowMario edited this page Dec 15, 2021 · 55 revisions

Running a script

There's four types of LUA Scripts you can run:

  • A Stage Script, it will only run if the song's stage has been set to the same as its name, it should have the same name as your stage's .json file and should be located inside mods/stages/
  • A Note Type Script, it will only run if the said Note Type is being used on the chart, it should be located inside mods/custom_notetypes/
  • An Event Script, it will only run if the said Event is being used on the chart, it should be located inside mods/custom_events/
  • Song's Script(s), they should be saved inside the song's chart folder, it will only run on this specific song, no matter the difficulty, stage or whatever else.

MOD FOLDER TEMPLATE

API Documentation

Example Scripts

FOR MORE ADVANCED USERS:

Clone this wiki locally