What I want is to be able to control how often variable A and B changes. If I condition B to change when A changes, I can't stop one from changing independently from the other.
If I create a switch (which I think would cause a loop, but I'm not sure) I could end messing it up with a lot of ons/offs.
The reason for this is:
Every day (var A) a new material demand (var B ) is available. There would be 25 different materials (var 1 ... 25). I want to be able to manipulate how often some may change and others don't without making lots of event commands. For the proof of concept of the game, it will only have 7 days and 10 materials, so I can do a big "if A == 1 else - if A == 2 .... if A == 7" But the idea of the game is being able to have a lot of days. Maybe material 1 and 2 have a higher demand on a Tuesday, maybe you have done something that will decrease demand for 13... And if you are on quest to gather 4 and 5, I want this demand to be +/- less frozen.
If I could set a trigger like "when A changes 3 times then B changes for 7 and 9" "when A == even B doesn't change" and etc etc... But, as far as I'm understanding, there's no way to reference to a "change" of a variable, just to its value, right?
I don't think you can implement a system like what you're describing without a lot of switches and variables being involved.
Essentially, each condition you want will have to be indicated through a combination of switches, variables or items and if I understand what you're trying to do it's not going to be something doable without a lot of work.
So, for instance. If you want your first trigger "when A changes 3 times then B changes..." then you would need to have whatever Event changes variable A increment variable C by one. Variable B's event can have a conditional branch which says "if variable C = 3" that then initiates the desired changes to Variable B. Then it could either reset variable C, or allow it to keep incrementing if something is going to happen later.
For your second one, the only way I can think of to determine if a number is even or odd is to flip a switch every time it increments. So, Variable A starts at 0 and Switch D starts "off." When the event adds +1 to variable A it has a conditional branch which checks if Switch D is off, and if it is then it switches to on and an 'else' branch that flips the switch off it is on. That means whenever Switch D is off then you know variable A is "even" and whenever it is on you know Variable A is odd, and can incorporate it into your conditional branch.
Honestly, though, it seems like at that point it would be easier for you to jut map out a calendar yourself and create simple, conditional branches.
So, Day 1, Variable A =1.
Conditional Branch that says if Variable A =1 then the current demand is [item X] (or choose randomly from a small chart generated by a second variable that can be reused on other days).
Another conditional branch for variable A =2, 3, 4, etc.
Just literally make a calender to reference so you know whether day 5 is a tuesday or whatever and just have small conditional branches that trigger consecutively each day. You could even loop it to last longer and maybe include nested conditions which adjust things based on player level or current supplies.