That's quite difficult to make, you can choose between two option, first using the ai editor, which gives you all the oppurtunity of all chance, second, using trigger, but that will need a lot of work (assumming, you have 15 hero), you need to make about 60 chances of logic