Is there a way to count facilities? |
Is there any way to count the number of facilities on a planet?
Like a Get_ function? I believe there is one that works system wide (Sys_Get_Facility_Count_In_System), but I didnt notice one for a planet. Am I missing one?
Thanks

Re: Is there a way to count facilities?
Nope, won't be there. The Spaceyard's limit is hard coded, and you can build any number of robotoid facilities. The only reason no more than one robotoid works is because the modifier ability's amount2 has a certain number, and only one ability of that kind with that number will be applied.
As far as I know, no function exists that does this, though you may want to look through the list of function in the Docs folder.
-----
Watch for my mod - codename: Dimensions - coming by Summer, 2007!
Re: Is there a way to count facilities?
The construction script DOES count how many facilities of each types there is on each planets (it count the abilities though). That's why you can set a limit on how many facilities of each types there can be on a planet. It does not prevent them from existing, just from being built by the AI after the limit is reached.
call Add_Facility_Construction_Percentage("Facility type", % of space, Max per location)
How to Count Facilities
If you want to know how many of each type of facility you have in total go to a colony and open up the construction queue. You will see that among the data about each facility type on the left is the amount of facilities already constructed and how many are in the construction queue. As for how many are on any planet I guess the old fashioned counting does the trick faster than any function you'd have to program.
Omnius

Re: Is there a way to count facilities?
Does this work for other things to control how many of them will work, by using the amount2 field?
SEV, more than a feeling.

Re: Is there a way to count facilities?
Yes. Combat sensors, ecms, the talismans, stealth armor, etc. all use abilities that would not usually stack, but each component has a unique Amount2 on the applicable abilities. Only one of each component with a given unique number is counted.
Using this, you could have two components that both provide the same, unstackable attack bonus, but each provide a stackable defense bonus, for example.
-----
Watch for my mod - codename: Dimensions - coming by Summer, 2007!
Re: Is there a way to count facilities?
What's the point of having multiple shipyard on a planet? One fast shipyard will do exactly the same as two normal ones. You basically want more production, look into ways to boost shipyard buildrate... Did you know that SY buildrate is based on how much population you have on the planet, and that it's not a formula? Did you know that the shipyard stats are used regardless of a shipyard being on the planet? A planet with or without shipyard build at the same rate, the only difference in having one is a boolean variable that state you can build ships on that planet...

multiple shipyards?
What about building 1 or more bases with a space yard component? that should do the trick... And you save space for other planet facilities.

Re: multiple shipyards?
I don't think the space yard component is stackable. It's still a great idea though, it seems to take longer to build on a base ship then on a planet..
Re: Is there a way to count facilities?
I want, for all intents and purposes, the ability to create more than one facility with ship yard capabilities, for game dynamics other than population bonuses, etc.
But why? Is it to make a planet dedicated to ship building? In that case you could create a larger space yard facility that take more space and significantly boost production. That might work better than try to stack shipyards on a given planet... You could also make it so you need a given planet tonnage to make use of that facility so the "mega space yard" don't get built on tiny planets...

Re: Is there a way to count facilities?
Yes, but with smaller ships you can build fleets in a planet. Place 10 space yard bases in a planet, use emergency build, and you´ll get a full fleet in a few turns. The planet, with its extra built rate, can be used to build the capital ship of the fleet.
Re: Is there a way to count facilities?
So it's different facilities to build different things... Something like one for units, one for ships or special ones for organics and cristalline?




Re: Is there a way to count facilities?
There may be one for the robotoid factory or planetary sheild or spaceyard!!! SPACEYARD! yes, check that!