Nona's Sims

Modding and Troubleshooting The Sims 3

Script mod: Script for Custom Foods (removes Foul Food, Tunable)

This mod is also available at MTS. This mod is compatible with patch 1.42.

This is an object script mod for Custom Edible Objects such as: Edible Pastries from Around The Sims 3 (see also: Part 2), Easter Chocolates from Around The Sims 3Edible Cupcakes from One Billion Pixels, and Edible Sushi from One Billion PixelsParisian Sims also has some edible custom food.

For a full directory of custom edible food see: Custom Edible Food Directory

If you have ever used those objects (and I do recommend them, they are really fun), you may have noticed that snob sims do not enjoy them as much, because they are using the script class of the WA Dried Food. Additionally, when sims eat those foods, their Tomb Stats counter for Dried Food Eaten increases, and moodlet origin is listed as “From Eating Dried Food.” This script is an altered version of EA’s DriedFood script, which removes those side effects (and more!).

This mod is compatible with patch 1.42.

Updates:

17 November 2012 – NEW CLASS: NonaDriedFoodRawMeat – This class is used for all raw meats. Raw meats are intended for consumption by Werewolves and Vampires. If you want non-Werewoleves and non-Vampires to be able to eat Custom Raw Meat, download the optional tuning: NonaEdibleFood_RawMeatForAll_Tuning

Custom Raw Meats – You can get Custom Raw Meats made by me and Cmo at Simlogical. These do not require OBJK override, but they do require this mod.

For full change log, visit the MTS post.

Note: This mod contains ONLY the script and the tuning. If you wish for your objects to use this mod, you must enable it by changing the script class in the OBJK resource of your objects. See below for more information.

Requirements

  • Built with patch 1.33. Should work for 1.31 and 1.32 as well. May work for earlier patches, but I am unable to test this.
  • Does not require any expansion packs.

Conflicts: This mod has no known conflicts.

What is this mod?
This is a wholly new script class based on EA’s DriedFood from World Adventures.

  • Snob sims will not receive the Foul Food moodlet when they eat custom food which uses this script.
  • Custom Food will not contribute towards the dried food eaten statistic in the WA Adventure Journal, when using this script.
  • Moodlet origin will be “From Eating Yummy Meal” instead of “From Eating Dried Food,” when using this script
  • This script has six tunable food quality types (Low, Mid, High, Dessert, Pizza, Cookie). Much better than the EA Original!
  • This script does not replace or otherwise override WA Dried Food. Your WA Dried Food will not be affected by this mod.
  • This script contains custom moodlets! Your sims can eat their custom food on top of their normal meal and get an extra buff for it, if they so choose.

Script Class
The following script classes are available with this mod.

  • Sims3.Gameplay.Objects.FoodObjects.NonaDriedFoodLow
  • Sims3.Gameplay.Objects.FoodObjects.NonaDriedFoodMid
  • Sims3.Gameplay.Objects.FoodObjects.NonaDriedFoodHigh
  • Sims3.Gameplay.Objects.FoodObjects.NonaDriedFoodDessert
  • Sims3.Gameplay.Objects.FoodObjects.NonaDriedFoodPizza
  • Sims3.Gameplay.Objects.FoodObjects.NonaDriedFoodCookie
  • Sims3.Gameplay.Objects.FoodObjects.NonaDriedFoodRawMeat

Tunables
All food types are tunable.

Why  so many types?
With several different quality types, creators have more options. They can create, for example, candy bars that aren’t very filling, but also a delicious sandwich that can serve as a great meal. Since the different quality types are tunable, users are able to choose how they want the items to function in their own games. Perhaps some people want custom edible foods to only serve as a snack, while others would like them to replace meals entirely. The possibilities may not be endless, but there is a great opportunity for various levels of customization with this mod.

Tag Description Found in
HungerGain How much hunger the sim should gain from eating this dried food Sims3.Gameplay.Objects.FoodObjects.NonaDriedFood* XML
ThirstGain How much thirst a vampire will gain from raw meat Sims3.Gameplay.Objects.FoodObjects.NonaDriedFood* XML
EffectValue Strength of the Meal buff the sim gets from eating this. buffs_nonadriedfood XML
TimeoutLength Duration of the Meal buff the sim gets from eating this. buffs_nonadriedfood XML

Tunable Defaults

Food Quality Type HungerGain Moodlet Strength Duration
NonaDriedFoodLow 75 Tasty Treat 5 * (EA Original: 0) 120
NonaDriedFoodMid 90 Sumptuous Snack 10 120
NonaDriedFoodHigh 120 Gastronomical Delight 25 120
NonaDriedFoodDessert 60 Blissfully Satisfied 25 120
NonaDriedFoodPizza 120 Pizza! 25 120
NonaDriedFoodCookie 25 Cookie! 10 120
NonaDriedRawMeat 120 Varies by Occult status Varies 120

* This is the only one that is different from EA tuning.

Special Information Custom Pizza Food (such as OBP’s Edible Pizza).

  • All sims receive a custom moodlet (Pizza!) when eating Custom Edible Pizza.
  • Sims with the Pizza Appreciator trait will also receive an “Amazing Meal” moodlet, which grants +40 mood and lasts 8 hours.
    • Fully Tunable. See Sims3.Gameplay.Objects.FoodObjects.NonaDriedFoodPizza XML for tuning.
    • You can disable the Amazing Meal moodlet by setting PizzaAppreciatorMealBuffStrength to 0.
  • Sims with the Computer Whiz trait will also receive an “Great Meal” moodlet, which grants +25 mood and lasts 8 hours.
    • Fully Tunable. See Sims3.Gameplay.Objects.FoodObjects.NonaDriedFoodPizza XML for tuning.
    • You can disable the Great Meal moodlet by setting PizzaAppreciatorMealBuffStrength to 0.

Special Information about Custom Cookies

  • Childish and Excitable sims have a chance to play an excited reaction after eating a cookie. If a sim eats two or more cookies in a row, the reaction will only (possibly) play after the first cookie. Reactions will not play again until the cookie moodlet times out or is removed.
  • This chance is tunable. You can tune it by opening the mod package and altering the _XML called NonaDriedFood.Buffs.BuffCookie.
  • Default chance for excited reaction from Childish and Excitable sims is 50%.

Special Information about Custom Raw Meat

  • By default, non-Vampires and non-Werewolves cannot eat Raw Meats. You can alter this by using the Optional tuning file attached in the downloads section.
  • All vegetarians get sick from eating raw meat.
  • Daredevil non-Vampire/non-Werewolves will get a special moodlet when eating Raw Meats. Requires the Optional tuning file to be placed in your Mods\Packages folder.

Who should use this mod?

  • Creators making custom food might be interested in this mod, as the custom food will function a bit better and will have more options.
  • Users who download custom food which uses this script, will need to download this script (unless otherwise specified by the creator).
  • Users who have downloaded custom food which does not use this script, can use my OBJK overrides so that their custom food uses this script.

How to Install:
1. Place the NonaEdibleFood_WITHCustomBuffs.package in your Mods\Packages folder, or wherever you keep your mods.
2. Make sure you have installed some custom food from ATS3, OBP or Parisian Sims! (see: Custom Edible Food Directory)
3. Download the OBJK Overrides available at my blog and place them in your Mods\Overrides folder.
4.Optional: Download NonaEdibleFood_RawMeatForAll_Tuning to allow all sims to eat custom raw meat.
5. (Optional Step) Tune the objects to your liking by editing the XMLs in the NonaEdibleFood_WITHCustomBuffs.package.
6. Before you start your game for the first time with this mod installed, delete the scriptcache.package found in Documents\Electronic Arts\The Sims 3

Note: This mod does work with ani’s Sell from Inventory mod. Food that uses this script will current only show up in “Food” registers when using ani’s Sell from Inventory mod.

Distribution policy: You may distribute this script with your objects, claim it as your own, upload it elsewhere, whatever you want. Howeverin order to avoid possible conflicts due to duplicate XMLs, I do recommend that you link here and ask people to download the mod separately.

Localization: This mod now requires translations. Currently, all localizations are in English unless otherwise stated. Before you translate my strings, please ensure you agree to my distribution policy above. Note: The mod currently contains English text for all non-English games. Unless translated, moodlets will appear in English, but you won’t see any strange or blank text.

Do you want to translate this mod? First, thanks so much for your interest! Second, please download the NonaEdibleFood_Strings_EN.zip in the Downloads section, and translate the strings in the text document. Save the translated document and re-upload as an attachment. This is the most convenient way for me to keep the package file updated.

This mod requires new translations for all languages!

– 4 November – Updated French translation
– 23 October – Added Japanese Translation
– 21 May – Added Dutch translation
– 14 May – Added French translation

Download: NonaEdibleFood_WITHCustomBuffs.zip

Download: NonaEdibleFood_RawMeatForAll_Tuning.zip

Download: Strings (for translation only)

Additional Credits:

This mod would not be possible without: Twallan (for his unprotect script), Peter Jones (for his unprotect program), Velocitygrass (for custom origins), and last but certainly not least, Buzzler, for all of his help, patience and kindness (not to mention his totally amazing logger and debug interactions).

Inge & Peter Jones for s3pe, everyone in the modding discussion forums at MTS, armiel for the Builder’s DIY Island, spladoum for encouraging me to post this. Also, credit is due to the creators of these lovely objects which inspired this mod, ATS Sandy (ATS3, the first!) and New One (One Billion Pixels). Without their awesome foods, my mod is useless 🙂

Lovely sim models by HystericalParoxysm (Nadya Crane) and SimSample (Hayleigh Honey).

May 1, 2012 - Posted by | Mods, Objects | , , , , , , , , , , ,

8 Comments »

  1. […] a mod user how to change the script class of object. This tutorial is intended for use with my Custom Food Script object mod (MTS). However, once you know how to change an object’s script class, you can apply this […]

    Pingback by Tutorial: How to Change the Script Class of an Object « Nona's Sims | May 7, 2012 | Reply

  2. […] You must have my Custom Food Script installed to use these […]

    Pingback by Already Edited OBJK Resources for Custom Food « Nona's Sims | May 11, 2012 | Reply

  3. […] Script mod: Script for Custom Food (removes Foul Food, Tunable) […]

    Pingback by Patch 1.34 Compatibility « Nona's Sims | June 5, 2012 | Reply

  4. I am trying out your edible foods script mods with the mentioned edible foods from ATS and OBP, also using Ani’s Shop From Inventory. It all works great! Your scripts are excellent! Just to confirm, the foods do only show up in ‘other’ registers (I am using the unnamed one that is used in the Pets Store) I have tried to use it with the Food Register, just to see what happens. No food shows up from the inventory to buy. Just out of interest, why is this?

    Comment by Desiree Simpson (DeeSim) | June 18, 2012 | Reply

    • Wow, I only just now saw this comment for the first time ever. Only five months late! I’m really sorry. Anyhow, I did fix that problem a while back so hopefully you’re not having it anymore.

      Comment by Nona | November 17, 2012 | Reply

  5. Updated!

    Comment by Nona | November 17, 2012 | Reply

  6. Ahaa, its pleasant dialogue regarding this paragraph here at this webpage, I
    have read all that, so now me also commenting here.

    Comment by Get More Information | May 1, 2013 | Reply

  7. Thanks , I have just been searching for information approximately this subject for ages and yours is the greatest I have found out till now.
    But, what about the bottom line? Are you positive about the supply?

    Comment by how do you treat ibs With constipation | December 12, 2016 | Reply


Leave a comment