(Sorry for the wall of text ahead of time xD) This is possible, you just need to look at similar mods. I can't go over every detail on how to make it because even I'm not 100% sure on each step you'd have to take (each mod is different), and I wouldn't have the time to, but I can point you in the right direction and answer any specific questions if you need help. The first thing you want to do is follow simmerish20's advice on making the overlay.
Then, take apart LMS's mod which does something slightly similar but in reverse to study it. The
"No Shoes At Home" mod (search or scroll till Random) forces sims to remove shoes when they walk inside the house. Unfortunately, her mod has a lot of working parts including scripts, so you're going to have to decide on what you want to do as there are several options. The first is to take the time to study her mod, learn how it all works, then create your own version. The second is to override the Sims object tuning if it's only for personal use (to avoid conflicts, etc.). Third is to, again if only for personal use, adjust her mod slightly and insert your tunings and references where needed, change stuff, etc. Fourth is to find an alternative route.
Anyhow, if you've decided to create your own version you'll need some tutorials to get you started:
Scarlet's Beginner tutorials (starting on page 2):
www.simsvip.com/category/the-sims-4/how-to-create-a-mod/page/2/Zer0's tutorials (covers buffs, loots, TDESCs, etc.):
www.patreon.com/posts/tutorials-35031545How to Start a Custom Tuning File: www.patreon.com/posts/how-to-start-38023976And then you need the TDESCs and TDESC Browser as it helps you understand how files are built and what each thing does.
TDESCs (make sure to build your folder right, it's TDESC Folder > Subfolder for each patch TDESC):
www.forums.thesims.com/en_US/discussion/976578/1-63-133-tdescs#latestTDESC Browser (when referencing the folder in your settings do the main TDESC Folder):
www.modthesims.info/download.php?&t=618199If you go the scripting route and also want to decompile her scripts, you'll need a workspace. Follow this
tutorial for getting started, and then in that main workspace folder make a folder called Decompiled, then download these two scripts and drop them in.
One and
two. To decompile another modders script, just drop their ts4script into the main workspace folder. Open Pycharm and just like in the tutorial you need to right click and select Run, but instead you Run on the decompile_folder. It should decompile just fine and drop it into your Decompiled folder.
If you do need scripts and require loot injections you have two routes: You can inject loots into loots by taking the Mod Constructor V4 loot injector script and editing it to add your stuff (so download Mod Constructor and then make a test loot, export, take apart the ts4script it gives). Or you can use
XML Injector. Buff injections will have to be made from scratch, or you can ask LMS for permission to use hers.
So to summarize the general process:
1. Make the overlays.
2. Study her mod (and the tutorials).
3. Figure out how to inject the files, find a different route, or override EA's files. Which path can change how you make the mod, so it's better to figure it out ahead of time with some basic tests and layouts.
4. Make the loots and buffs
5. Inside those buffs and loots you'll need to add the appropriate tests for outside vs inside, etc. and reference your overlays (you do overlays by using AppearanceModifiers, and grab the tuning ID of CAS items by converting the
instance in the Hash Generator).
6. Inject or override the necessary stuff to get it working, and testing.
7. The last step is to have it be removed when sims take a shower. You need to find a loot that fires when the sim is in the shower or bath, and then inject your loot into it. My mod does the same thing and I used loot_VanityTable_RemoveAppliedMakeUp as it's used for most cleaning/water related activities.
Depending your path, your mod may be like LMS' and made of buffs and loots (aka actions) with injection. Or maybe you'll find a creative workaround, like a "take off shoes" interaction that can run your buffs and loots, and won't require scripting. But if you do script, there are not a lot of tutorials for scripting or one that focuses on loots and buffs, so I can't link anything unfortunately. If you require loot injections you have two routes: You can inject loots into loots by taking the Mod Constructor V4 loot injector script and editing it to add your stuff (so download Mod Constructor and then make a test loot, export, take apart the ts4script it gives). Or you can use XML Injector