Repository navigation
Lua Script API: General Functions
-
character- Can beboyfriend,dadorgf -
anim- Animation name to be played -
forced- Can be eithertrueorfalse, if set totrue, it will force the animation to reset if the current animation is the same as the animation to play
Makes character do the idle dance
-
character- Can beboyfriend,dadorgf
Gets the general X position of a character from the type
-
type- Can beboyfriend,dadorgf
Gets the general Y position of a character from the type
-
type- Can beboyfriend,dadorgf
Sets the general X position of a character from the type, this will also move all precached characters from the same type into the position you want
-
type- Can beboyfriend,dadorgf
Sets the general Y position of a character from the type, this will also move all precached characters from the same type into the position you want
-
type- Can beboyfriend,dadorgf
Adds value to the current song's score and recalculates rating
Adds value to the current song's misses total and recalculates rating
Adds value to the current song's notes hit total and recalculates rating
Adds value to the current song's health total and recalculates rating
Set the current song's score to value and recalculates rating
Set the current song's misses to value and recalculates rating
Set the current song's hit total to value and recalculates rating
Set the current song's health total to value and recalculates rating
Sets the rating percent in case you want to do your own rating calculation.
-
value- Should go from0to1but can actually be whatever value you want, but it's kinda stupid to get out of the base values.
Sets the rating name to value in case you want to do your own rating calculation.
Get the current song's score
Get the current song's misses
Get the current song's hit total
Get the current song's health
Get if the key name just got pressed on the current frame.
Keys: 'left', 'down', 'up', 'right', 'accept', 'back', 'pause', 'reset', 'space'
Get if the key name is being held on the current frame.
Keys: 'left', 'down', 'up', 'right', 'space'
Get if the key name was released on the current frame.
Keys: 'left', 'down', 'up', 'right', 'space'
Get if the key name just got pressed on the current frame.
name - any key you want but must be capitalize Example: keyboardJustPressed('SHIFT')
Get if the key name is being held on the current frame.
Get if the key name was released on the current frame.
Get if the mouse button name just got pressed on the current frame. leave 'name' blank for left mouse
Buttons: 'left', 'right', 'middle'
Get if the mouse button name is being held on the current frame.
Buttons: 'left', 'right', 'middle'
Get if the mouse button name was released on the current frame.
Buttons: 'left', 'right', 'middle'
Get if the mouse button name just got pressed on the current frame. leave 'name' blank for left mouse
Buttons: 'left', 'right', 'middle'
Get if the mouse button name is being held on the current frame.
Buttons: 'left', 'right', 'middle'
Get if the mouse button name was released on the current frame.
Buttons: 'left', 'right', 'middle'
Triggers an event without you having to chart them.
-
name- Event name on Chart Editor -
arg1- Value 1 on Chart Editor -
arg2- Value 2 on Chart Editor
Loads another .lua script.
path - Path to LUA relative to the base folder
removes the loaded .lua script.
path - Path to LUA relative to the base folder
adds a library variable into the interperter
Library: 'FlxG', 'FlxSprite', 'FlxCamera', 'FlxTween', 'FlxEase', 'PlayState', 'game', 'Paths', 'Conductor', 'ClientPrefs', 'Character', 'Alphabet', 'FlxRuntimeShader', 'ShaderFilter', 'StringTools', 'setVar', and 'getVar'
runs string as a hscript
Get the color decimal ID from an Hexadecimal value (color).
Example: To get orange, you should use getColorFromHex('FF7800') or getColorFromHex('0xFFFF7800')
Returns the current song position. Shortcut to getPropertyClass('Conductor', 'songPosition')
It randomizes
-
min- start -
max- end
It randomizes but in decimal
It randomizes the chance being true
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