generated from ShadowMario/FNF-PsychEngine
-
Notifications
You must be signed in to change notification settings - Fork 11
Custom Options
Joalor64 edited this page Jun 2, 2024
·
6 revisions
THIS PAGE IS OUTDATED!! REFER TO https://github.com/ShadowMario/FNF-PsychEngine/pull/12307
I don't have a lot of information on this, so I'll try my best to explain.
Your custom options have to be stored in a .json
file.
This is an example:
{
"name": "Modifier",
"description": "This amplifies stuff.",
"saveKey": "modifierCool",
"type": "bool",
"defaultValue": false,
"options": null,
"minValue": null,
"maxValue": null,
"changeValue": null,
"scrollSpeed": null,
"displayFormat": ""
}
-
name
- Obviously the name of the option. -
description
- The description of the option. -
saveKey
- The option's save tag. -
type
- The variable type (e.g.bool
,int
). -
defaultValue
- The default value of your option (e.g.true
,false
). -
options
- This variable is used only iftype
isstring
. It just gives an option a bunch of other options. -
minValue
- Minimum value. -
maxValue
- Maximum value. -
changeValue
- How much the value should change. -
scrollSpeed
- The scroll speed for your option. -
displayFormat
- How the data is displayed.
If your custom option exists, it will be displayed in "Mod Options".
And it will be located in "Global".
If you make a mod and then put your custom option there, it will be displayed like this: