- Site Map >
- Modding and Creation >
- Sims 3 Creation >
- Modding Discussion >
- Can we change the social data test function?
- Site Map >
- Modding and Creation >
- Sims 3 Creation >
- Modding Discussion >
- Can we change the social data test function?
Replies: 2 (Who?), Viewed: 523 times.
#1
21st May 2020 at 7:20 AM
Posts: 1,500
Thanks: 4283 in 41 Posts
Can we change the social data test function?
So you know the social data files in gameplaydata.package ? Some of them have a proc test key. Eg. ProcTest key="TestAccuseOfCheating" Here TestAccuseOfCheating is a method inside SocialTest Class. I have been wondering if it is possible to change the method to something else in a class created by a script mod.Any idea if this is possible?
Advertisement
#2
21st May 2020 at 9:34 AM
Posts: 3,860
Thanks: 8546 in 67 Posts
Hiya!
Depends on what you want to change from the looks of it. Because it returns a function that checks the relationships of said sims and then completes the test.
So when you say "Change" are we talking about overriding in such a way where the 'old' code can no longer be used by the game and should always use yours?
I think i'm a bit confused as to what you're trying to do here
Depends on what you want to change from the looks of it. Because it returns a function that checks the relationships of said sims and then completes the test.
So when you say "Change" are we talking about overriding in such a way where the 'old' code can no longer be used by the game and should always use yours?
I think i'm a bit confused as to what you're trying to do here
#3
21st May 2020 at 2:11 PM
Posts: 1,500
Thanks: 4283 in 41 Posts
Quote: Originally posted by Lyralei
Hiya! Depends on what you want to change from the looks of it. Because it returns a function that checks the relationships of said sims and then completes the test. So when you say "Change" are we talking about overriding in such a way where the 'old' code can no longer be used by the game and should always use yours? I think i'm a bit confused as to what you're trying to do here |
Oh no the ProcTest key="TestAccuseOfCheating" is not a relationship(LTR) checking function. This function tests for if a Spouse cheated I believe. In case of vampire bite social interaction <ProcTest key="TestVampireDrink" /> checks for if the Sim has the Weakened moodlet or is pregnant or is a genie. These functions are in SocialTest.CS .
Code:
static bool TestVampire(...) { ... OccultVampire.CanSimProvidePlasma(); ... }
I wonder if I can create a method in a Script mod and then add that method in the Social Data somehow like<ProcTest key="TestCustom"> .
Who Posted
|