This is a basic tutorial on how to set up logic for creating objects that get build over time and later destroyed and repaired again.
The documentation for the expression controller can be found here:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Game_Engine/Logic/Controllers/Expressions
Source