Stellar Defense Platform

Adding Structures to Galactic Civ 3

I am attempting to create a mod that will add a new structure to the game, A defense platform. In short this "Structure" will have properties of several different units. 

For example,

It will be able to be built from a planet. but then create a unit on the galactic map. I understand this concept is confusing so perhaps it will be better to site an example. Think of the shipyard. It is built as a planetary improvement but then creates a unit on the galactic map. It would still have a movement capable that the shipyard has (1 tile per turn, and an anchor/unanchor toggle.) 

Next it would function as a military starbase. It would have the ability to be upgraded with several different star base models. 

unfortunately i don't have the foggiest idea on how to code this. 

Any advise would be appreciated  

4,874 views 3 replies
Reply #1 Top

Terror Star!

Reply #2 Top

First: how experienced are you modding galciv? Your questions indicate to me that you have no idea what you're doing and haven't tried to put anything together yet. You should probably try something easier first.

 

but, to the substance:

 

constructing via planet:

I don't know if this can be done. Making a shipyard is a project, but it isn't a project anywhere in the xml. The shipyard is the only thing that has a manu cost, but the method making it available for construction it might be hard-coded together. If so, you probably can't do it, unless you're lucky and it makes projects for anything listed as  a shipyard.

Moving like a shipyard:

Possible, if you list it as a shipyard. It should have anchor/unanchor and you can set the speed. But it'll be a shipyard, which messes with:

acting like a starbase:

impossible, unless it's a starbase. Ships and planets do not function when you try to give them AoE. Starbases are the only things that can do starbase things, including receiving modules.

 

So no. You can't do precisely those things.

Reply #3 Top

I see a possibility of this idea as a new type of technology if it could be done:

1- Built as a planetary structure, but would not take up a planetary space (because it would theoretically be orbiting the planet). It will give added defense to protect ships at the planet, and against invasions. It should be able to be attack the same as ships at a planet to be taken out, ahead of an invasion.

2- build like a ship unit at a shipyard with the speed of a shipyard for movement, but act like a military starbase for defense AOE purposes in a set area. you could allow it to be upgraded buy constructors as new weapons or sensor tech becomes available at 1/2 a point from the constructor. (It will be able to aid ships in an area, or outright attack enemies, and sense enemy movement, but little else. Also little defense if any and low hit points, to balance it out. If it was a full starbase or ship, why build it, but if it was cheap and easier to upgrade it would be desirable, but it has to have limitations as to not take the place of a starbase. Basicly a balancing act.

Just a couple of thoughts, probably can't be done, or not wanted, but that's my 2 cents worth.