Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Scholar
Original Poster
#1 Old 28th Jun 2017 at 7:23 PM
Default How to check relationships and change them!?
Ok a lot of progress has been made in my vampire mod it'll probably be ready for upload this week
Now I need to know how do I change the relationship between two sims, like say make them Romantic Interests or Best Friends or Spouse.
I would also like to know how to check for these things, like I wanna enable an interaction for Sims that are enemies only or Romantic interests only and disable for the rest. How do I do that?
Any help will be greatly appreciated
Advertisement
Scholar
Original Poster
#2 Old 28th Jun 2017 at 8:07 PM
Ok wait I've figured it out on my own I looked at the BuffImminentRomance.
Another question I have, probably the last one for this mod.
How do I check if a sim is a service NPC for my mod?
Field Researcher
#3 Old 1st Jul 2017 at 6:13 AM
Quote: Originally posted by skydome
Ok wait I've figured it out on my own I looked at the BuffImminentRomance.
Another question I have, probably the last one for this mod.
How do I check if a sim is a service NPC for my mod?


My skills are a bit rusty, but perhaps you could do a foreach loop and check every Sim on a lot (I'm not sure what you are trying to do) and use the bool "IsNPC" maybe something like:

Code:
foreach (Household current in Household.GetHouseholdsLivingInWorld())
{
foreach (Sim sim in current.AllActors)
{
if (sim.IsNPC == true)
{   (YOUR CODE)
}
}
}


Again just sort of thinking out loud here...I don't know your context and my stuff is probably not totally correct!
Back to top