Here's a link to some documentation I referenced a lot while learning. Not really a recommended read as it's huge lol, but it gives some good info on what things mean. Just takes some extrapolation since it isn't pathfinder script specific, but the concepts are there.
http://www.wolflair.com/download/hp/hl_kit.pdf