Select equal or less than C-Branch

Hey there, I have a problem whith my event. It basicaly goes like this -

Spoiler
5s8e2vd.png
But when condition isn't met, it calls you invalid amount of stuff you want to use...

Problem is that, from some reason it keeps telling me that it is invalid number of fairies to cook

even when I select less than equal to variable which sets how many fairies I have in inventory (max)...

Can somebody help me whith that? I dunno, maybe it is just beacouse I'm such tired right now,

but I can't finde that error anywhere. Thanks guys!
I may be wrong, but shouldn't Variable 3 be "More than or Equal to" Variable 2?
You mixed up the variables


Your condition says "if I have less in inventory than I want to exchange, then exchange"


So of course the command fails because it cannot remove as much from inventory...


If that isn't the case, we need to see the full event - your cropping it made several things difficult to see
Damnit, you're right 😀 Such stupid mistake 😀

Thanks guys 😀
So far I don't see a reason for the variable either unless there is some other purpose to it. Couldn't you just run this event checking to see if a fairy is in the inventory or not.
So far I don't see a reason for the variable either unless there is some other purpose to it. Couldn't you just run this event checking to see if a fairy is in the inventory or not.
The check for inventory doesn't return the number of how many are in inventory - and the event asks how many to exchange, so it needs a number.
Ah, didn't see that makes sense now.

Original thread: https://forums.rpgmakerweb.com/threads/select-equal-or-less-than-c-branch.45889/