MZ Item steal with unconventional mechanics

I want to make a skill that allows the player to steal items from enemies. However, what I have in mind is a little different from how most RPGs handle such a skill. I want the following to be true:

1. Enemies never drop items from being defeated. You can ONLY get items from enemies via stealing.
2. Each enemy type has a probability that they are carrying an item to steal. For example, Potions can be stolen from Goblins, but not every Goblin will have a Potion to steal; some will be carrying nothing.
3. If you use the Steal command and an enemy has an item to steal, you will acquire it without fail. If the enemy does not have an item, the game informs you that there is nothing to steal.

I thought I'd be able to use the VisuStella Steal Items plugin to accomplish this, but looking further at the notetags and parameters, I'm not seeing a way to make it work (#2 above is the big problem). And I'm not too keen on the idea of scripting out everything, I've learned a little but I don't think I'm savvy enough to have it do all the heavy lifting here.

Any thoughts about how to do this without being a scripting master?
Hmmm, you can try with VisuStella Steal plugin to just have a turn 0 troop event where you roll chances, like:

$gameTroop.members().forEach(member => {
if (Math.random() < 0.5) {
member._stealableItems = [];
}
})

But then don't use the auto-setting to add gold into steal and remove it from drops (edit: and use notetags to add stealable items).

EDIT:
Actually this is better, since you wanted the information about nothing to steal (currently manipulates index 0, so assumes you don't have gold there and only 1 stealable item):

$gameTroop.members().forEach(member => {
if (Math.random() < 0.5) {
member._stealableItems[0].stolen = true;
}
})
Hmmm, you can try with VisuStella Steal plugin to just have a turn 0 troop event where you roll chances, like:

$gameTroop.members().forEach(member => {
if (Math.random() < 0.5) {
member._stealableItems = [];
}
})

But then don't use the auto-setting to add gold into steal and remove it from drops (edit: and use notetags to add stealable items).

EDIT:
Actually this is better, since you wanted the information about nothing to steal (currently manipulates index 0, so assumes you don't have gold there and only 1 stealable item):

$gameTroop.members().forEach(member => {
if (Math.random() < 0.5) {
member._stealableItems[0].stolen = true;
}
})
So if I'm understanding this correctly, this would make it so that every enemy in the troop has a 50% chance to have a stealable item. What if I want the probability of a Goblin carrying a Potion to be different than the probability of a Dragon in the same troop carrying an Elixir?
You can make it read percentages or whatever, something like (put <stealChance:X> notetag on enemies):

$gameTroop.members().forEach(member => {
const stealChance = member.enemy().meta.stealChance / 100;
if (stealChance && Math.random() < stealChance) {
member._stealableItems[0].stolen = true;
}
})
Ok, I was a little confused at first but I think I get how it works now.

If <stealChance:0>, the enemy ALWAYS has an item to steal.
If <stealChance:100>, the enemy NEVER has an item to steal.

So far it seems to be working as intended. I'll leave the topic open for the time being in case I run into any issues down the road, but thank you very much for your help.
Cool.

And yeah, I put the comparison sign the wrong way, but it works if you swap the numbers like that.

Original thread: https://forums.rpgmakerweb.com/threads/item-steal-with-unconventional-mechanics.182518/