Mod The Sims
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Posted 26th Sep 2011 at 06:51 AM - Updated 24th Feb 2013 at 08:16 AM by lenglel : adding tiptorial and example pillbottle with self contained script. - Viewed 71891 times. Direct link to this thread
126 Comments / replies (Who?) , 107 times favourited , 523 times thanked
feb 24th, 2013 added tiptorial and example pillbottle.
april 30th, 2012 added simpatico. be sure to re-download and install LWE_pillscript if you download simpatico.
november 4th, 2011 added more moodlets. re-download and install the LWE_pillscript if you want more moodlets
*** tested with 1.50 patch, works as-is ***
Tired of watching your sim sleep? Want to purge their stomach before they enter the eating contest? Give these a try! Based on real-world over-the-counter diet pills. These will lower a sim's hunger motive to make more room for gustatory delights and simultaneously convert their stomach contents to a full energy bar.
Just make sure their tummy is at least half full, or they have a death flower in their inventory or your attempt to steal a few extra hours for skill-building could turn into a meeting with the grim reaper and a free urn stone!
A diluted version of Trimasim, approximately half-strength. Still possible to overdose, just a bit less likely. Eat well, and carry a death flower. You've been warned.
Test sims stood rooted to the spot they swallowed this stuff on and acted very strangely. They said it was fun, and observed no ill effects. The scientists that cooked it up, however, had some observations of their own.
A simnip derivative with longer lasting effects.
Our scientists applied reverse osmosis to Trimasim and came up with this stuff. Of course, sims are much too ethical to put it in their date's juice.
Derived from TrimasimLT, it took four doses of this stuff to send our test sims off to dream land.
Gave test sims a four hour 'tranquil' moodlet and a +10 mood boost. ...and they didn't so much as gag. Woo!
This is the example pillbottle for the tiptorial. It contains it's own s3sa resource, which extends the main script.
If you already have the pill_script installed, you don't need to re-download it to add this pill type to your game.
Using the pills in live mode
Place pill bottle in sim inventory, if it isn't already there. Click for interactions in the usual way. "Read label" gives a count of the pills remaining. If you drag a pill bottle onto a surface, "Pick Up" will cause the active sim to route to the pill bottle and add it to their inventory. "Take one" causes the sim to take one pill from the bottle. If the "take one" interaction doesn't show up in the menu, the pill bottle is empty and can be sold, much like returning an empty soda bottle for deposit.
Using the cabinet in live mode
The working medicabi is a new object, not a replacement for the decorative medicabi that comes with the game. It comes with four interactions. "Show Info" lists the contents of the cabinet. "Put your pills in this cabinet" causes the active sim to walk to the cabinet and put any pills in their inventory into the cabinet. "go empty the medicine cabinet" causes the active sim to walk to the medicine cabinet and put all the pills from the cabinet into their inventory. "get a pill bottle from the cabinet" causes the active sim to walk to the cabinet. If there are two or more pill bottles in the cabinet, a list opens, and a pill bottle may be selected to add to the sim's inventory.
To add to game, download and install the LWE_pillscript.package file to your mods folder. Then download and install any or all pill types you want to add to your game. The working medicine cabinet also relies on the pillscript package for it's script class. New types of pills will be added to this thread. If you want to use the new types, you will need to re-download and install the LWE_pillscript, which will be updated whenever new types of pills or cabinets are added to this set.
Buy pills and cabinets from bathroom accents, or miscellaneous decorations.
pill bottle 150
medicine cabinet 118
Tools: S3PE, S3OC, milkshape.
Lots of helpful scripting advice: Cmomoney, Buzzler, Twallan
Encouragement: Inge Jones
Developed and tested with base-game version 1.24.3.012001
Updated for game version 1.26.89.013001
Tested with game version 1.50
This object mod does not conflict with any other mod, because there is no other like it.
Quick and dirty make your own pill mod tiptorial (mod this mod!):
Have you done any of the scripting tutorials?
You need to know this one like it was your middle name:
You need to have a working knowledge of c# programming, and a project template that links to the sims3
version of mscorlib, instead of the net version of mscorlib.
Do you have s3oc? You'll need it to clone one of the pillbottles, because that's the object that gets the
new script you'll be making. If you're into meshing or texturing, you can also retexture or scale your pill
bottle to make it different from the others. Just don't make it *too* different, because the basic 'take
a pill' animation is set up in the abstract pillbottlebase class, and can't be changed. But it can be added
to in your derived class. You will also need to edit the stbl resource in the cloned package to change
the name and description.
You need to export the LWE4.dll from the pillscript package, so you can link to it in your script. Put it with
the dlls you extracted when you did the object modding tutorial.
There are four overrides that need to be implemented. 1. OnStartup() to give your pills an in-game name
and description, and whatever other startup type stuff you need to do to get ready for the next 3 calls.
2. PreTakePill(Sim PillTaker) PillTaker is passed by the base class when the interaction runs. This is
where initialization stuff goes, such as getting motive values, etc.
3. TakePill(Sim theActor) Use whatever name you want in your overrides, just as long as it's of type
Sim. This is where you put stuff that happens after the sim takes the pill, but before they put it away.
4. PostTakePill(Sim theActor) This is where you do any cleanup, or set alarms etc. It gets called after
the sim puts the pills back in its inventory.
Here's the contents of class1.cs that I used to test out what I told you above:
For more information about this creator and their policies or details, click here.
Expansion / Stuff Packs Required
Built with Game Version: 1.24.3.012
You must have the expansion, game version or stuff packs listed above installed to use this custom content. Please see the post text for any exceptions.
This is a New mesh
All the items needed for you to use this download should be here on this page. You can check the "Related Pages" tab, if visible, to see if there are alternative colour schemes.
You need to be a Registered Member to be able to download from MTS. Registration allows you to thank and leave comments for the creators, see your download history, participate in the discussions and much more!
This is a multi-part download:
Download and install LWE_pillscript.rar. This file has all the scripts for current and future pill types, and medicine cabinets. After that you can download and install your choice of pills and/or the medicine cabinets. I made the script separately from the objects so that I could add new types of pills and cabinets in the future while allowing users to choose which types they added to their game.
Basic Download and Install Instructions:
See: Game Help:TS3 CC Basicswiki for a full guide!
Users who thanked this download also thanked: