1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to toggle clothes on and off on custom chars, like on the default ones?

Discussion in 'Help' started by Robocop, Oct 29, 2016.

  1. Robocop

    Robocop Potential Patron

    Joined:
    Aug 20, 2015
    Messages:
    3
    Likes Received:
    0
    I want to be able to push a button on the icon of character, similar to the default characters. I've searched around on the forum and have found nearly nothing to it...anybody know how to do this?
     
  2. stuntcock

    stuntcock Club Regular Staff Member Moderator

    Joined:
    Jun 5, 2012
    Messages:
    1,522
    Likes Received:
    355
    A general solution to this request probably isn't feasible.
    • some characters can't become naked.
      • Dante's Jinx is a good example. The girl has full-body tattoos, but they were not drawn "underneath" the clothing. Hence, it isn't possible to remove the clothes while retaining the tattoos. Even if you did, there would be large gaps in the tattoos (corresponding to the spots which were originally covered by clothes).
    • categories are sometimes ambiguous.
      • the BODY category is sometimes used for changes to the body shape (tails, claws, wings, etc).
      • the BODY category is sometimes used to draw long sleeves and gloves.
      • if we detect a BODY import, then there's no easy way to decide whether or not it should be included in the "naked" version of the character.
    • we can't selectively remove clothing from a Loader mod.
      • Loader mods don't respect categories (such as TOP, FOOTWEAR, etc). They draw sprites directly into the scene. We don't know whether these sprites constitute clothing (which should be toggled off) or skin details (which ought to be preserved). Even if we knew, it would be very tricky to slice out the unwanted items.

    Instead, I'd suggest that you look into the SwitchSet mod. It avoids the problem of code isn't smart enough to decide what "naked" means. Instead, it requires you to put in some extra work, and define a few variants for your character (fully clothed, torn clothing, partially disrobed, completely naked, etc). You can then switch between these variants easily during gameplay.