preliminary script.

have to test it extensively to make sure it works the way i want to. and
besides, its not even finished yet xD