In MV, how can I set up a skill that randomly hits X number of times, but can't hit the same target more than Y number of times, and ends the skill as soon as the latter limit is reached? Examples: Skill A: Randomly attacks 10 times, but can't target a given enemy more than 4 times. Against a Troop of one enemy, or a Party of one, it would hit the sole unit four times, and then end without the other six hits coming into play. Skill B: Randomly attacks 8 times, but can't target a given enemy more than 2 times. Against a Troop or Party of four, provided they were all alive, each unit would take two hits. I should note I have most of Yanfly's Plugins, and not much else atm. On that note, I actually tried changing the numbers in the "Chain Lightning" Tip/Trick they'd posted, first, believing that would be sufficient, but it didn't work at all.