More Awesome Than You!

TS3/TSM: The Pudding => Pudding Factory => Topic started by: Rothchild on 2009 June 22, 13:31:28



Title: Child Only Sprinkler Mod
Post by: Rothchild on 2009 June 22, 13:31:28
I saw several complaints about adults using the sprinkler to much in the AWESOMEMOD! requests thread, so I spent a few seconds and made this XML tweak.  Only children get the 'Play with Sprinkler' option.


Title: Re: Child Only Sprinkler Mod
Post by: Jelenedra on 2009 June 22, 13:44:13
Is there a way to add adults with a "childish" trait?


Title: Re: Child Only Sprinkler Mod
Post by: Rothchild on 2009 June 22, 14:09:52
I was hoping that any item that had 'Age Children="True"' would let those with the childish trait use them, but it didn't work like that.  When I looked at the toy box and doll house, they were marked as available for all ages, and I couldn't see anything limiting them to child/childish.  I think 'child's toy' might be a flag on the actual object and not in the XML.


Title: Re: Child Only Sprinkler Mod
Post by: wendylady on 2009 June 22, 15:01:07
I would also say Sims with love outdoor trait would use em. I know several grown men who will happy run and play in them on a hot day, add a football and you have your own muddy field to play in.


Title: Re: Child Only Sprinkler Mod
Post by: Hanlon Razor on 2009 June 22, 15:55:15
The default setting is for Childish and Loves Outdoors to want it more. But if you ban all adults, this behavior is removed.

Look under the Output section near the end.

Code:
<?xml version="1.0"?>
<base>
<Interaction name="Sims3.Gameplay.Objects.Environment.Sprinkler+PlayWithSprinkler+Definition" />
<Object name="Sims3.Gameplay.Objects.Environment.Sprinkler" />
<Current_Tuning>
<Disallow DisallowAutonomous="False" DisallowUserDirected="False" DisallowPlayerSim="False" />
<BaseAvailability>
<Age Children="True" Adults="True" Toddlers="False" Teens="True" Elders="True" />
<MotiveThreshold MotiveThresholdType="None" MotiveThresholdValue="0" MotiveBelowCheck="False" />
<MoodThreshold MoodThresholdType="None" MoodThresholdValue="0" />
<SkillThreshold SkillThresholdType="None" SkillThresholdValue="0" />
<ExcludingTrait type="HatesOutdoors" />
<CareerThreshold CareerThresholdType="Undefined" CareerThresholdValue="0" IncludePastCareers="False" />
<Lot AllowNonGreetedSimsIfObjectOutside="False" AllowNonGreetedSimsIfObjectOutsideUserDirected="True" AllowGreetedSims="True" AllowOnCommunityLots="True" AllowOnAllLots="False" />
<Misc DisallowedIfPregnant="False" DisallowedFromInventory="False" />
</BaseAvailability>
<Check type="All" value="0" />
<Tradeoff name="PlayWithSprinkler">
<Localization autoGenerate="True" />
<Time value="1" addRoute="True" />
<Exit funExit="True" stressExit="False" interruptible="False" />
<RouteLeadIn allowed="True" />
<AskJoinInteraction joinable="True" />
<ScoringFunction alwaysChooseBest="False" name="" specificCommodity="None" />
<ActionTopic name="" ActionTopicUnavailableAfterActionFinishes="False" />
<Output>
<Change type="Fun" advertised="25" locked="False" actual="40" updateType="ContinuousFlow" timeDependsOn="False" updateEvenOnFailure="False" updateAboveAndBelowZero="Either" />
<Change type="TraitChildish" advertised="200" locked="True" actual="200" updateType="ContinuousFlow" timeDependsOn="False" updateEvenOnFailure="True" updateAboveAndBelowZero="Either" />
<Change type="TraitLovesTheOutdoors" advertised="200" locked="True" actual="200" updateType="ContinuousFlow" timeDependsOn="False" updateEvenOnFailure="True" updateAboveAndBelowZero="Either" />
</Output>
</Tradeoff>
<Notes Notes="" />
</Current_Tuning>
</base>


Title: Re: Child Only Sprinkler Mod
Post by: Rothchild on 2009 June 22, 16:14:47
I could set it to require the trait Childish or Loves the Outdoors, but that would also effect children playing with it.  If there is a 'Child's Toy' flag on the object and I was able to set it, then non-childish adults couldn't turn it on or off.  Since the complaints were about adults playing with it to much, I figured disabling it for all but children was the best solution.  Personally, I'm fine with the default sprinkler, but I always micro-manage my sims so they haven't touched it.


Title: Re: Child Only Sprinkler Mod
Post by: J. M. Pescado on 2009 June 22, 16:37:29
I have a similar thing I made, but it instead targets visitors, because it is NOT APPROPRIATE to take off your clothes at SOMEONE ELSE'S HOUSE and run through their sprinkler!


Title: Re: Child Only Sprinkler Mod
Post by: wendylady on 2009 June 22, 16:49:29
I have a similar thing I made, but it instead targets visitors, because it is NOT APPROPRIATE to take off your clothes at SOMEONE ELSE'S HOUSE and run through their sprinkler!

oooo... pass that one on to the rest of us please. As that my only issue with it is random unknowns come and play in my gardens.


Title: Re: Child Only Sprinkler Mod
Post by: J. M. Pescado on 2009 June 22, 16:51:31
Fat Gwilly People haven't asked.


Title: Re: Child Only Sprinkler Mod
Post by: imyourboy on 2009 June 22, 19:35:53
What DBPF File editor are people using?


Title: Re: Child Only Sprinkler Mod
Post by: blackcat on 2009 June 22, 19:48:02
I use one from Simlogical. This page was very helpful : http://simlogical.com/slforum/index.php?topic=2762 (http://simlogical.com/slforum/index.php?topic=2762)

EDIT: Here are:
NoAutonomousSprinkler -no one can use autonomously,
NoVisitorsSprinkler - active household can still use autonomously,
ActiveChildrenOnlySprinkler - only children of the active household can use autonomously.

In first two cases any sim can be directed to use a sprinkler and be asked to join to play without any problem. With ActiveChildrenOnly mod non active children can't use autonomously, but can be asked to join, while other ages can't use at all. Use only one!

This is my first attempt, so if there is anything wrong or not working as it should, please let me know. It did seem to be fairly easy and it worked flawlessly in my game, so I don't expect any problems.