"Main Focus"- Type Skill, or advanced Taunts

Greetings everyone!
While working around with Taunt-Style Skills and Timings, i got stuck wanting to make a skill.
I hope someone can follow along with my idea and help me out a bit.
I want to make a skill where one player character debuffs an enemy with a taunt-like state. Easy enough with single-target abilities.
But i want this taunt to cause random-hits to solely hit that "Targeted" enemy.

e.g. imagine a battle with 3 different enemies. Have a skill with the setup "target 4 random enemies" which gives 4 hits spread atrandom over the enemies. But one enemy has the "Targeted" state, so all random hits instead hit that targeted enemy only.


If it helps, i did grab the full Yanfly Plugin Collection and use a decent chunk of those as well, there sadly isnt something fitting in the target core (I think at least, didnt find anything fruitful).
I also suck at complicated scripting and even moreso at coding.
Can anyone help me or does anyone know if it would work at all? And if its possible via coding or complex scripting, can someone assist me please?

Thanks a bunch everyone and greetings from Germany!
If I remember correctly, the random x enemy scope uses target rate to choose its targets. you could give your taunt state a high target rate trait and those random skills should likely be directed towards anyone with the state. I say likely because unless you drop the other enemies target rates to 0%, there's a small chance they'd take a hit.

If it helps, i did grab the full Yanfly Plugin Collection and use a decent chunk of those as well, there sadly isnt something fitting in the target core (I think at least, didnt find anything fruitful).
you could pull it off with the target core by using the custom target eval notetag. it requires JS, but if the target rate thing doesn't work out for any reason, the code can be provided. it would have to be placed into all of your random target skills though
If I remember correctly, the random x enemy scope uses target rate to choose its targets. you could give your taunt state a high target rate trait and those random skills should likely be directed towards anyone with the state. I say likely because unless you drop the other enemies target rates to 0%, there's a small chance they'd take a hit.


you could pull it off with the target core by using the custom target eval notetag. it requires JS, but if the target rate thing doesn't work out for any reason, the code can be provided. it would have to be placed into all of your random target skills though
Thanks for now! I likely wont be able to test it before the weekend but i will give the first idea a try for sure.
Technically, going with the Target Rate (which i completely forgot about), as i want to give the player free choice on who to attack, Target Rate on other enemies shouldnt matter at all. So if i give every enemy a 0% Rate, and give the state a temporary increase to 100 or 1000%, it should work out well already. I'll give it a try!
Worst case if nothing works, i can still adapt the skill thanks to Target Rate to "highly increase target chance" or something like that.
But yeah i totally forgot about that til you mentioned it. Thanks for the hints!
So if i give every enemy a 0% Rate, and give the state a temporary increase to 100 or 1000%, it should work out well already. I'll give it a try!
that part wont work. the target rate trait is multiplicative, so any enemy with a 0% for it will not be affected at all by any further traits for it. thats why i said youd need to set the others' rates to 0 to be guaranteed they wont be hit. if it helps to understand the odds though, if the provoke state had 4 1000% traits on it, even if there were 7 other enemies at the neutral rate, the odds of the provoked battler not getting hit by any given attack is 0.07%

Original thread: https://forums.rpgmakerweb.com/threads/main-focus-type-skill-or-advanced-taunts.177626/