EcoSuggestions icon indicating copy to clipboard operation
EcoSuggestions copied to clipboard

[Civics] Query number of players in Demographic

Open Dave247 opened this issue 1 year ago • 5 comments

There should be a way to query the number of players in a demographic in a law, and I'm very surprised that there isn't. I found someone in the official Eco Discord ask about this back in 2020 during 9.1, but sadly it doesn't seem like anything has been added since then. https://canary.discord.com/channels/254025510651297802/469297188909088789/771424521135063081

Dave247 avatar Jan 05 '23 17:01 Dave247

For now this has been solved by Nid's Toolbox Light Laws Module with version 1.7.2, however I really think this should be part of the base game.

Dave247 avatar Jan 13 '23 05:01 Dave247

I am pretty sure that this is possible with the law system as it exists without any form of modding. In fact I am quite certain that if you hover your mouse over the name of the Demographic in game it creates a pop-up that tells you exactly how many people are in it as well as the ability to click the demographic and find out the players in said demographic.

Sarah-Graesyn avatar Mar 20 '23 22:03 Sarah-Graesyn

I am pretty sure that this is possible with the law system as it exists without any form of modding. In fact I am quite certain that if you hover your mouse over the name of the Demographic in game it creates a pop-up that tells you exactly how many people are in it as well as the ability to click the demographic and find out the players in said demographic.

Yet the problem is there is no way to test that value as a condition within a law itself, which is my original problem. The math already clearly exists, it just needs to made into a law conditional as done in the linked mod.

Dave247 avatar Mar 20 '23 22:03 Dave247

Pretty sure that I have done something to this effect with just the base law system; then again I helped to test the law system when it was first being developed so I am extremely familiar with it.

What exactly are you trying to achieve with your test of that value? I can play with the laws and perhaps figure something out before the Devs have to potentially waste time on something that may very well already be possible.

Sarah-Graesyn avatar Mar 20 '23 23:03 Sarah-Graesyn

The intent was to have demographics act as a way of grouping players into essentially separate towns, by using a custom chat message as the trigger to add oneself to a particular side, with an added condition to test the current number of players in a demographic against another demographic as a form of balancing, to make sure that one didn't have more players then the other. This scenario will become redundant come with version 10 with the introduction of the settlement system providing a much better method for it, though there still may well be other use case scenarios for it.

To summarise, the intended function is to test the value of the current amount of players in a demographic against something else, such as another demographic using only civic blocks in-game. Though really it could be used to test against anything, though I admittedly cannot think of any other scenarios at present.

Dave247 avatar Mar 21 '23 00:03 Dave247