For each face output three vertices:
-0.5 -0.5 -0.5 0.0 0.0 0.0 -1.0 0.0
0.5 -0.5 -0.5 0.5 0.0 0.0 -1.0 0.0
-0.5 -0.5 0.5 0.0 0.5 0.0 -1.0 0.0
each line represents a vertex and the attributes of said vertex in the order: x y z u v nx ny nz, where the last three numbers represent the normal vector.
It does other stuff like define textures and normal maps but the script doesn't need to do that as i could input them manually.
So once again my question is where could I find a tutorial to write blender exports scripts or does anyone know of a similar existing script that I could modify?