Shield ability mod.

Hello im a noob modder so please be patient with me. im working on a mod to restore shields after a duration period. i have no idea if it works yet but i need to know how to change an ability from takget all friendly units to target self and only self.  if it helps the text for the ability reads:

TXT

entityType "Ability"

buffInstantActionType "ApplyTargettedBuffToSelf"

instantActionTriggerType "AlwaysPerform"

buffType "BuffShieldRestoreActivate"

effectInfo

effectAttachInfo

attachType "Invalid"

smallEffectName ""

largeEffectName ""

soundID ""

needsToFaceTarget FALSE

canCollideWithTarget TRUE

moveThruTarget FALSE

isUltimateAbility FALSE

maxNumLevels 1

levelSourceType "FixedLevel0"

aiUseTime "OnlyInCombat"

aiUseTargetCondition "ShieldDamageExceedsAmount"

onlyAutoCastWhenTargetShieldDamageExceedsAmount

isAutoCastAvailable TRUE

isAutoCastOnByDefault TRUE

pickRandomPlanetToExploreForAutoCastTarget FALSE

ignoreNonCombatShipsForAutoCastTarget TRUE

onlyAutoCastWhenDamageTakenExceedsPerc 2.000000

isPassive FALSE

antiMatterCost

Level:0 90.000000

Level:1 0.000000

Level:2 0.000000

cooldownTime

Level:0 16.000000

Level:1 0.000000

Level:2 0.000000

researchPrerequisites

NumResearchPrerequisites 0

nameStringID "IDS_ABILITY_SHIELDRESTORE_NAME"

descStringID "IDS_ABILITY_SHIELDRESTORE_DESCRIPTION"

hudIcon "HUDICON_ABILITY_SHIELDRESTORE"

smallHudIcon "HUDICON_ABILITY_SHIELDRESTORE"

infoCardIcon ""

1,379 views 0 replies