Lua Mechanics - te-agma-at/FNF-PsychEngine GitHub Wiki
Functions
startPendulum(isHeld:Bool, timingOffset:Float) -- starts a pendulum period. isHeld determines if the pendulum is being held by the opponent (like in hypno phase 1), and TimingOffset (in curBeat) determines the offset each time the spacebar needs to be pressed
endPendulum(delay:Float) -- ends a pendulum period. delay determines how much beats to delay before ending
startUnown(?text:String, time:Float) -- starts a Unown mechanic period. optional: text determines what it says. time determines the amount of beats before it ends
spawnCelebi(amount:Float) -- spawns Celebi(s) to reduce your max health. amount determines how many Celebis will spawn, 1 by default
randomizePlayerStrums() -- fucks up the player strumline (like in Missingno)
doMonochromeCutscene() -- does the beginning cutscene from Monochrome (best used in Story Mode)
Variables
maxHealth -- gets the MaxHealth (reduced by the Celebi reduction amount)
pendulumTicks -- gets the current offset relative to the pendulum beat timing when you press space on a pendulum period
unownLength -- gets the current Unown length