Imagine...
FrigatePhaseSiege->AbilityStripPlanet (Unlocked via existing research)
* AbilityStripPlanet is a synchronized targetted buff that requires the siege frigate to remain at the planet until stripping is completed. If the siege frigate is destroyed or ordered to move away the stripping process is stopped. A cool effect would also be needed to project from the siege frigate while the stripping is taking place.
AbilityStripPlanet->ApplyTargettedBuffToSelf(targetFilter(owner="Player",object="Planet"))->BuffStripPlanetSelf
BuffStripPlanetSelf->PlayPersistantAttachedEffect->effectInfo(...) * stripping pre-effect
BuffStripPlanetSelf->ApplyBuffToTargetNoFilterNoRange->BuffStripPlanetTarget
BuffStripPlanetTarget->ApplyBuffToSelfWithFilter(OnCondition(IfPlanetIsType(planetType="Asteroid"))->BuffStripPlanetAsteroid
BuffStripPlanetTarget->ApplyBuffToSelfWithFilter(OnCondition(IfPlanetIsType(planetType="Terran"))->BuffStripPlanetTerran
BuffStripPlanetTarget->ApplyBuffToSelfWithFilter(OnCondition(IfPlanetIsType(planetType="Desert"))->BuffStripPlanetDesert
BuffStripPlanetTarget->ApplyBuffToSelfWithFilter(OnCondition(IfPlanetIsType(planetType="DeadAsteroid"))->BuffStripPlanetDeadAsteroid
BuffStripPlanetTarget->ApplyBuffToSelfWithFilter(OnCondition(IfPlanetIsType(planetType="Ice))->BuffStripPlanetIce
BuffStripPlanetTarget->ApplyBuffToSelfWithFilter(OnCondition(IfPlanetIsType(planetType="Volcanic"))->BuffStripPlanetVolcanic
BuffStripPlanetTarget->ApplyBuffToSelfWithFilter(OnCondition(IfPlanetIsType(planetType="Moon"))->BuffStripPlanetMoon
...
BuffStripPlanetAsteroid->instantAction(StripPlanet(
stripTime 120.00000
ruinPlanetType "PlanetDeadAsteroid"
creditsOnStrippedToTheCore 2000.000000
metalOnStrippedToTheCore 750.000000
crystalOnStrippedToTheCore 250.000000
effectInfo
effectAttachInfo "Center"
smallEffectName "StripToTheCore_Planet_Asteroid"
mediumEffectName "StripToTheCore_Planet_Asteroid"
largeEffectName "StripToTheCore_Planet_Asteroid"
soundID "EFFECT_STRIPPEDTOTHECORE"
))
Would be fairly easy to convert this to Terra forming...