MZ Check for sold item

So, I want to use the VisuStella Quest plugin as of late, and I want to make a use for it in my game "Reid and Priscilla: Twin Aces". You see, for the Items, I want to give two uses for the Hidden Items: Hidden Items A for plot items like evidence or valuables, Hidden Items B for sidequest-related items. My objective: make a sidequest and include an item, and this item, in order to progress through the sidequest, must be sold to a shop, which will then trigger special dialogue. In short: I want to check if a specific item has been sold, then trigger the associated dialogue and possible sidequest completion rewards.
You can use @caethyril's AutoSwitchVars to put a notetag on the item that will increment a variable when that specific item gets sold.
You can use @caethyril's AutoSwitchVars to put a notetag on the item that will increment a variable when that specific item gets sold.
Yeah, though I'm only keen on using VisuStella plugins since these are the ones I'm most familiar with. I think that the Items and Equip Core has a notetag that turns a switch on or off if the corresponding item has been bought or sold: that reminds of Yakuza 0, where you get the Bumper Plate component upon buying the "Killer Bee" model car.
Shrug.

There's no easy way to do it without code. The alternative is to go to every shop the player could possibly access at that point in the game, and add event commands before and after the Shop Processing to store the number of that item held and compare the values to see if any were sold.
VisuStella [...] Items and Equip Core has a notetag that turns a switch on or off if the corresponding item has been bought or sold
Yep, looks like you're correct: <Sell Turn On Switch: x>.

(Cae_AutoSwitchVars applies a bunch of flow-preserving patches: it should be very compatible with other plugins if it is loaded after the others. No point in that if your current plugins do the job, though.)

Original thread: https://forums.rpgmakerweb.com/threads/check-for-sold-item.164253/