No, it's not possible. You can't edit game files during the campaign without all sorts of issues. The script has to work within the confines of the game engine.