Home Artists Posts Import Register

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.

Comments

Anonymous

i’m just curious, did you go to uni and study programming/computer science?? or did u learn to do this by yourself??

zer0_Mods_

You can study as much as you want, only Maxis know how this work because they're the one who set up the xmls terms... xml it's not a programming language, it's used to manage databases. I guess things most of the times and then verify my guess. I could be wrong about things, but I've been messing around with this specific filter for a couple of months now (my celeb quarantine mod is based on the same concept)

Marco Cantillo

Thank you so much for this! I honestly understood the filter the oposite way and I never knew why my mod never workedhahaha

zer0_Mods_

what determines the effect is if the score is inverted or not. The filter is always set like to 0 or 0.1 or 0.5 (The Spellcasters one) in maxis tuning.