Reduced Pregnancy Hack v1.0 for TS2NL v1.0p1
Made by: syberspunk
This hack reduces the chance of pregnancy by HALF the regular % for "Try for Baby" interaction.
NOTE: If you use this hack, it ALWAYS reduces the chance by HALF of whatever % chance is passed to the "Pregnant - Try to Get Pregnant" BHAV. Essentially this is a sligth rewriting of kzlyh1947's random 15% chance pregnancy hack. The only difference is that the % is not hardcoded into that BHAV. In other words, for those of you who use the RanPreg1_0xEC17C4.package hack, pregnancy will ALWAYS have a 15% chance. If you used sweatm's older version of Risky Woohoo together with the random 15% chance (which is what I had been doing but did not realize they conflicted until I actually looked at the code myself), theoretically, regardless of whatever % values were set in Risky Woohoo, it would always use 15% (or whatever value you used, if you changed that value yourself). This is because that value was hardcoded into the random 15% chance pregnancy hack. Basically I changed it so it simply reduces the value of whatever gets passed into that BHAV by half, instead of always using that value.
:!!: Compatibility Notice: If you are using TwoJeffs' Preg for All Genders mod, you MUST use the zzreducedchancepreghackPreg4All version!
Instructions on how to change the value of reduction using SimPE
1. Open the hack using SimPE
2. In the resource window, click on the single line:
"Behavior Function: Pregnancy - Try To Get Pregnant"
3. Click on the "Plugin" view tab (should be already visible with default layout)
4. In the "Behaviour Editor" window, click on line 1:
[prim 0x0002] Expression (Param 0x0002 /= Literal 0x0002) true: 2 false: FFFD
It should highlight as blue.
5. In the "Instruction Settings" box, look at the values for the Operands field.
The top row is as follows:
02 00 02 00 00 07 09 07
^^
NOTE: ONLY change the 3rd box!!! This is the value that the % change will be reduced (DIVIDED) by. DO NOT USE 0!!! This will cause ERRORS!
A valid value can be anything from 1 to 100 decimal (01-64 Hex). You can use a simple calculator (even the Windows XP calculator) to convert a decimal value to its HEX value.
The Operands field ONLY takes HEX values!!! Keep this in mind as 64 does NOT mean 64, it means 100!!!
If you use 100 or greater, this greatly reduces the chances of getting pregnant, essentially setting it to 0 chance (i.e. your sims will most likely NEVER get pregnant)!
The greater the number you use, your Sims will have a much more REDUCED or LOWER chance of getting pregnant!
6. Once you are satisfied with your choice, click on the Commit File button.
7. Click on the "Save" button OR Go to "File" in the menu, and then "Save" to OVERWRITE the hack.
Alternatively, you can choose to "Save As" and name the file whatever you want
(e.g. YOURNAME_reducedchancepreghack.package").
However, you should MOVE or BACKUP the original file somewhere else on your computer.
DO NOT keep BOTH files in your Downloads directory!!!
(It is most likely harmless, but you may not observe expected behaviour - i.e. your changes may not take effect).