hey there,
I am trying to make a spell that will make the targeted hero use a random item from its inventory. being as different items use different types of activation (unit,point,instant), not to mention passive items, i'm having a hard time triggering this without specifying pretty much every possible item and what to do if the hero has that in the selected inventory slot. is there a simpler way to do this than a seemingly endless stream of "if then else"?
is there a way to rig the AI (which knows how to appropriately use all the items) to do this for me?
I am trying to make a spell that will make the targeted hero use a random item from its inventory. being as different items use different types of activation (unit,point,instant), not to mention passive items, i'm having a hard time triggering this without specifying pretty much every possible item and what to do if the hero has that in the selected inventory slot. is there a simpler way to do this than a seemingly endless stream of "if then else"?
is there a way to rig the AI (which knows how to appropriately use all the items) to do this for me?