Targeting code help

For my mod Origins there are techs that unlock powerful structures and abilities for all races. So the Vasari at the end of their phase mastery line unlock a more powerful PJI called phase jammer. This has an activated ability instead that affects all enemy ships in the solar system.

I have it set up right now that it affects all targets in a radius and it has no constraints other than it must be "JumpBlockable" or whatever the code line is. Any help or insight on this problem would be very much appreciated.

4,573 views 4 replies
Reply #1 Top
Radius does not affect anything outside a gravity well. This isn't possible.
Reply #2 Top
Sure it is...

(This is my suggestion for everything :) ...

Put an Ability Source at every gravitywell, using the GalaxyScenarioDef file, with the ability you want. Have your scouts auto-capture the Ability Source when they first explore the system (this is the trickiest detail), and viola!!!

The Ability Source is a short way of saying "Invisible/Indestructible/Immobile frigate whose only purpose is to deliver the ability to every target in the galaxy simultaneously"

The same thing was done with the network of stargates to defeat the replicator version of me, so it should be a piece of cake...
Reply #3 Top
The only problem I can see is that this construct works for abilities that affect EVERYONE, and ownership of all the Ability Sources spoils this as a viable solution...
Reply #4 Top
I'll give it a try. If this doesn't work I might just attach it to a frigate or cruiser for a mobile phase jammer.