RMMV: How to make attack success rate randomised?

Hello! I'm completely new both to this forum and to RPG Maker MV, so I apologise if this is the wrong board (please redirect me if so). I'll try to explain what I'm trying to do as best as I can;

So I have a party of 3 characters. Two are controlled normally, they attack when you tell them to attack. But the third one kind of just loaf around and does as he please, he attacks when he "feels" like attacking (it's random, like throwing a coin and hoping for tails).
I want there to be a low success rate of him actually using said skill, for instance, if I choose Attack and it's unsuccessful it will say something like;

"Vander looks around and realises we're in a fight. He keeps looking around."
or
"Vander thinks about a funny joke he heard yesterday and chuckles a bit."

How do I go about making this? Would I need a plugin or is it possible with what the software already provides?
I hope my explanation made sense, please let me know if you need more info.

I've moved this thread to MV Support. Thank you.


Just for reference, Game Mechanics is for discussing theories of mechanics, not how to specifically implement them in the engine.
Moved to: MV Support
Just for reference, Game Mechanics is for discussing theories of mechanics, not how to specifically implement them in the engine.
Gotcha, thank you!
The way I did this was by have an event command on Turn 1 plus 1, with span of 'Turn' on each troop event page which called up a Common Event. (Actually I used Yanfly's Base Troop Events script which meant that I didn't have to paste this into each individual troop. But it's not essential.) Here is that common event - it's for Ace, but the logic is identical for MV.

1589918781842.png


As you can see, 2 out of 3 random rolls result in no action on the part of the character. You could adjust the number of random rolls e.g. making it 0 - 3, and then having 3 out of the 4 give no action.
Thanks! I'll give that a try, if I fail miserably I'll be back here begging for help again haha!

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-how-to-make-attack-success-rate-randomised.121781/