Shop Thief

So I was wondering if it is possible to make a shop process where if a thief class is in the party, you have a chance to steal an item from the shop based on the thief's luck stat. Is it possible to do without a plugin? If so, how would this be done? If not, what plugin would I use? Thanks for any and all help.
You could just use control variables for that. After shopping, the shop event would run variables like...
1739214544505.png

And then you'd do whatever math you want to do.. Like luck of Dunstan / 2 or whatever.

After that you'd run a conditional branch saying if luck of dunstan / 2 >= 50 or whatever.
if true, you'd then roll a random variable between X and Y, where X and Y are the "item pool" of whatever the shop has.

And then you'd do a conditional branch for each item based on that variable, and give the player the appropriate item, perhaps with a message, confirming the gain of said item.

Original thread: https://forums.rpgmakerweb.com/threads/shop-thief.175335/