There are two issues surrounding this badge:
- In Virtual City, the map room can trigger this badge when using it due to using the same variable than the one tracked (not sure if this one has changed since the latest qxy updates)
- The variable that is at first used to know which snack you should obtain is edited in the common event to give you your snack, making it unreliable since the variable can end up at the same value than the one wanted while buying another snack. As such, if possible, another variable would need to be triggered, or checking at which point in the common event is the interaction to know if the badge should be triggered or not (doing a map per map case isn't really possible due to the number of vending machines and random machines throughout the game).