If you're using plain text mode or a getter black, you can reference global variables. Leaders are stored in variables S.Madam, S.DJ, and so on, by slave IDs, and empty role is a null.Could someone help me? I'm trying to set up a rule with a complicated condition... Put simply:
If (person) is in (leader role), then rule always applies.
If (leader role) is empty, then rule always applies.
If (leader role) is not empty, then rule never applies.
I cannot figure out how to detect whether the role is empty or not. The only entity the rule condition seems to look at is the slave currently under consideration, and nobody else.
I tried to use this in multiple ways and modes and the game kept spitting out: Condition has errors: true is not a function. Ternaries conditions accepts only booleans or numbers. Condition group only accepts boolean and number conditions.If you're using plain text mode or a getter black, you can reference global variables. Leaders are stored in variables S.Madam, S.DJ, and so on, by slave IDs, and empty role is a null.
The condition you need is "!S.Madam || c.slave.assignment == Job.MADAM" (or whatever other leader role you need), though I think in block mode you can check the latter part with a special block instead.
How did you write it? This apparently works:Didn't seem to matter how I tried to use it, it just would not take it.
context => ((slave) => (!S.Madam || slave.assignment === Job.MADAM))(context.slave)
Yeesh, my coding knowledge is so out-of-date it's not funny anymore.How did you write it? This apparently works:
Code:context => ((slave) => (!S.Madam || slave.assignment === Job.MADAM))(context.slave)
Plain text conditions have special format. "context =>" goes in the beginning, and slave object has to be referenced as "context.slave". You can use any name/string instead of "context" as long as it's consistent within that rule, I just use "c" in mine.I have no idea what any of the rest of that means.
c => !S.Madam || c.slave.assignment === Job.MADAM
Update...Could someone help me? I'm trying to set up a rule with a complicated condition... Put simply:
If (person) is in (leader role), then rule always applies.
If (leader role) is empty, then rule always applies.
If (leader role) is not empty, then rule never applies.
I cannot figure out how to detect whether the role is empty or not. The only entity the rule condition seems to look at is the slave currently under consideration, and nobody else.
context => ((slave) => (!S.Teacher || slave.assignment === Job.TEACHER))(context.slave)
I think thatUpdate...
For some reason, even though the code you guys suggested works perfectly fine for most leadership jobs, it's not working correctly for the Schoolteacher role. (despite working just fine for Nurse, Farmer, Milkmaid, and Attendant jobs)
This is the condition I'm using there, basically identical to the others save for the job name. But now that I have two candidates for the job, it's not preventing the alternate trying to be a teacher and failing because the job's already filled. I think it's the 'Job.TEACHER' portion that might be incorrect, but none of the synonyms I've tried worked either. Even looked at the variables in Debug mode, and the job is never referred to anything other than 'Teacher'. Any ideas?Code:context => ((slave) => (!S.Teacher || slave.assignment === Job.TEACHER))(context.slave)
Job.TEACHER
is correct, but you should use S.Schoolteacher
instead of S.Teacher
.Are you sure you got the extremely specific version of python you were told to get and it is the only / first version installed on your computer? torch is version dependent so it throws a fit when the script is trying to install a specific version of torch to a nonmatching version of python.I have trouble installing the AI generator. Python, git and stablediffusion go through but after I doubleclick webui-user.bat it tries to d/l something 'torch' - and it fails every time without fail. I get red messages and an error code: 2 ?
Does anybody know what seems to be my boggle?
The Python version is 3.10.6. I believe that is the one they asked for?Are you sure you got the extremely specific version of python you were told to get and it is the only / first version installed on your computer? torch is version dependent so it throws a fit when the script is trying to install a specific version of torch to a nonmatching version of python.
That is correct; how much memory does your system have? TheThe Python version is 3.10.6. I believe that is the one they asked for?
View attachment 3936584
View attachment 3936585
Here are two pictures of the error message I deem interesting. It appears I have a decryption problem with SSL? This is running in a sandbox. Maybe it needs some sort of special permission?
If I have understood your question correctly, I'd make two rules.For example I made a rule to dress all non obedient slaves with a gag + porcelain mask to make the obedient faster, but now I need a rule to remove it when they are > 20 devotion, but I don't want them to remove it if they are not submissive or if they are not nympho.
Always
c => (c.slave.devotion < 21 || c.slave.fetish !== "submissive" || c.slave.energy < 96)
The image generation integration is more about generating images on the fly for slaves and less about using prepared images you've already made. If you want to troubleshoot via DM or elsewhere let me know.I tried to figure out the AI thing, but I got frustrated and quit when I couldn't even get my own already prepared images onto the game.