Posts: 145
Thanks: 328 in 8 Posts
4 Achievements
3t2 Traits Modding Help
Hi! I make lots of trait mods. Vegetarian has been on my mind! I haven't really found any decent mods for this trait except for Bee Stew's Food Overhaul, but I knew there was a much simpler way to accomplish the effects for this trait.
I knew I needed to find a "Eat Food" global BHAV and edit it to check if the meal has meat. If it does, give the vegetarian Sim food poisoning. (I will probably change this to do a random chance instead)
The code for giving a Sim food poisoning was found in the group for Chinese food. Apparently, Sims do have a small chance of getting food poisoning from the Chinese food!
I can confirm that this code works because I used it in another traits mod to get Sims sick!
Anyway, I am trying to edit CBOY's Talk Less Eat More, which contains "
Eat-Loop" which is the global BHAV I decided to try and edit.
Last time I posted you guys were super helpful and my mistake was SUPER simple, so I am trying again!
Can't get this code to work. As you can see, it checks the Food GUID (Test Object Type) and then if the food contains meat, the Sim gets food poisoning bc the code gets sent to a private BHAV I created with a non-conflicting Instance Number in FoodDishGlobals.
Anyone know what I am doing wrong?
Here is the file.
https://simfileshare.net/folder/266704/
Here are two pics, the first of Eat-Loop, and the second of the food poisoning bhav
https://ibb.co/cdpjKny
https://ibb.co/ycrJFG9V
Thanks if you can help!
Didn't like this world so I built my own - yourSims2guru