Repository navigation
Lua Script API
Meme1079 edited this page Aug 5, 2022
·
14 revisions
There's six types of LUA Scripts you can run:
-
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/ -
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 Script- 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. -
Character Script- it will only be run if the specified character is used on the current song. You can use variablesdadName,boyfriendNameandgfNameto check the current character used's name. (if dadName == 'pico' thenfor example) -
Global Script- it should be saved in mods/Your-Mod-Name/scripts/, it will run in all songs/difficulties, with no exceptions.
- Variables
- General Functions
- Tweens and Timers
- Value Setting and Getting Functions
- Functions for Dialogues and Cutscenes
- Custom Sprites/Objects
- Precaching Stuff
- [WIP]
- [WIP]
Is the page in some way inaccurate? an error, a typo, or outdated data? To report it, use the "Issue Tab". Or do you wish to include a new function or add new information? use the "Pull Request Tab". Help is always appreciated!
- Event Callbacks
- Custom Sprite
- Custom Text
- Object Functions
- General Functions
- Scripting & File Functions
- Game Input Control Functions
- Language Translation
- HScript Functions
- Custom Substates
- Custom Shaders
- Deprecated & Removed Functions
- Sound & Music Functions
- Tweens & Timers Functions
- Reflection Functions
- Variables