Galaxy-Spanning Passive Ability

Hey guys, quick question for anyone who might have an answer.  One of the species in the mod I am making has a large titan-class ship called the Mothership that the gameplay of the entire faction revolves around.  One of the most important central tenants of the vessel is that while alive, it provides a passive buff to combat performance to all vessels belonging to the faction in the galaxy, but if it is killed, it induces a MASSIVE debuff for all ships of the faction that still live that severely impedes their ability to perform their tasks and will not be removed until a new Mothership is assembled.

This is all well and good and the ability functions perfectly... except for one problem.  I cannot figure out how to make the Mothership's ability span more than a single gravity well.  Is it even possible?

18,297 views 2 replies
Reply #1 Top

Yes, it is. You will have to make every gravity well have what I will call a "beacon". This beacon is a militia-owned, invulnerable, non-moving, and invisible, trade ship. For this ability, it will have to do two casts, an ApplyBuffToTargetsAtOrbitBody which applies the bonus/penalty, and an ApplyBuffToTargetsAtAdjacentOrbitBodies with a constraint of IsCargoShip to apply the "actual" bonus/penalty to every gravity well. The beacons for every gravity well, save stars, can be spawned via a subTemplate in the GSD; for the star you will have to make a passive ability that spawns a trade ship there. Of course it is worth noting that this ability will take up a good chunk of resources, as it's being applied to a ton of ships/planets.

Reply #2 Top


One of the species in the mod I am making has a large titan-class ship called the Mothership that the gameplay of the entire faction revolves around.

Not to discourage you, but just FYI it won't be possible to get the AI to use such a faction very well. Especially if you're going for someothing like Homeworld where I guess the mother ship is also one of the main centers for unit production.