-
Notifications
You must be signed in to change notification settings - Fork 0
Lua Script API : General Functions
Lokitot edited this page Dec 22, 2022
·
1 revision
This page is for functions that do not deserve their own page/do not fit in with other pages.
This page is also still a work in progress! New things may be added overtime, and certain aspects of this page might be changed or removed.
Returns a random integer between min and max. Will not return any numbers in the exclude array.
-
exclude- Optional array of values that should not be returned. Numbers must be separated by a comma.
Returns a random float between min and max. Will not return any numbers in the exclude array.
-
exclude- Optional array of values that should not be returned. Numbers must be separated by a comma.
Returns true or false based on chance.
-
chance- Can go from 0 to 100. The higher it is, the higher chance there is oftruebeing returned.
Starts a dialogue cutscene.
-
dialogueFile- The dialogue'sJSONfile directory. Pathfinding starts in the song's data folder. -
music- The music you want to play while during the dialogue. (MUST BE IN ONE OF THE MUSIC FOLDERS)
Starts a video cutscene.
-
videoFile- The video'sMP4file directory. (MUST BE IN ONE OF THE VIDEO FOLDERS)
Sets the camera target, target can be dad, boyfriend or gf.
Shakes the camera.
-
camera- The FlxCamera you want to shake, can begame,hudorother. -
intensity- The intensity of the shake, 0.05 is recommended. -
duration- The duration of the shake.
Flashes the camera.
-
camera- The FlxCamera you want to flash, can begame,hudandother. -
color- The color you want to the flash to be, must be in Hex. -
duration- The duration of the flash. -
forced- If true, restarts the flash.
Works similarly to cameraFlash, but it fades the camera instead.