Hi Uzii, Thank you again!
Here is Ability file as under your suggestion yesterday.
-----------------------------------------------
TXT
entityType "Ability"
buffInstantActionType "ApplyBuffToTarget"
instantActionTriggerType "AlwaysPerform"
buffType "BuffPirateDomination"
targetFilter
numOwnerships 1
ownership "Enemy"
numObjects 2
object "PlanetModule"
object "Frigate"
numConstraints 0
range
Level:0 6000.000000
Level:1 6000.000000
Level:2 6000.000000
effectInfo
effectAttachInfo
attachType "Invalid"
smallEffectName ""
largeEffectName ""
soundID ""
needsToFaceTarget FALSE
canCollideWithTarget TRUE
moveThruTarget FALSE
isUltimateAbility FALSE
maxNumLevels 1
levelSourceType "FixedLevel0"
aiUseTime "Anytime"
aiUseTargetCondition "Any"
isAutoCastAvailable TRUE
isAutoCastOnByDefault TRUE
pickRandomPlanetToExploreForAutoCastTarget FALSE
ignoreNonCombatShipsForAutoCastTarget TRUE
onlyAutoCastWhenDamageTakenExceedsPerc 0.000000
isPassive FALSE
antiMatterCost
Level:0 80.000000
Level:1 0.000000
Level:2 0.000000
cooldownTime
Level:0 45.000000
Level:1 0.000000
Level:2 0.000000
researchPrerequisites
NumResearchPrerequisites 0
nameStringID "IDS_ABILITY_PirateDOMINATION_NAME"
descStringID "IDS_ABILITY_PirateDOMINATION_DESCRIPTION"
hudIcon "HUDICON_ABILITY_CAPTUREDEAD"
smallHudIcon "HUDICON_ABILITY_CAPTUREDEAD"
infoCardIcon ""
And here is the Buff file, which I just add sound effect again since yesterday.
-----------------------------------------------
TXT
entityType "Buff"
onReapplyDuplicateType "ReplaceWithNewBuff"
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 2
instantAction
buffInstantActionType "PlayPersistantAttachedEffect"
instantActionTriggerType "OnDelay"
delayTime 0.000000
effectInfo
effectAttachInfo
attachType "Invalid"
smallEffectName ""
largeEffectName ""
soundID "EFFECT_SHIELDREGENERATION_LOOP"
instantAction
buffInstantActionType "ChangePlayerIndexToFirstSpawner"
instantActionTriggerType "OnDelay"
delayTime 0.000000
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 0
numEntityBoolModifiers 0
numFinishConditions 1
finishCondition
finishConditionType "TimeElapsed"
time
Level:0 10.000000
Level:1 0.000000
Level:2 0.000000