Seasons - Autonomous Swing set Only for Children (Patreon)
Downloads
Content
This mod has a story.
Every time I put a swing set in a park, all the adults take control of it and children never get to use it. I tried to remove the autonomy but I was not happy, and as soon as I activated it again all the adults made a run for the swing set... I wanted to keep the autonomy for children but remove it for adults, so I came up with a solution....
And I'm going to tell you exactly what I did, because it's ridiculously easy to do:
The xml I wanted to edit is the SwingSet_SoloSwing
I needed to add into it a test to tell the game that the autonomy was allowed only for children, so I added this:
Right before the global test. This tells the game that Sims with the traits listed are not allowed to pick that interaction autonomously. I got the test from the Play_In_Trash_Pile interaction and edited it to suit my needs. You can do the same thing for other interactions in the game (for example, I added the same traits to the blacklist on the Play_In_Trash_Pile interaction too in the mod I did for myself). I also compared the XML to the one for the Jungle gym to see why the children were picking the Jungle Gym way more than the Swing Set, you can open up my mod and look at what I changed if you want to learn to do it yourself.