Forum Discussion

brittpinkie's avatar
9 years ago

Is there any way to stop NPCs from spawning during a party?

Remember in TS3 when we could have the option to make a party private, so that other Sims won't show up on the lot? I'm trying to create another new party type (I've already done a baby shower) and don't really want NPCs spawning on the lot in addition to those who were hired for the event, and those who were invited to the party. Specifically, I'm creating Prom as a custom event for teens only. I have made it so only teens can throw the party and only teens can come to the party, however, I find a bit jarring when they show up to the venue and there's random adults there, too.

I've looked in many of the .xml files trying to figure out what I should add or change. I found this when looking at the tdesc for the Situation Job files:

""

I've tried adding in this option to my "party guest" job and then changing the numbers, but nothing seems to change. I'm probably going about it completely wrong. The only thing I can think of is modifying the venues themselves, but that would override EVERYTHING, not just for when I'm throwing this particular party.

Any ideas? Can it be done? If not, is there a work around? @SimGuruModSquad any help?
  • If it's a public venue type them no, there's no way to hire the entire venue. A generic lot type might work for you, though. Residential would also work.
  • Hey guys, from the engieer who knows this code the best:

    If you want to override what happens at a public venue then you need to override the ZoneDirector for the lot so that only the NPCs you want show up. You’ll need to make your own complex situation and have it inherit SituationZoneDirectorMixin (along with SituationComplexCommon) which will give you the ability to specify what zone director you want to have running when the zone spins up with your situation.

    -SGMS
  • "luthienrising;15091723" wrote:
    If it's a public venue type them no, there's no way to hire the entire venue. A generic lot type might work for you, though. Residential would also work.


    I've actually settled for doing the event at generic lots and it works perfectly, but I was wondering if there was any other way...mostly just for future reference.
  • "SimGuruModSquad;15096587" wrote:
    Hey guys, from the engieer who knows this code the best:

    If you want to override what happens at a public venue then you need to override the ZoneDirector for the lot so that only the NPCs you want show up. You’ll need to make your own complex situation and have it inherit SituationZoneDirectorMixin (along with SituationComplexCommon) which will give you the ability to specify what zone director you want to have running when the zone spins up with your situation.

    -SGMS


    Thank you for that SGMS! I will try it out and report back if I have any issues or if I figured it out :hushed: