- Sep 14, 2017
- 848
- 993
https://f95zone.to/threads/lifeplay-v4-17-vinfamy.11321/post-4138623
adoption{updated so you can Choose race & age.}
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()