Its not entirely about scripting, of course you should know how to script or it would probably look like AmonRa's script (please don't get offended it wasn't mean negative

), the main part is about evil maths, personally I nearly die when I see this kind of math..
Talking about showpoly here, using sprites will be much easier so you should consider this.