i want to make a skill that
for example:
- here is a skill deals damage to 3 random enemies. If there are 8 enemies in a troop, the skill targets random 3 enemies without repeating damage to 1 or 2 enemies. Also if there are only 1 or 2 enemies in a troop, which is less than a number of targets(3 enemies to attack without repeating) of the skill, the skill doesn't need to damage random 3 enemies with repeating, instead the skill damages to 1 or 2 enemies without repeating, which is an exact number of enemies in a troop.
I can guess that this can handle with yanfly's target&selection plugin, but I'm not good at javascript, so can someone help me with this situation?
for example:
- here is a skill deals damage to 3 random enemies. If there are 8 enemies in a troop, the skill targets random 3 enemies without repeating damage to 1 or 2 enemies. Also if there are only 1 or 2 enemies in a troop, which is less than a number of targets(3 enemies to attack without repeating) of the skill, the skill doesn't need to damage random 3 enemies with repeating, instead the skill damages to 1 or 2 enemies without repeating, which is an exact number of enemies in a troop.
I can guess that this can handle with yanfly's target&selection plugin, but I'm not good at javascript, so can someone help me with this situation?