Starting from scratch, a LONG process if you want to make a decent (quality wise) script.
As said, at minimum basic Java knowledge is required.
Then I would take an already existing script (something simple) to get an idea how things are laid out, and then start editing said script.