Posts: 785
Thanks: 2844 in 7 Posts
10 Achievements
Problems with "Set to Next"
I'm having problems with "Set to Next" where the game isn't finding all of the relevant sims in a category, and I'm hoping someone can help.
I want to find all the siblings of Sim A. I have Sim A's NID saved as Local 0. To start with I used the following steps:
1. Temp 0 := Local 0
2. Stack Object ID := Literal 0
3. Set Stack Object to Next Neighbor with non-zero var3 relationship with sim in temp 0
4. Is Stack Object ID == Local 0 (if true, 3, if false, 5)
5. Local 2 := Familial relationship between Stack Object and Local 0 (using NIDs)
6. Local 2 Flag Set? Const 011A:03 (the one for siblings)
--> if true, do stuff, if false, back to 3.
Sim A in Testville has two siblings,
but the game is only doing stuff to one of them. When I get the game to tell me what neighbor it's investigating between step 4 and step 5, it shows the sibling I know it finds, and then Sim A's baby sister-in-law - who it correctly identifies as "not a sibling" - and then nothing else. The missing sister shows up as a family member in the relationship panel, and all the correct boxes are ticked in SimPE.
Then I tried replacing "Neighbor with non-zero var3 relationship with sim in temp 0" with "neighbor of family in temp 0" and setting temp 0 to the current family (this isn't ideal, as I want this mod to work for siblings not in the same family, but this would be ok). This time it found Sim A's husband and no-one else, not even the other sibling the original had found.
Any help would be greatly appreciated