Hi guys.
I'm currently trying to use the Explosions file to try to trigger a Buff type when ships die. I can't seem to get it to work, despite toying with it for the past three hours, so I decided to see what the experienced modders think about it.

Here's what I'm trying to do at the moment.
"Frigate0" is the explosion effect for all light frigates. I would like it to apply a Buff when a unit dies; in this case it would be to create a clone of a nearby frigate. If anyone has any idea's on how to get this type of Buff application working, I'd appreciate suggestions. The entire premise of my currently vaporware mod depends on it. heh

Here's the mess I have after editing the Explosions file with the BuffCloneFrigate file, and a few others, to no avail.
Please dont laugh.
explosionEffect
name "Frigate0"
totalPlayTime 30
makeMeshInvisibleTime 1
subExplosionCount 3
subExplosion
type "Buff"
onReapplyDuplicateType "StackNewBuff"
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 1
instantAction
buffInstantActionType "CreateClonedFrigate"
instantActionTriggerType "OnOwnerDeath"
targetFilter
numOwnerships 1
ownership "Friendly"
numObjects 1
object "Frigate"
range
Level:0 1000.000000
Level:1 1000.000000
Level:2 1000.000000
numConstraints 1
constraint "NotSelf"
numFrigates
Level:0 3
Level:1 3
Level:2 3
impulse 0
spawnFrigateSoundID "EFFECT_CLONEFRIGATE"
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 0
numEntityBoolModifiers 0
numFinishConditions 0
subExplosion
type "Effect"
playTime 0
cameraShakeMaxSize 0.0
cameraShakeStrength 0.0
cameraShakeDuration 0.0
location "Center"
particleSystemName "Explosion_Frigate"
explosionSounds
soundCount 2
sound "EXPLOSION_FRIGATESHIPDEATH"
sound "EXPLOSION_FRIGATESHIPDEATH_ALT1"
subExplosion
type "Sound"
playTime 0.6
cameraShakeMaxSize 5000.0
cameraShakeStrength 0.5
cameraShakeDuration 0.0
explosionSounds
soundCount 0