Forum Discussion
6 Replies
Replies have been turned off for this discussion
- SimGuruEugi10 years ago
EA Staff (Retired)
You would have to define your own interaction class, and have your tuning point to it.
Alternatively, you could add a new type of test and also link it via the tuning. - Ok, so no current ready "hook" for that?
- SimGuruEugi10 years ago
EA Staff (Retired)
Correct. There is no way to associate arbitrary Python code to a tunable test. - > @SimGuruEugi said:
> You would have to define your own interaction class, and have your tuning point to it.
> Alternatively, you could add a new type of test and also link it via the tuning.
My understanding is all tests available in tunable interactions are contained within TunableTestVariant. I am not seeing an obvious way to allow a custom test to be added, recognized and work. Could you provide an example, or link to one?
As an example I was looking to see if any of the tests would simply return the true/false state of a global variable, contained within a module. - SimGuruEugi8 years ago
EA Staff (Retired)
It would not be a test in TunableTestVariant. You would need a script mod with a new Interaction class that implements its own version of the test() method. - > @SimGuruEugi said:
> It would not be a test in TunableTestVariant. You would need a script mod with a new Interaction class that implements its own version of the test() method.
So you would have to inherit an instance class, to implement a custom test()? Would have thought there would be an option to simply call a static function by name, and return true/false. At least I know where I need to look, thanks.
About The Sims 4 Mods & Custom Content
Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.15,396 PostsLatest Activity: 29 minutes ago
Community Highlights
Recent Discussions
- 29 minutes ago
- 11 hours ago
- 19 hours ago