| Creator News |
| Creating for... |
| Sims 2 |
| Sims 3 |
| Creator Forums |
| Creator Guidelines |
| Creator Feedback |
| Creator Issues |
| Upload Items |
| Site News |
| Latest News |
| News Sections |
| Site News |
| Tech News |
| Creator News |
| Site Polls |
| Sims 3 Creation |
| Tutorials |
| Forum Overview |
| Specific Sections |
| Building |
| Create-a-World |
| Patterns |
| CAS Parts |
| Meshing |
| Modding Discussion |
| s3pi Libraries and Tools |
| Creative Tools |
| Programs and Utilities |
| Sims 2 Creation |
| Tutorials |
| Forum Overview |
| Specific Sections |
| Building |
| Body Shop |
| Object Creation |
| Modding Discussion |
| Creative Tools |
| Sims 2 Tools |
| Programs & Utilities |
| Categories |
| Sims |
| Pets |
| Lots & Housing |
| Bodyshop |
| Buy Mode |
| Build Mode |
| Game Mods |
| Miscellaneous |
| Programs and Utilities |
| Search Downloads |
| Search Site |
| Click here to search the site |
| Search Wiki |
| Member Search |
| Advanced Search |
| Social Sections |
| Social Home |
| Sims Discussion |
| Sims Creativity |
| General Discussion |
| Creativity |
| Content Updates |
| Finds |
| Other |
| Social Groups Forums |
| Social Groups Home |
| Journals |
| Live Chat |
| Yearbook |
| Site Links |
| New Posts |
| Site Map |
| Site Questions and Issues |
| Information |
| About the site |
| Site Rules & Guidelines |
| Website FAQ |
| Other |
| Wiki |
| Donate |
| About |
| Game Help |
| Game Help Home |
| Game Help Q&A |
| FAQ Sections |
| Sims 2 |
| Sims 3 |
| Other |
| Where can I find...? |
| Computer & Software Help |
| Search Help FAQs |
| Downloads |
| Sims 2 |
| Sims 3 |
| All |
| Shiny Stuff |
| Top Items |
| Themed Sets |
| Creator Challenges |
| Main Sections |
| Categories |
| Special Sections |
| Llama Goodies |
| Silver Monkey |
| Search |
|
Welcome to
Mod The Sims Online: 2451
News:
New theme - what went wrong, what went right, and next steps. , 15th May 2013 at 09:22 AM Read this article for helpful advice about patching and keeping your custom content working! |
If you don't have an account, why not sign up now? It's free!
Other sites:
SimsWiki
|
| Mod The Sims > Downloads > Game Mods > Script & Core Mods - Scripted Objects |
| Sims 3 online pharmacy control script, pills, and cabinets |
|
Creator
Ad section
|
![]() Download
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 72151 times.
Direct link to this thread
126 Comments / replies (Who?)
, 109 times favourited
, 526 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 *** The Pills Trimasim 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! TrimasimLT 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. Simnip 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. Sprinkler Pills A simnip derivative with longer lasting effects. Siminex 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. Siminaps Derived from TrimasimLT, it took four doses of this stuff to send our test sims off to dream land. Simpatico Gave test sims a four hour 'tranquil' moodlet and a +10 mood boost. ...and they didn't so much as gag. Woo! LWE9_pillscript_tutorial_example 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. The Cabinets 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. Install Instructions 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. Polygon Counts: pill bottle 150 medicine cabinet 118 Additional Credits: Tools: S3PE, S3OC, milkshape. Lots of helpful scripting advice: Cmomoney, Buzzler, Twallan Encouragement: Inge Jones Compatibility: 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: http://www.modthesims.info/wiki.php..._Object_Modding 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:
Code:
526 people have said thanks to lenglel for this download. For more information about this creator and their policies or details, click here. Screenshots
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.
Download files
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!
Multi-Part Download
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.
Download Summary
Recommendations
Users who thanked this download also thanked: |
| Share this on... |
Twitter |
del.icio.us |
StumbleUpon |
Google |

Download