Stats not controlled by the Player possibly AI?

  1. What do you want to achieve? I want these stats (image is shown in 2.) not controlled by the player but influenced. Players do not have to do anything for the stats to change and it is sort of like the Cities Skylines Toolbar if you have seen it before.


    I’m not trying to get anyone to write scripts for me but I sort of want to know where to get started.

  2. What is the issue? Include screenshots / videos if possible! I currently cannot figure out how to implement this stat system that is not controlled by the player 90% of the time but can be influenced by actions the player does.
    The Stats that Im working on

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? I couldn’t find any relevant topics that could have assited me on the DevForum.

Here what I would do: (rough idea btw)

Have modifiers for every player, let’s say as default +0.25 for happiness. Adding a school increases happiness by 0.01, but having residents too far from a school adds -0.01 for that happiness modifier. You would then use a script to use these numbers to calculate the stats. Something like that

1 Like

it is rather simple, like the above said you just want to set default values then add modifiers, and lets say each game turn or every minute you apply the modifier
make sure its server sided so the client doesnt mess with it

1 Like