You're on the right track. It's not limited to custom script functions, they can change the flow of the game's code, do stuff seen in Yelo Battery, etc.