1. Fix drawmethod overflow bug when scaling a sprite.
2. Add #pragma pack(4) in scriptlib, since it is causing mysterious bugs, we shall keep an eye on that.
3. Update script variables saving function saveScriptFile.
4. Unfinished global plan feature to make AI more flexible (no effect right now, the functions are still being written).