How to check if genitals are accessible

To discuss about modding LifePlay game. Best place to ask for help or to share some tips and tricks for coding.
Post Reply
Rizean
Modder
Reactions: 0
Posts: 6
Joined: Fri Oct 22, 2021 8:31 am

Post by Rizean »

How to check if genitals are accessible.
Keep in mind this is more focused on female actors or actors who would wear female-style clothing.
It's also a close but not perfect check as a large number of clothing items post 4.0 makes it difficult to do a perfect check.

Code: Select all

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

sceneStart()
  isNotWearingUnderwear = !Player.isSlotOccupied(Bottom_Under)
  isNotWearingBottoms = true
  if Player.isEquipped('Bottom') || Player.isEquipped('Bottom_Under')
    isNotWearingBottoms = false
  EndIf
  lpjs_isWearingSkirtDress = false
  if Player.clothesContain(Dress) || Player.clothesContain(Skirt) || Player.clothesContain(Cheerleader)
    lpjs_isWearingSkirtDress = true
  EndIf
  lpjs_isNotWearingBottoms = true
  if Player.isEquipped('Bottom') || Player.isEquipped('Bottom_Under')
    lpjs_isNotWearingBottoms = false
  EndIf
  lpjs_isNotWearingUnderwear = !Player.isSlotOccupied(Bottom_Under)
  areGenitalsAccessible = false
  if lpjs_isNotWearingUnderwear && [lpjs_isWearingSkirtDress || lpjs_isNotWearingBottoms]
    areGenitalsAccessible = true
  EndIf
  "areGenitalsAccessible=<areGenitalsAccessible>  isNotWearingUnderwear=<isNotWearingUnderwear> isWearingSkirtDress=<isWearingSkirtDress> isWearingSkirt=<isWearingSkirt>  isWearingDress=<isWearingDress>  isNotWearingBottoms=<isNotWearingBottoms>"
sceneEnd()
Top
Post Reply