|
Post by flauschtrud on Feb 17, 2022 16:15:03 GMT -5
Hello modders!
I am trying to tune an interaction and I'm wondering if it is possible to apply a test ONLY IF another test applies...?
A random toy example from E882D22F!00000000!000000000000353D.mirror_MakeSillyFace.InteractionTuning:
<L n="test_autonomous">
<L>
<V t="buff">
<U n="buff">
<L n="blacklist">
<T>24193<!--buff_Mirror_MadeSillyFace--></T>
</L>
</U>
</V>
</L>
</L> Let's say I would want to still blacklist the buff_Mirror_MadeSillyFace but ONLY IF the sim has NOT the trait childish (or any other possible test).
I'm sorry if this is a stupid question... It's my first day of modding and I tried various ways to nest or combine the two tests in the XML, but nothing was successful so far.
Thank you!
|
|
|
Post by flauschtrud on Feb 18, 2022 7:20:40 GMT -5
I found a solution!
I continued to dig around the extracted resources and found 7DF2169C!00000000!0000000000025A57.testSetInstance_Angelic_ThrowTantrum.SnippetTuning, which basically does the things that I want: an action is blacklisted, but it is whitelisted under certain conditions.
<?xml version="1.0" encoding="utf-8"?> <I c="TestSetInstance" i="snippet" m="event_testing.tests" n="testSetInstance_Angelic_ThrowTantrum" s="154199"> <L n="test"> <L> <V t="trait"> <U n="trait"> <L n="whitelist_traits"> <T>140740<!--trait_Toddler_Angelic--></T> </L> </U> </V> <V t="buff"> <U n="buff"> <V n="tooltip" t="enabled"> <T n="enabled">0xB431FBD3<!--Angelic Toddlers can only Throw a Tantrum if they are Very Angry.--></T> </V> <V n="whitelist" t="enabled"> <L n="enabled"> <T>12840<!--MoodBuff_Hidden_Enraged--></T> <T>12827<!--MoodBuff_Hidden_Furious--></T> </L> </V> </U> </V> </L> <L> <V t="trait"> <U n="trait"> <L n="blacklist_traits"> <T>140740<!--trait_Toddler_Angelic--></T> </L> </U> </V> </L> </L> </I>
I copied the structure of this file and changed the tests for my own. I initially tried it without a proper TestSetInstance, but it did only work after I outsourced the tests.
|
|