MODDING - Regional Filter (Patreon)
Content
This is for modders.
I know a lot of people tried to restrict townies to their home regions in the past, so I'm going to explain how I did it.
There is a magic single filter added with Strangerville:
This single Magic Filter is referenced in EVERY SITUATION JOB in game. All of them, with no exceptions. It allows to control townies en mass.
Now, if you look at the tuning, this filter was set up to keep the Stangerville infected in their town, but it's not so strict:
Refer to the TDESC to read it. Basically it means the a sim residing in Strangerville is less likely to be picked, even less if the sim has the infected trait. The more the filter score goes close to 0 the more strict the filter is, if you set it to 0, no sim from Strangerville will ever spawn for a situation job. This same regional filter can be set to filter sims living in the current zone:
so the game will always prefer sims from the current zone. If you invert this setting and set the score to 0, the game will never pick sims from the current zone.
The same regional filter can be used on the single filters like the walker one:
In case there is a specific situation to filter more.