Hi Mikkie!
You probably should have a look at this:
http://shoutbox.menthix.net/showthread.php?tid=61379
While not impossible, it'd be fairly difficult for someone with scripting knowledge to answer your question completely, as this would take an extreme amount of explaining to do. I advise you to ask more specific questions and perhaps share what kind of experience/knowledge about scripting you currently have.