|
Post by bamrd92 on Nov 22, 2017 2:12:28 GMT -5
I want to create a mod where if a Sim 'Changes Diaper" or "Bottle Feeds" an infant and/or toddler they are charged a certain amount of money. I have tried two different codes in two different XMLs (one with a fail loop and one without) but neither attempts were successful. Would anyone mind helping me get on the right track? Thanks in advance!
<V t="flat_fee" n="crafting_cost">
<T n="flat_fee">1</T>
</V
and
<V t="payment">
<U n="payment">
<T n="display_only">False</T>
<V t="amount" n="payment_cost">
<U n="amount">
<T n="amount">5</T>
</U>
</V>
</U>
</V>
XMLs:
E882D22F!00000000!00000000000032CC.baby_BottleFeed_Looping.InteractionTuning (fail loop) E882D22F!00000000!00000000000032D0.baby_ChangeDiaper.InteractionTuning (no fail loop)
|
|
|
Post by Basemental on Nov 22, 2017 2:17:35 GMT -5
In your interaction, find your outcomes section. Add this to the basic extras of your outcomes.
<V t="payment"> <U n="payment"> <T n="display_only">False</T> <V t="literal" n="payment"> <U n="literal"> <V t="amount" n="payment_cost"> <U n="amount"> <T n="amount">5</T> </U> </V> </U> </V> </U> </V>
|
|
|
Post by bamrd92 on Nov 22, 2017 4:21:45 GMT -5
Thank you so much! I had the right code, not the right placement in file. The mod works successfully now. You're the absolute best!
|
|
|
Post by bamrd92 on Nov 22, 2017 18:06:52 GMT -5
So, after modding the Sim infant files, they work great! However, the toddler files are causing me trouble. They are "Action Tuning" as opposed to the "Interaction Tuning" files for the infants (and I can't seem to find any non-loot files related to Toddler Diaper Changes besides "clean up puddles" and "ask for change"). There is no "basic extras" or "outcomes" labeling. I've tried adding the modified code in a couple different places (the beginning, the end, somewhere somewhat logical in the middle) but so far there is no change in gameplay. I'm guessing there's something I'm missing code-wise since they are "Action Tuning" files and I've mostly played around with the "Interaction Tuning" files, or I'm using the wrong files completely. Can someone please help?
XMLs:
0C772E27!00000000!0000000000024EB0.loot_Statistic_Toddler_Diaper_SuccessfulChange.ActionTuning 0C772E27!00000000!0000000000024EB1.loot_Statistic_Toddler_Diaper_FailedChange.ActionTuning
|
|
|
Post by Basemental on Nov 22, 2017 18:17:15 GMT -5
Open the file called si_Touching_Toddler_ChangeDiaper instead. These Actionloots are part of the outcome to that Interaction. This is a dual outcome, meaning you have two possible outcomes. One failure and one successful outcome.
Remember to put the payment code into the basic extras of both of the possible outcomes.
|
|
|
Post by bamrd92 on Nov 22, 2017 19:17:06 GMT -5
That did the trick! I was tearing my hair out trying to figure out which file I needed and whether I just hadn't put the code in the right place in the file. Thanks again!
|
|
manufb
New Member
Sims lover since I can remember, now trying to slowly learn how to make mods!
Posts: 2
|
Post by manufb on Aug 12, 2020 7:11:22 GMT -5
Hey guys,
I know this is was solved already but I've been trying to make the same mod and it doesn't do the job. I've tried adding the same code, but I can't find the basic extras in the outcomes. I haven't been able to find outcomes actually, and when placing the code in the 'basic_extras' part, the option to change diaper disappears, unless I put it at the beginning of the basic extras, which then it will re-appear in the game but when I try to make a sim change the diaper they open their arms and stop, as if I did a reset... Any idea if maybe the code has been changed with all the updates of the game?
Thanks beforehand!
|
|