Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Inventor
Original Poster
#1 Old 9th Dec 2020 at 8:30 PM Last edited by echoweaver : 9th Dec 2020 at 8:52 PM.
Default [Resolved] Setting a custom interaction tuning to match an existing tuning
OK, maybe I'm thinking about this wrong, but here it is:

I've created an Eat Fish interaction to replace the Eat Prey interaction on caught fish. This lets me mess around with the bonus effects of one of the cat Fishing skill achievements as well as skip the Hunting reinforcement that pets get for eating prey. (I'd like this to be a Fishing reinforcement, but I don't have a working trait and might not manage one.)

I'd like this new interaction to work with More Filling Minor Pet Snacks, which is just an ITUN For PetEatPrey, so that players could set the hunger values all together unless they had some reason they didn't want to. Default hunger value for prey is absurdly low and doesn't work if you want it to be a major food source.

I happened upon the idea of checking to see if a tuning existed for the new EWCatEatFish interaction, and if there wasn't one, just setting the values to match PetEatPrey. I thought that would entail something along the lines of:

Code:
			
InteractionTuning tuning = AutonomyTuning.GetTuning("Sims3.Gameplay.ObjectComponents.CatHuntingComponent.PetEatPrey+Definition", "Sims3.Gameplay.Interfaces.ICatPrey");


However, this appears to return null. Since the GetTuning method takes strings rather than actual classes, I don't even have a great idea whether I'm trying the right thing with slightly wrong parameters or trying to do entirely the wrong thing.

Does anyone have any insight on what I SHOULD be doing here, or does this make any sense?

Echo Weaver's Simblr: http://echoweaver.tumblr.com/
A portrait in stubbornness - Playing the same legacy since 2009
Sample a Brave Legacy: http://sims3sample.illation.net
Advertisement
Inventor
Original Poster
#2 Old 9th Dec 2020 at 8:53 PM
Derp. It was totally a bad parameter. It should be:

Code:
Sims3.Gameplay.ObjectComponents.CatHuntingComponent+PetEatPrey+Definition


With the "+" before AND after PetEatPrey.

Doot de doo.

Echo Weaver's Simblr: http://echoweaver.tumblr.com/
A portrait in stubbornness - Playing the same legacy since 2009
Sample a Brave Legacy: http://sims3sample.illation.net
Back to top