If you're asking how to put few scripts into one you have to
Get all the code you need
Cut it out and put in one file
Make sure there are no things that repeat (example functions that have the same name or same variables)
Save it.
If this isn't what you need then sorry but I can't understand anything you wrote so this is just pure guessing.