Home Artists Posts Import Register

Content

Been a while since I made a tutorial. I already did a tutorial about this, but the stuff can be confusing and that was only for the Test Autonomous. This is, more in general, about tests. If you try to do a mod, you'll find tests everywhere. I have two opened here that I know quite well:

They're quite different, and to show you how much, I'll collapse everything is inside the main <L n="test"> list in both:

GP08 - Teach Magic TestSet:

GP04 - Vampire Can Drink TestSet:

So, what's different?

The Vampire Can Drink TestSet is a singular list of ANDs, meaning that the sims involved in the interaction that calls this test need to meet all requirements in order to pass it and for the interaction to run. Here is the reading of the Vampire Can Drink TestSet:

The Teach Spell TestSet is 3 lists of ANDs, separated by an OR. Meaning that the sims must pass everything inside one of the three lists, but it's not required that they pass all of the three lists of OR, passing what's inside one of the three <L> is enough. Here is the reading of the Teach Spell TestSet:

You'll find tests everywhere, as I said, for example, in the interactions, two important ones are at the bottom. The Autonomous test and the Global test:

The autonomous test decides who can run this interaction autonomously, and can be, often is, a list of OR:

It's not required for a sim to pass the whole test, one or the two OR in this case, is enough.

The test global decides if the interaction is or is not available at all for a sim, and as far as I can tell, is always a list of ANDs:

Meaning that the sim must pass the whole global test to have the interaction appear at all.

Comments

Anonymous

Can you have a test going like this: x AND (y1 OR y2) I felt it might be : L main start V for x start test V for x stop L for y:s start L for y1 start V for y1 start test V for y1 stop L for y1 stop L for y2 start V for y2 start test V for y2 stop L for y2 stop L for y:s stop L main stop

zer0_Mods_

mh... I think if you write it like this only the first variable will be considered... you need the first variable into a list too.