|Search this Thread|
|28th Oct 2018, 5:14 AM||Associating buffs with already existing objects #1|
Basically I'm trying to find out how to take an object and give it the chance of having a buff applied after use. I like to play homeless/apocalyptic scenarios, and wish I could have my sims bathe in tub that gave the equivalent of the 'cold shower' buff, to simulate not having hot water. I don't necessarily want to create a brand new buff for that; I'd be fine just using the pre-existing 'cold shower' one.
I've used to look through the files of both custom content objects and objects already in the game, and I can't find any reference linking them to the buff files. All I've really found is that the 'cold shower' buff is associated with 'cheap' showers, but I don't know what reference point the game uses to determine which objects that applies to. My modding experience doesn't go much past xml tuning and string table editing, so this may be a bit over my head, but I feel like if someone can point me in the right direction I might be able to figure it out eventually. Thanks in advance for any tips :D
|28th Oct 2018, 3:48 PM||#2|
unfortunately the way the buffs are assigned in this case is in the C# Script where Cheap Shower and Basic Shower override the Chance to apply the ColdShower Buff. So to my knowledge there is no way without scripting (althoug scripting this would be quite easy, although setting all the c# stuff up is a bit of work)
What are your plans have you cloned objects to use in your world or do you use the default Game Objects ? If you have your own objects cloned i could write the script for you and or show yo how to do that.
|28th Oct 2018, 9:15 PM||#3|
Right now my favorite tub to use is lisen's budget tub (http://modthesims.info/download.php?t=418119) since it just kind of looks like a plain wash basin. If I could clone that to have a cold shower/bath buff, that would be ideal. And thanks for the offer - I'm very interested in learning how to do the scripting myself!
|28th Oct 2018, 10:59 PM||#4|
alright i have looked at the shower. the good thing about that is, that you can change the Chance to receive a cold shower via xml tuning its the Sims3.Gameplay.ActorSystems.BuffColdShower.kChance . (You could also set that value ingame with the nraas retuner mod)
I must admit that i somehow forgot, that bathing dont give you the cold SHOWER moodlet regardles of the tub. So its still doable for the tub.
I will create a script and tell you how that works/ how to do that on your own, if you are interested.
|29th Oct 2018, 2:18 AM||#5|
I do have the nraas retuner mod, so I'll play around with that. As for the tub part, that's what I'm really interested in, so I'd be grateful for any assistance with that
|2nd Nov 2018, 8:54 PM||#6|
So im back ! ^^
Unfortunately this was way mre complicated than i hoped for but i managed to create a hackish solution for the Bathtub.
I have attached the dll you need to include into your bathtub.
You can include the dll by following the steps under Adding The Script To The Package Object Modding Tutorial
but instead of KolipokiMod_TalkingTeddy.dll you need to type in Sims3.Gameplay.Objects.Plumbing.Mimics.Battery.BathtubCustomCold
if you need more help id be glad to help
|5th Nov 2018, 8:14 PM||#7|
This is great, thanks! Can't wait to try it out!
|24th Nov 2018, 3:38 PM||#8|
Here is the ready to go package be aware that i just made the script anything else belongs to the original author this upload just to show how to edit object scripts.
Heres the process for anyone whos interested in how to change the script of an object with an custom script in an dll
1. open the package in 2. click resource->add
3. select S3SA 0x073FAA07 under type
4. type Sims3.Gameplay.Objects.Plumbing.Mimics.Battery.BathtubCustomCold under name and click on FNV64 ( should result in instance 0x57EBEE0F7BFCD5D2) (or your script namespace if you want to do something else)
5. type 0 under group
6. right click on the new enty with the tag S3SA->Import DLL->select the dll i have uploaded->click ok
7. right click on the objk->edit objk->script sting enter "Sims3.Gameplay.Objects.Plumbing.Mimics.Battery.BathtubCustomCold" and save (or use your custom dll)
8. save your package file