-
Notifications
You must be signed in to change notification settings - Fork 7
Lua Script API
Meme1079 edited this page Jul 24, 2023
·
14 revisions
They're 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 stagesjsonfile and should be located insidemods/stages/folder. -
NoteType Script- It will only run if the said Note Type is being used on the chart, it should be located insidemods/custom_notetypes/folder. -
Event Script- It will only run if the said Event is being used on the chart, it should be located insidemods/custom_events/folder. -
Song Script- They should be saved inside the songs 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,boyfriendNameandgfName. -
Global Script- It should be saved inmods/Your-Mod-Name/scripts/folder, it will run in allsongs/difficulties, with no exceptions.
- Control Function & Text Example - Checks the button being pressed
- Custom NoteType Example - InstaKill Note
- Custom Substate Example - Creates a Custom Substate that pause before playing a song (Created By: Shadow Mario)
- Precaching Example - Changes the character when pressing the notes
- Tween Example - When retrying boyfriend shrinks
- Video Example - Morshu
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