Hi all, i'm kinda new to Jass triggering so if anyone could help me with this one please i'd appreciate it.
Well the problem: when i make a hero spell based on item or unit spell, AI heroes don't use the spell. Thats normal so i have to trigger them to use it.
i got problem with heroes using spells based on the item, for example [scroll of healing].
example of trigger i'm using for hero to use normal spell, and it works:
Some of the heroes have more spells based on item spells.
So my question and problem is: how can i make hero use specific spell he's got which is based on item spell. Can someone please show me what should i replace in my trigger, and show me how can i define and make sure AI hero will use exactly the spell i want him to use.
I'd like universal trigger that makes AI heroes use certain spells based on their or their enemies HP status. So can anyone show me the trigger where i'd be able to switch heroes and spells?
Thanks alot for your time.
Well the problem: when i make a hero spell based on item or unit spell, AI heroes don't use the spell. Thats normal so i have to trigger them to use it.
i got problem with heroes using spells based on the item, for example [scroll of healing].
example of trigger i'm using for hero to use normal spell, and it works:

Some of the heroes have more spells based on item spells.
So my question and problem is: how can i make hero use specific spell he's got which is based on item spell. Can someone please show me what should i replace in my trigger, and show me how can i define and make sure AI hero will use exactly the spell i want him to use.
I'd like universal trigger that makes AI heroes use certain spells based on their or their enemies HP status. So can anyone show me the trigger where i'd be able to switch heroes and spells?
Thanks alot for your time.