Graph stats

For what's not in 'Top Priority Game Design'. Post your ideas, visions, suggestions for the game, rules, modifications, etc.

Moderator: Oberlus

Post Reply
Message
Author
Piwoslaw
Space Floater
Posts: 40
Joined: Tue Jul 23, 2013 4:52 am

Graph stats

#1 Post by Piwoslaw »

In the graphs that show the on-going game statistics (eg Planets colonized, Number of ships, Roaming armed monsters, etc.) for each empire, could we also add 'Empire Population'? Not that I can imagine why this would be needed, but I assume this info is readily available?

User avatar
Bromstarzan
Dyson Forest
Posts: 206
Joined: Sun Feb 28, 2016 9:56 pm
Location: Sweden

Re: Graph stats

#2 Post by Bromstarzan »

I like this suggestion. Not sure it would be a useful decision-maker, but as population is somewhat crucial, it would be nice to be able to keep track... (more data to the people! :mrgreen:)
| i7 7700K [email protected] | GTX 1080 Ti | RAM: 32GB | PSU: 750w | W10 x64 | 2xAcer1920x1080 |

User avatar
MatGB
Creative Contributor
Posts: 3310
Joined: Fri Jun 28, 2013 11:45 pm

Re: Graph stats

#3 Post by MatGB »

Theoretically (and someone will correct me if I'm wrong), adding

Code: Select all

Statistic name = "STAT_POPULATION" value =
    Sum value = LocalCandidate.Population condition = And [
        Planet
        OwnedBy empire = Source.Owner
    ]
Into default/scripting/empire_statistics/ should work, you'd also need to add something for stat_pop in your stringtable.
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

User avatar
Bromstarzan
Dyson Forest
Posts: 206
Joined: Sun Feb 28, 2016 9:56 pm
Location: Sweden

Re: Graph stats

#4 Post by Bromstarzan »

So it's doable, nice. I'll experiment with it if I can stop playing... :mrgreen:
| i7 7700K [email protected] | GTX 1080 Ti | RAM: 32GB | PSU: 750w | W10 x64 | 2xAcer1920x1080 |

Post Reply