Enum: Clothing Status - lalolotor/newlife-documentation GitHub Wiki

Values:

  • WORN
    • The clothing item is being worn as intended.
  • DISHEVELED
    • Generally set after the PC gets groped.
    • It has little in the way of gameplay effect but modifies her description.
    • Disheveled clothing still covers whatever it was supposed to cover.
    • Note that the enum value is spelt with 1 'L', which seems to be the US-English spelling. Using dishevelled with 2 'L's will result in an error.
    • Not applicable for legwear.
  • EXPOSED
    • The clothing has been moved aside (the exact description of how depends on the clothing item) and no longer covers whatever it was meant to cover.
    • Not applicable for legwear.
  • OFF
    • The clothing slot is empty, either because the outfit has no clothing for it or because the clothing has been removed completely.

Splendid Ostrich's Notes:

The PC and female NPCs have a clothing status for each of the 5 clothing slots, although only WORN and OFF are valid for legwear so there's a isLegwearWorn() method instead of the enum getLegwearStatus().

If you just need to find out if her breasts or pussy are exposed then the isBreastsExposed() and isPussyExposed() methods will be simpler than checking for clothing status. The latter also checks for the no-panties/short-skirt situation which counts as exposed regardless of clothing status.

Note that dresses and similar clothing cover the Top and Bottom clothing slots and have separate statuses for both. For instance a dress that's been pulled down around the pc's waist would have top status of EXPOSED but could still have a bottom status of WORN if it hasn't been pulled up to her waist. Removing a dress completely by setting either status to OFF will set both statuses.

It's possible to set statuses via appropriate methods (e.g. setBraStatus(Clothing Status)). You should be careful when using these to replace clothing as it'll cause bugs if e.g. the outfit didn't include a bra but you set the bra status to anything other than OFF. This is the cause of the “he removes your no panties” type bugs that occasionally crop up.

To dress the player use the fixClothing() method instead. In general, you should always check statuses before modifying them. For instance, if you want the PC's clothing to be dishevelled after she gets groped make sure to check it wasn't EXPOSED or OFF first.

As a rule of thumb, undressing the PC should also be approached with caution due to its heavy reliance on the perhaps over-complex clothing system. I will eventually expose the NPC makeout-action system to custom scenes, which provides default actions to undress the player.