@Chazrox
No worries, the question wasn't asked in a clear way.
@hyperphonias
This is actually quite a complex thing you are asking. A compressors parts don't really exist in isolation. You can't really create one part of the design without thinking about the rest of the design. For example some attack release algorithms support variable width knees, others do not (or in the least will give you a much harder time). So if you don't pick the right algorithm off the bat, you may end up ruining your design. So you must consider the whole compressor at once when making a design.
I don't think I'll be able to help you with this one, I'm short on time these days. Maybe someone here can point you in the right direction if they have already made a scriptnode compressor!
Else, take a read of this:
https://www.eecs.qmul.ac.uk/~josh/documents/2012/GiannoulisMassbergReiss-dynamicrangecompression-JAES2012.pdf
After reading this a few times you will understand digital compressors. And that's not a bad thing, if you're wanting to build one...