// check if the game is running
// do stuff
// get the mouse coordinates
int m_x = getGameVar("mouse_x");
int m_y = getGameVar("mouse_y");
// update the mouse coordinates using SDL event
// shut the game off
The reason I did this, is for one I wanted to learn a little about scripting(no matter what I can't seem to escape from trying new things). The second reason is that I think it will be easier to write the GUI system now that I have this in place.
In all of this scripting stuff, I forgot to actually make the soldiers be able to fight each other, so that is up next.