Trouble with variables

I've made a system where whenever someone collects an item called a Grassland Herb a variable increases, then when the variable is at a certain point you can make some potions. When the potion is made, the variable is decreased by however many herbs were used. It worked fine for the first potion, then it just stops working? I'm not sure why it worked once then not again. Any help would be appreciated.
Okay it's now suddenly working again, I don't know how to delete the thread.
no topic ever gets deleted, because other people might want to search for the solution as well.

one suggestion:
if grass herb is an actual item, there is no need to count a variable up.
just use control variable : game data :<grass herb> in inventory
to have the engine load the current number of items in inventory before checking how much you have.

EDIT:
and if you want to make the herb unavailable until returning to the map, just use erase event instead of that move route through on you currently have.
erased events will be reloaded on map reload, and don't use up RAM like yours currently does until then.
Okay it's now suddenly working again, I don't know how to delete the thread.
Beside the way of Andar, you can also do like this:
-Create 2 type of herb: green and red herb. Green herb heal 20% HP. Red herb call a common event(Change the consume of Red Herb to "No".)
-In that common event, use these command:
@>Conditional Branch: Green herb in inventory.
@>Show Text: Do you want to mix herb?
@>Show Choice: Yes, No
+If Yes
@>Green herb -1
@>Red herb -1
@>Potion +1
@>Show Text: Potion Obtained!
+If No

That's like Resident Evil mix herb style, if you want.
Sorry for late reply, thanks for everyone's help! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/trouble-with-variables.147201/