tanocapo

Newbie
Sep 23, 2018
24
4
Hi guys,

i'm trying to understand a little bit about scenes and i was analizing cash_for _ass scene.
I believe i'm misunderstanding the line Random(0, 100) < attractiveness && !Player.isProstitute() && !isWithCompanion()
So, it first generates a random number between 0 and 100, if it's lower than attractivness and the player is a prostitute and it's with a companion, then the scene is triggered, is that correct?
In-game, my character is not a prostitute and solo, and scene keeps appearing.
What am i missing here?
Thanks!!
 

Deleted member 289409

Active Member
Nov 12, 2017
680
871
Hi guys,

i'm trying to understand a little bit about scenes and i was analizing cash_for _ass scene.
I believe i'm misunderstanding the line Random(0, 100) < attractiveness && !Player.isProstitute() && !isWithCompanion()
So, it first generates a random number between 0 and 100, if it's lower than attractivness and the player is a prostitute and it's with a companion, then the scene is triggered, is that correct?
In-game, my character is not a prostitute and solo, and scene keeps appearing.
What am i missing here?
Thanks!!
You got the first part right the second part it checks if the player is a prostitute (they shouldn't be a prostitute) and checks if they are with a companion (if you're with one it shouldn't trigger) so if they are Solo and not a prostitute then it will trigger.

Although I've had that scene trigger when my char was alone and they had worked as a prostitute.
 
Last edited:
May 5, 2019
21
27
Agreed. One thing though, not sure if you're aware: in the game's options menu, there's an entry to morph the player's (not sure about npcs) body as they work-out\ gain weight\ etc. It's deactivated by default.
Doesn't work. I don't think it ever has. It should be fixed and work for both Player and NPCs. (or just make two toggles...that work.)
 

tanocapo

Newbie
Sep 23, 2018
24
4
You got the first part right the second part it checks if the player is a prostitute (they shouldn't be a prostitute) and checks if they are with a companion (if you're with one it shouldn't trigger) so if they are Solo and not a prostitute then it will trigger.

Although I've had that scene trigger when my char was alone and they had worked as a prostitute.
Thanks, armanadus! I mixed it right there! I thought the opposite.
 
Nov 22, 2017
123
101

Medievalover

Obsessed with thicc women!
Modder
Oct 18, 2020
474
7,114

Deleted member 289409

Active Member
Nov 12, 2017
680
871
New version, new scene tweaks.

v1.2 Changelog:
  • Overall:
    • Reupload with fixed line endings
  • vin_Base:
    • nude_draw_cms:
      • Rework actor generation and pronouns to support a transwoman art teacher.
    • show_npc_porn_cms:
      • Opened previously ciswomen only roles to transwomen.
      • Move NonCon check under the straight/lesbian decision.
    • sucked_by_vampire_cms:
      • Hoist sucked test up a level so the initial branch works.
  • vin_Bestiality:
    • catch_neighbour_cms:
      • Change gender conditions to allow transwomen.
      • Attempt to grab an existing neighbour first, then make new ones.
      • Hardcode Actor2 some stats to make sure it doesn't hate everything.
    • gf_suggests_cms:
      • Swap ciswomen-only conditions to allow transwomen.
      • Make a random check easier to always succeed.
    • undercover_cop_cms:
      • Player.isFemale() -> !Player.isMale()
In your NPC_gives_birth it was setting the child that the male player had with their affair as a sibling so I took a look and found the problem
If !Actor.isMale()
SceneStart()
Actor3 = Actor.getRelatedPerson(Spouses, Dating)
If Actor3.isValid() && !Actor.isDating()
secondScreen(Actor)
Actor.endPregnancy()
Actor.dress()
Actor.show(2)
Actor.setActorVar(tag_Pregnant, 0)
Actor2 = Player.generateRelativeMatchRace()
Actor2.setRelativeType(Child) <------You had this as Actor it showed the child as the players brother/sister. I changed it to Actor2 now the child shows as the players son/daughter
Actor2:age => 0
addNpcRelationship(ParentChild, Actor, Actor2)
addNpcRelationship(StepChild, Actor3, Actor2) <----I changed this to StepChild to show that they are not the real father
Actor2.matchLastName(Actor3)
Actor2.setLivingWithPlayer(False)
"<Actor.name> has recently given birth to a cute baby, whom she named <Actor2.name>. Her baby photos are all her and <Actor3.name>'s Facebook."
"Of course, there's a secret only <Actor.name> and I know: Baby <Actor2.name> isn't really <Actor3.name>'s biological child after all. I was the real baby daddy! Of course, <Actor3.name> has no idea and will now unwittingly raise another's child as <Actor3.his_or_her> own."
 

almostideal

Member
May 12, 2020
175
160
https://f95zone.to/threads/lifeplay-v4-0-beta-2-vinfamy.11321/post-4138623

Ravenger666_house_party{Be invite to 1/5 parties} -Work in progress-
Standard House party -changed-
Poker party -changed-
Redrum party -changed-
Pornstar party -changed-
Collage party ++New++
The_Babysitter{Post party event if you have a kid under 18} ++New++
I thought the Redrum party was going to be one of two terrible things, it was neither but somehow ended up being just as bad.
 
  • Haha
Reactions: Ravenger6660
Aug 8, 2017
374
294
In your NPC_gives_birth it was setting the child that the male player had with their affair as a sibling so I took a look and found the problem
If !Actor.isMale()
SceneStart()
Actor3 = Actor.getRelatedPerson(Spouses, Dating)
If Actor3.isValid() && !Actor.isDating()
secondScreen(Actor)
Actor.endPregnancy()
Actor.dress()
Actor.show(2)
Actor.setActorVar(tag_Pregnant, 0)
Actor2 = Player.generateRelativeMatchRace()
Actor2.setRelativeType(Child) <------You had this as Actor it showed the child as the players brother/sister. I changed it to Actor2 now the child shows as the players son/daughter
Actor2:age => 0
addNpcRelationship(ParentChild, Actor, Actor2)
addNpcRelationship(StepChild, Actor3, Actor2) <----I changed this to StepChild to show that they are not the real father
Actor2.matchLastName(Actor3)
Actor2.setLivingWithPlayer(False)
"<Actor.name> has recently given birth to a cute baby, whom she named <Actor2.name>. Her baby photos are all her and <Actor3.name>'s Facebook."
"Of course, there's a secret only <Actor.name> and I know: Baby <Actor2.name> isn't really <Actor3.name>'s biological child after all. I was the real baby daddy! Of course, <Actor3.name> has no idea and will now unwittingly raise another's child as <Actor3.his_or_her> own."
Good catch on the first one. On the second, that does not appear to do what you expect. The game treats it as a symmetric relationship like colleagues. (Actor3 is Actor2's stepchild; Actor2 is Actor3's stepchild.) That was a thing I wanted to do, but I think we need Vinfamy to add some functionality before it'll be possible.
 

Deleted member 289409

Active Member
Nov 12, 2017
680
871
Good catch on the first one. On the second, that does not appear to do what you expect. The game treats it as a symmetric relationship like colleagues. (Actor3 is Actor2's stepchild; Actor2 is Actor3's stepchild.) That was a thing I wanted to do, but I think we need Vinfamy to add some functionality before it'll be possible.
It does show up as Stepchild if you change it otherwise it shows as child which was what I was going for just a distinction for clarification on the relationship.

Also this bit of code I had been working on makes it so that if your SO gets pregnant from someone else the child is considered a Stepchild to the player and the biological father is the father.

If !Actor.isMale()
SceneStart()
Actor3 = Actor.getRelatedPerson(Spouses, Dating)
If Actor3.isValid() && !Actor.isDating()
secondScreen(Actor)
Actor.endPregnancy()
Actor.dress()
Actor.show(2)
Actor.setActorVar(tag_Pregnant, 0)
Actor2 = Player.generateRelativeMatchRace()
Actor2.setRelativeType(Child)
Actor2:age => 0
addNpcRelationship(ParentChild, Actor, Actor2)
addNpcRelationship(StepChild, Actor3, Actor2)
Actor2.matchLastName(Actor3)
Actor2.setLivingWithPlayer(False)
"<Actor.name> has recently given birth to a cute baby, whom she named <Actor2.name>. Her baby photos are all her and <Actor3.name>'s Facebook."
"Of course, there's a secret only <Actor.name> and I know: Baby <Actor2.name> isn't really <Actor3.name>'s biological child after all. I was the real baby daddy! Of course, <Actor3.name> has no idea and will now unwittingly raise another's child as <Actor3.his_or_her> own."
Else
Actor3 = Actor.getBabyDaddy()
If Actor3.isValid() && Actor.isDating && !Player.isBabyDaddy
secondScreen(Actor)
Actor.endPregnancy()
Actor.dress()
Actor.show(2)
Actor.setActorVar(tag_Pregnant, 0)
Actor2 = Actor3.generateRelativeMatchRace()
Actor2.setRelativeType(StepChild)
Actor2:age => 0
addNpcRelationship(ParentChild, Actor, Actor2)
addNpcRelationship(ParentChild, Actor3, Actor2)
Actor2.matchLastName(Actor)
Actor2.setLivingWithPlayer(False)
"<Actor.name> has recently given birth to a cute baby, whom she named <Actor2.name>. Her baby photos are all her and my Facebook."

"Of course, there's a secret <Actor.name> and I know: Baby <Actor2.name> is really <Actor3.name>'s biological child after all."
Else
setBackground(home)
Actor.dress()
Actor.show(2)
Actor.setActorVar(tag_Pregnant, 0)
"<Actor.name> is going into labour. I need to take her to the hospital ..."
0:: "Take <Actor.name> to a hospital"
1:: "I want nothing to do with this baby!"

If Actor.isValid()
If 0
Loc = findNearbyBuilding(hospital)
moveTo(Loc)
Actor.strip()
Actor.endPregnancy()
"Those were among the tensest hours in my life, but thankfully, everything went smoothly in the end. Both <Actor.name> and our child were in good condition. Nothing beats the feeling of being a new father."
Surrogate = Actor.getActorVar(tag_Surrogate)
If Surrogate == 1
"Of course, all the credits should go to <Actor.name>, the surrogate mother. I must have been difficult for her to give away the baby she's just given birth to."
Elseif Actor.isRelative()
"Of course, nobody else knows that I'm the father. <Actor.name> is my own <Actor.relationship> after all ... We agreed to keep it a secret and made up a story about a sperm donor to the rest of the family and society."
"We did something forbidden and extremely risky that led to this baby. Yet by some miracle, the baby turned out to be healthy both physically and mentally."
Elseif Actor.isExRelative()
"<Actor.name> and I are related after all so I would be lying if I said I wasn't concerned. Thankfully, the baby turned out to be healthy both physically and mentally. Maybe God changes his mind about incest?"
Endif
If Surrogate == 0 && !Actor.isDating() && !Actor.isRelative()
"However, the fact that I impregnated someone I'm not in a committed relationship with could potentially leave the child growing up without a steady family unit. Maybe I should settle down with <Actor.name> for the sake of the baby."
karma -= 5
Endif
children += 1
Actor2 = Actor.generateRelativeMatchRace()
Actor2.setRelativeType(Child)
AddNpcRelationship(ParentChild, Actor, Actor2)
"It's a <Actor2.boy_or_girl>! What should I name my <Actor2.son_or_daughter>?"
Actor2.enterFirstName()
Actor2:age => 0
Player:children += 1

mood += 100
Else
Actor.endPregnancy()
"I didn't bother to take <Actor.name> to the hospital, nor even acknowledge this baby as mine. As far as I'm concerned, it's her business to raise the child. If she cannot, she can just put him up for adoption."
"Obviously, my denial of any responsibility regarding the child greatly upset <Actor.name> and her family. Thankfully, they stopped short of suing me for child support. I got away with it basically."
Actor:attractiontoplayer -= 50
Actor:rapportwithplayer -= 50
If Actor.isDating()
loseDating()
"Needless to say though, <Actor.name> promptly broke up with me ..."
Endif
Endif
Endif
Endif
Endif
SceneEnd()
Endif
 
Last edited:
Aug 8, 2017
374
294
It does show up as Stepchild if you change it otherwise it shows as child which was what I was going for just a distinction for clarification on the relationship.

Also this bit of code I had been working on makes it so that if your SO gets pregnant from someone else the child is considered a Stepchild to the player and the biological father is the father.

<snipped code>
If the player character is neither biological parent, then the scene that'll fire is NPC_gives_birth_neutral.lpscene.

Also, when pasting code, you should use the code tag - all indentation is gobbled by the forum otherwise. In addition, rather than pasting the entire file, the changes can be summarized much more succinctly by only including a few lines of context along with the line numbers of each change.
 

Deleted member 289409

Active Member
Nov 12, 2017
680
871
If the player character is neither biological parent, then the scene that'll fire is NPC_gives_birth_neutral.lpscene.
That wasn't working every time my char's SO went to give birth it would trigger NPC_gives_birth.
I don't play with Poly turned on maybe that makes a difference. They also were still together as her pregnancy was an accident that happened during the BGGW Quest I didn't pay attention during the swinging part with Natasha and Damon.

Also, when pasting code, you should use the code tag
I forgot all about using that tag sorry.
You don't have permission to view the spoiler content. Log in or register now.
Actually I think the game is bugged my char's sister just had a baby and for some unknown reason the game made the child his. Also I noticed that if my char agrees to have a baby with one NPC then all NPC's will want a baby.
 
Last edited:

Fuzzcat

Active Member
Oct 27, 2017
624
662
Ok, silly question (I'm relatively new to the game):

I switched the slider for pregnancies to 0.90
If I got it well, it means pregnancies will have a much shorter duration?
But my character got preggers on the first day, and 12 days have passed, and still no birth, at 0.90 I thought it was around a couple days or so.
My mistake was to change the slider after getting pregnant (I.e: I started the game normally, got babybumped and say "oops, time to speed up" and changed the slider), could that be the problem?
(also, I haven't noted any physical change)

So, should I wait some more, is the pregnancy f**d up and I need to get rid of it -> and there is a way to force pregnancies or I need to do an abortion in-game so I don't screw the code even more?

(note: I have zero idea of coding. I'm an artist, so my focus of "modding" is changing/doing skins and tattoos -and would like to change clothes textures but dunno how-, so I'm not sure what is the limit to fiddle with codes)
 

Deleted member 289409

Active Member
Nov 12, 2017
680
871
I switched the slider for pregnancies to 0.90
That won't shorten them by much that'll only shorten it by a few days. If you set it to 0.1 then every day that goes by it'll count as 10 days. But even at 0.1 it'll still take around 27 days for the pregnancy to end.
 
Last edited:

Ravenger6660

Active Member
Sep 14, 2017
826
960
That wasn't working every time my char's SO went to give birth it would trigger NPC_gives_birth.
I don't play with Poly turned on maybe that makes a difference. They also were still together as her pregnancy was an accident that happened during the BGGW Quest I didn't pay attention during the swinging part with Natasha and Damon.


I forgot all about using that tag sorry.
You don't have permission to view the spoiler content. Log in or register now.
Daddy = getSpecific(CurrentBabyDaddy)
Actor3 = Actor.getRelatedPerson(Spouses, Dating)
If Actor3 == Daddy
"Actor3 is father"

ElseIf Player == Daddy
"Player is father"

Endif
 

Ravenger6660

Active Member
Sep 14, 2017
826
960
Ok, silly question (I'm relatively new to the game):

I switched the slider for pregnancies to 0.90
If I got it well, it means pregnancies will have a much shorter duration?
But my character got preggers on the first day, and 12 days have passed, and still no birth, at 0.90 I thought it was around a couple days or so.
My mistake was to change the slider after getting pregnant (I.e: I started the game normally, got babybumped and say "oops, time to speed up" and changed the slider), could that be the problem?
(also, I haven't noted any physical change)

So, should I wait some more, is the pregnancy f**d up and I need to get rid of it -> and there is a way to force pregnancies or I need to do an abortion in-game so I don't screw the code even more?

(note: I have zero idea of coding. I'm an artist, so my focus of "modding" is changing/doing skins and tattoos -and would like to change clothes textures but dunno how-, so I'm not sure what is the limit to fiddle with codes)
Slider for pregnancies to 0.25 = 70 days, 0.025 = 7 days, 0.0125 = 3.5 days
 

Deleted member 289409

Active Member
Nov 12, 2017
680
871
Daddy = getSpecific(CurrentBabyDaddy)
Actor3 = Actor.getRelatedPerson(Spouses, Dating)
If Actor3 == Daddy
"Actor3 is father"

ElseIf Player == Daddy
"Player is father"

Endif
I think the game is bugged my char's sister just had a baby and for some unknown reason the game made the child his. Also I noticed that if my char agrees to have a baby with one NPC then all NPC's will want a baby.
 
3.30 star(s) 117 Votes