#1

25th Sep 2018 at 8:32 PM
Last edited by Miss Puff : 25th Sep 2018 at
10:23 PM.
Posts: 264
Thanks: 2117 in 12 Posts
9 Achievements
A (Hopefully) Quick Question about Autonmous Tests
I've been playing around with adding some more complicated tests for whether or not sims will do interactions autonomously, and I think I've figured out how it works, but I'm not 100% sure, so I just wanted some confirmation of whether I'm doing it right.
So, basically, it seems the syntax is like this:
<L n="test_autonomous">
<L>
<!-- Test 1 -->
</L>
<L>
<!-- Test 2 -->
</L>
<L>
<!-- Test 3 -->
</L>
</L>
And I'm guessing how it works is that if Test 1 succeeds, the sim can do the action, and it stops checking. If Test 1 fails, then it checks Test 2. If Test 2 succeeds it stops checking, if it fails, Test 3 is checked, and so on until it either finds one that succeeds or they all fail and the sim can't do the action autonomously.
I'm asking because I'm trying to mod the Make a Mess interaction that (among other things) only allows sims with very negative responsibility values to do it autonomously, but still won't allow them to do it if the cooldown buff for the interaction is still active. Will the following xml code do what I'm trying to do?
Code:
<L n="test_autonomous">
<L>
<V t="buff">
<U n="buff">
<L n="blacklist">
<T>168756<!--Buff: buffs_MakeAMess_Cooldown--></T>
</L>
</U>
</V>
</L>
<L>
<V t="buff">
<U n="buff">
<V n="whitelist" t="enabled">
<L n="enabled">
<T>168270<!--Buff: buff_LifeSkills_Autonomy_Responsibility_VeryNegative--></T>
</L>
</V>
</U>
</V>
</L>
<L>
Sorry if this seems obvious, but I've been messing around with this for awhile with a lot of trial and error to get to this point, and I just want to know if I've actually got it figured out now, or if I'm still off on my understanding somewhere.
EDIT:
The other option I'm thinking, is that if ANY of the tests are true they can do it autonomously, in which case I don't know if there's a way to do what I'm trying to do.