A simple question, I looked for it but I couldn't find an answer.
Is it possible to make a conditional branch check "two" variables to then trigger an event?
I'm not talking about using one conditional branch inside another conditional branch, it doesn't give me the result that I want, it needs to be only one conditional branch.
If there's no default option for it I hope they put something like this in the future.
Thanks!
I did what you said as well, used two switches with the variable to active another event, but still doesn't work.
And more than it, it works, only once and after it stop working.
Let me show what I'm doing:
It's like a mini puzzle where you throw a box and the box goes in the direction X until it can't move anymore.
Using this system I set some variables:
1: I set a Target X and a Target Y,
2: I set Box position X and Box position Y.
3: When for example Box position X is equal to Target position X, change the variable Test +1.
4: Same thing for both "Y" positions but this time for "Y" the variable changed is Test2 +1
The I made a room where I can make this box goes to the target Y or X positions as many time as I want.
Then when the box leaves the Y or X position it gonna Sub -1 from test or test2.
It was supposed to work as many times as I want, but the weird thing is that it works only once, it works once to when I get into the Y or X target position as the same as it works only once when it's not inside of the Y or X target positions anymore.
It means in the second time when the box hits X or Y target position the variable won't ADD or SUB 1 the second time it happens.
It's an advanced thing and I probably would need to make a video to explain it better.
~Cleber
When you throw a box, do you mean it should move by itself until it reach that point ? Or does it move by one case only ?
If it's by itself, use a parallel process do deal with it. If not, you should define a variable for the X displacement and one for the Y displacement.
If box x is smaller than target x, the variable for dx = +1. If box x is greater than target x, the variable for dx = -1. Same thing for Y.
Then, in the parallel process, make the box move right if dx = 1, left if dx = -1, up if dy = -1 and down if dy = 1
No, it's not the same what I'm making.
Do you remember Goof and Max on the pirate island for SNES?
It exactly the same thing what i'm trying to do, but anyway, I gonna make a quick video showing what I'm trying to do.
@AkiraKotatsuhime: You're totally right, that was a typo on my part (it's what I get for posting so early in the morning, haha).
I found the error, and I'm pretty angry with myself, I forgot to turn OFF the control self switch A and B when I'm not in their conditions anymore.
Because this the program was doing +1 and -1 in both conditions, and as you can imagine, it doesn't work.
But anyway, it was the first time I tried to do something more advanced with RPG maker I hope you can forgive me.. =(
Anyway, thank you very much to everyone who helped me here.
~Cleber
Backing again, I found another problem, or most likely a bug (I just don't know if its a bug I made or a bug in the RPG Maker).
But is better you see what gonna happen: