Ravenger6660

Active Member
Sep 14, 2017
848
993
https://f95zone.to/threads/lifeplay-v4-17-vinfamy.11321/post-4138623

adoption{updated so you can Choose race & age.}

Code:
WHAT: none
WHERE: none
WHEN: 0-24
WHO: none
OTHER:

SceneStart()
Exit = false
"Where should I adopt?"
0:: "Africa? -Black-"
1:: "India? -South Asian-"
2:: "Sudan? -Arab-"
3:: "Bazil? -Latin-"
4:: "China? -East Asian-"
5:: "Canada? -White-"
6:: "Never mind"

If 0
    setRaceGenerated(black)
Elseif 1
    setRaceGenerated(indian)  
Elseif 2
    setRaceGenerated(arab)      
Elseif 3
    setRaceGenerated(latin)  
Elseif 4
    setRaceGenerated(asian)  
Elseif 5
    setRaceGenerated(white)
Else
    Exit = True
Endif
If !Exit
    "It's a lot of paperwork to fill but in the end my application was accepted."
    Parent = generatePersonTemporary()
    Actor = Parent.generateRelativeMatchRace()
    Actor.setRelativeType(Child)
    Actor2 = getSpecific(Dating)
    If Actor2.isValid() && Actor2.ismarried()
        addNpcRelationship(ParentChild, Actor2, Actor)
    Endif
       
    0:: "Should I adopt a baby? age 0"
    1:: "Should I adopt a child? age 9"
    2:: "Should I adopt a teenager? age 18"
   
    If 0
        "I'm in luck. The centre currently has one newborn available for adoption"
        Actor:age => 0
        Actor.randomizeFace()
        Actor.randomizeHairs()
        Actor:rapportwithplayer => Random(50, 100)
    Elseif 1
        "I'm in luck. The centre currently has child in need of a home"
        Actor:age => 9
        Actor.randomizeFace()
        Actor.randomizeHairs()
        Actor:rapportwithplayer => Random(0, 25)
    Else
        "I'm in luck. The centre currently has teenager in need of a permanent home"
        Actor:age => 18
        Actor.randomizeFace()
        Actor.randomizeHairs()
        Actor:rapportwithplayer => Random(-50, 0)
    Endif
    "It's a <Actor.boy_or_girl>! What should I name my <Actor.son_or_daughter>?"
    Actor.enterFirstName()
    Player:children += 1
Endif  
SceneEnd()
 
  • Like
Reactions: jinzom

Tarrang

Member
Oct 13, 2021
306
331
Russia might be more appropriate than Canada for white. Not many international adoptions from Canada. Or another poorer mostly white country - much of Eastern Europe.
 

tmnchca

New Member
May 23, 2021
11
4
What would cause a spouse to keep moving out into their own apartment?

Also, where is the NPC home/work data saved?
 

Villenia

New Member
Aug 12, 2019
12
12
What would cause a spouse to keep moving out into their own apartment?

Also, where is the NPC home/work data saved?
As for the latter part, I don't know, but the former one, about spouses moving to their home, that's easy. It's a design flaw. The game is based on scripted events. These events are written to be more or less universal, and they often don't check if an NPC is a player's spouse or not. So, the NPC goes to its own home. The most common example of it - if you take your spouse on a date and than select 'say goodbye to companion', you will be prompted to walk your spouse home. One might think you both just go home, but no. The script does not have check if you live together or no, and you will go to NPC's original home.

Keep in mind, all the events are written by one person, who simply cannot keep track of all the scripts he wrote in a few years the game is in development. So, basically, you may try and introduce such check into the script yourself :)
 
  • Like
Reactions: larsV

tmnchca

New Member
May 23, 2021
11
4
As for the latter part, I don't know, but the former one, about spouses moving to their home, that's easy. It's a design flaw. The game is based on scripted events. These events are written to be more or less universal, and they often don't check if an NPC is a player's spouse or not. So, the NPC goes to its own home. The most common example of it - if you take your spouse on a date and than select 'say goodbye to companion', you will be prompted to walk your spouse home. One might think you both just go home, but no. The script does not have check if you live together or no, and you will go to NPC's original home.

Keep in mind, all the events are written by one person, who simply cannot keep track of all the scripts he wrote in a few years the game is in development. So, basically, you may try and introduce such check into the script yourself :)
I'm aware the game is script based, and also many of those scripts don't check to see if an NPC is in the same location before running. I can see in the script where they are spawned in.

But the game does clearly track NPC home and work locations. For instance, at any random point of the day, you can open an NPC profile in the contacts window and at the bottom you can select to travel to their work or home or current location. If you select work or home, you will go there, even if they are not there. Its always the same place.

When you get married or sometimes just dating, there is a script that calls a function (eg, loseHome() in move_in_with_dating.lpscene). This function appears to be used to change the player or NPC home accordingly to the same location. It worked in my older games, but in the most recent one it appears to be broken.
 

TurboShark

Member
Jan 14, 2018
100
121
I'm aware the game is script based, and also many of those scripts don't check to see if an NPC is in the same location before running. I can see in the script where they are spawned in.

But the game does clearly track NPC home and work locations. For instance, at any random point of the day, you can open an NPC profile in the contacts window and at the bottom you can select to travel to their work or home or current location. If you select work or home, you will go there, even if they are not there. Its always the same place.

When you get married or sometimes just dating, there is a script that calls a function (eg, loseHome() in move_in_with_dating.lpscene). This function appears to be used to change the player or NPC home accordingly to the same location. It worked in my older games, but in the most recent one it appears to be broken.
I'm not at home right now, so I can't check the files right now, but there is a second function that favorites your house for the NPC to mark that they live there. Things got changed around a bit for the polyamory update.
 

MarcoPoolo

Member
Dec 22, 2019
287
267
NickNo
Senior, with your PE mod, is it possible to do a solo porn shot by myself?
If so, how? If I try to do a Shot, I can only select other people but not myself

BR
 

Mommysbuttslut

Forum Fanatic
Feb 19, 2021
4,132
10,066
The game crashes when I try to spike people's drinks just as the sex starts. Has anyone else experienced this?
Yup, I can sometimes get that scene to play properly from the rape companion command but that command doesn't work very well. Older version of the game where it does work it's labeled as spike drink, this version it's labeled spike drink with aphrodisiac which seems to have some problems. No idea on a fix from the user end though.
 

dookudooki

Newbie
Apr 25, 2020
53
26
How do you affect hair color in NPC generation. Like I want to see more blonde, white, red and even dyed hair colors being naturally generated.
 

Vinfamy

creating moddable 3D life simulator
Game Developer
Jul 5, 2017
1,250
4,851
Kinks of the Month for December (v4.20 & v4.21)
please vote before 3 December
- x1 Weighted Poll for $1 to $4 Patrons:
- x3 Weighted Poll for $5 to $9 Patrons:
- x9 Weighted Poll for $10 or above Patrons:
 

Tarrang

Member
Oct 13, 2021
306
331
I wish you could get the punk hair colors like you get in one of sb's mods. Be hot to get the teal, pink, blue, green hair colors sometimes for hoes and such.
 

BigOnes69

New Member
Oct 12, 2021
11
8
My wireless earbuds make static sounds only with this game. They work fine with every other game I have. This game works fine on the 5.1 speaker system, the digital output, and the USB portables I have. Very strange. Any one have any ideas how to fix? The wireless earbuds worked fine until the 4.17 update.
 
3.30 star(s) 118 Votes