Shower tutorialA Sims 1 hacking tutorial for showers, part 5 - Adding comfort
|
This is the fifth part of the shower tutorial. This is about how to make the shower give comfort. The shower I'm working on here is the one I just made "Hygiene 10" in part 4. So open up your file and open the BHAV's, if it's not already open (if you need help on that check here). Hm, I get a feeling that I am repeating myself... |
![]() |
Since we know where the Hygiene is let's go there, that's where the Comfort should be added. Open up BHAV 4104 "shower core" This time we must add a line of code to this BHAV and make the file read it. The line we want is similar to line 8, Motive Change (my motives Hygiene += Constant 4098:1 per hr, stop at Constant 4098:2) ,so right click on that one and choose Duplicate. (A) A copy of the line is added at the end of the list. |
![]() |
Now this line has to be changed to give Comfort. Click on the line and look at the numbers to the right. If you change Parameter 2 to 6 this line will give comfort instead of hygiene.(B) Change 8 to 6. But that will make the shower give just as much comfort as it gives hygiene, a bit too much comfort for being a shower. To change that we must make it use new Constants. And first we have to make them. So click OK here and open BCON 4098. |
![]() ![]() |
To make new constants just right click somewhere in that window and chose Add.(C) A new line will be added at the end of the list. Add one more and give them the values you want Comfort to have. I picked for this file to give it values that are a bit lower than the value for hygiene was before it was changed, hoping that this would be around Comfort 3 -4.(D) |
OK to this and back to Shower core. Now the the comfort line has to be changed so that it uses the new constants. If you change Parameters 3 and 4 to the correct numbers the new ones will be used.(E) The new line is ready, but it will not be used if we don't change how the jumps are made. Click on the Hygiene line and make it jump to the new line.(F) If something goes wrong in this line it gives an error. You can leave that. |
|
Now this shower will give Comfort to a Sim that takes a shower. You can duplicate the line that gives comfort and make the file give other things as well. 5 give energy, 7 give hunger, 9 gives bladder, 14 gives social, 15 gives fun. Make new constants, make the jumps so that the file uses the new lines , start your game and see what happens. And don't forget to open the OBJD resource to change the catalog information for your file.
Good luck hacking
Hedda |