Dead Mines

Anyone care to figure out what I'm doing wrong in my attempt to create a detonating mine that damages anything within range? Haven't tried it against an enemy (simply because the thing's stationary), but it doesn't work against friendlies which is a key part of it. It deploys fine.

Ability file:


TXT
entityType "Ability"
buffInstantActionType "ApplyBuffToTargetsInRadius"
instantActionTriggerType "AlwaysPerform"
buffType "BuffMineDamage"
targetFilter
numOwnerships 0
numObjects 4
object "CapitalShip"
object "Frigate"
object "PlanetModule"
object "Fighter"
numConstraints 0
range
Level:0 200.000000
Level:1 300.000000
Level:2 400.000000
maxTargetCount
Level:0 -1.000000
Level:1 -1.000000
Level:2 -1.000000
effectInfo
effectAttachInfo
attachType "Center"
smallEffectName "CapitalAbility_NanoHullRepairActivate"
largeEffectName "CapitalAbility_NanoHullRepairActivate"
soundID ""
needsToFaceTarget FALSE
isUltimateAbility FALSE
maxNumLevels 3
levelSourceType "Intrinsic"
minExperienceLevelRequired
Level:0 0.000000
Level:1 2.000000
Level:2 4.000000
aiUseTime "OnlyInCombat"
isAutoCastAvailable TRUE
isAutoCastOnByDefault TRUE
pickRandomPlanetToExploreForAutoCastTarget FALSE
onlyAutoCastWhenDamageTakenExceedsPerc 0
isPassive FALSE
antiMatterCost
Level:0 0.000000
Level:1 0.000000
Level:2 0.000000
cooldownTime
Level:0 12.000000
Level:1 12.000000
Level:2 12.000000
researchPrerequisites
NumResearchPrerequisites 0
nameStringID "IDS_ABILITY_NANOHULLREPAIR_NAME"
descStringID "IDS_ABILITY_NANOHULLREPAIR_DESCRIPTION"
IconBrushID "HUDICON_ABILITY_NANOHULLREPAIR"
SmallIconBrushID "HUDICON_ABILITY_NANOHULLREPAIR"


Buff file:


TXT
entityType "Buff"
onReapplyDuplicateType "ReplaceWithNewBuff"
buffExclusivityForAIType "ExclusiveForAllPlayers"
isInterruptable FALSE
isChannelling FALSE
numInstantActions 1
instantAction
buffInstantActionType "DoDamage"
instantActionTriggerType "OnDelay"
delayTime 0.000000
damage
Level:0 1000.000000
Level:1 0.000000
Level:2 0.000000
damageAffectType "AFFECTS_SHIELDS_AND_HULL"
damageType "ENERGY"
isDamageShared TRUE
numPeriodicActions 0
numOverTimeActions 0
numEntityModifiers 0
numEntityBoolModifiers 0
numFinishConditions 1
finishCondition
finishConditionType "AllOnDelayInstantActionsDone"
4,778 views 7 replies
Reply #1 Top
Well so far i don't think that anyone has been able to build and integrate a shared damage item into the game...

Talk to P5yy. Another place is to jump in the IRC channel.
Reply #2 Top
Um, by shared damage do you mean AoE?
Reply #3 Top
Well, you can do healing stuff in AoE, so why not damage? It doesn't even do damage to itself or to an enemy, either. There's got to be a way to do this.
Reply #4 Top
You can do damage in AoE too -- look at Volatile Nanites / Gas giant explosions.
Reply #5 Top
Try following change

maxNumLevels 3
levelSourceType "Intrinsic"
minExperienceLevelRequired
Level:0 0.000000
Level:1 2.000000
Level:2 4.000000
----->
maxNumLevels 1
levelSourceType "FixedLevel0"


And why use the effect "CapitalAbility_NanoHullRepairActivate"?
Reply #6 Top
Err... Was it entirely necessary to resurrect nearly a 4 month old thread for that? I'm sure he's got it by now, and if not, I doubt he would still be working on it :d
Reply #7 Top
numOwnerships 0

If the target filter sets numOwnerships to 0, then it has nobody to cast on, and will not cast. It works for AoE abilities on asteroid belts/nebulae because it's not an autocast ability, it's just a persistently applied effect, so there are no AI instructions to confuse the issue.

But... I assume you don't want it to autocast on friendly targets. So, set numOwnerships 1 and then ownership "Enemy", and change the buff that the ability sets off to an AoE damage spawner, like the ones used by abliityclusterwarheads. Just copy that, change the values, and set numownerships on the spawned buff to 0, that way it should hit everyone.

Hope that helps! =)

Didn't notice how old the thread was... Uh, well, maybe if someone else runs into this porblem... =/