Home Artists Posts Import Register

Content

This is a bit more advanced and it seems also that it's a bit more confusing. How does the test autonomous work?

This is used when you want to restrict sims from picking an interaction autonomously.

In this test, for example, I wanted to restrict the Chess_Social interaction autonomy only to sims with a certain trait OR with a certain skill level:

Now, remember the OR, because this one... is different:

This one restrict the interaction only to sims with a certain trait AND a certain skill level... so what's different? The structure of the test is this:

- Between line 754 and line 784 is the main test

- 756 and 769 is test 1

- 770 and 783 is test 2

This is read by the game as an operation with the logic operator OR

So the test pass if Test 1 OR Test 2 are true. The test pass also if both are true. The test fails only when both of this are false.

In this one, the two tests are contained inside the same <L> tag, and all of it is contained inside the main <L> tag. This is an AND operation:

The test pass if both are true, any other case is going to give out a false.

So, you can put two tests, where both of test have an AND operation divided by an OR operation inside the main autonomous test tag, in other word I could join the two tests (it wouldn't make many sense but yeah) just remember that where they are divided in two different Lists (<L>) the game makes an OR operation.

True AND True = True   

True AND False = False

False AND False = False

True OR True = True   

True OR False = True

False OR False = False


Comments

Anonymous

Love this. Would love to learn more.