Skip to content
Mayo78 edited this page Feb 15, 2023 · 3 revisions

Welcome to the FNF-PsychEngine-BambiAddon wiki!

Small tutorials for bambi addon features:

Making a custom state:

step 1

make a folder called what you want your state to be called

step 2

add a script/scripts inside the new folder

step 3

use switchState to go to your custom state!

Adding options/gameplay changers

Making them appear in the menus

step 1

make a script file for the specific state you want (for an option use optionsstate, for a gameplay changer use freeplaystate

step 2

under the correct callback (option: onOptionsAdded(title), gameplay changer: getOptions()) use either addOption or addGameplayChanger

make them actually do stuff

there isnt a set lua script for each option/gameplay changer, so i would recommend making a global script or state specific script for options and gameplay changers

--optionshandler.lua
function onCreate()
    if getClientPref 'lua_option' then
        debugPrint 'using lua option!'
    end
    if getGameplayChanger 'coolmode' and curState == 'playstate' then
        debugPrint 'cool mode activated'
    end
end