until i figure out how to do RTB prefs since theres like no documentation anymore.
RTB_registerPref(%name,%cat,%pref,%vartype,%mod,%default,%requiresRestart,%hostOnly,%callback)%name - The name
%cat - Category, keep this the same so all the prefs are grouped together
%pref - The global variable youre using, must start with $pref:: , $ not needed.
%varType - Similar to the list thing when creating output events.
Integer: int [min] [max]
Lists: list [name0] [returnNum0] [name1] [returnNum1] [name2] [returnNum2] .... [nameN] [ReturnNumN] (There's probably a limit for this)
Floats?: float MINIMUM MAXIMUM STEPSIZE
Bool: bool
Integer list: intList
Datablock?: datablock TYPE
String: string CHARACTERS
Vector?: vector
Paint?: paintColor 0 (not sure if 0 does anything, or if its even required for RTB)
(Not sure if the ones marked with ? exist for RTB)
%mod - Name of the add-on. I don't think this ever had any effect, but if someone makes a new pref management mod they might use this.
%default - The default value for the pref. For list use the return number.
%requiresRestart - If true, then an asterisk is put after the pref name, which indicates to player that they should restart. Afaik it doesn't do anything else.
%hostOnly - If true, only host can modify
%callback - The function to call when the pref is updated. Eg, in hatmod I call the function that saves hats when the pref for save file name is changed so that the file is instantly created and populated.