Ok, so I'm making a map which is turning out to be a real pain.
Basicly, each hero can have loads of abilities, which are randomly given to him on levelup. The player cannot choose what he/she will get, and cannot choose when to use their spells either.
Initially, I used a trigger that checked if the hero was being attacked, then created an integer with a random value. I then had one seperate action for each ability, checking if the integer was "1", "2".. etc, and using the appropriate ability. But it would mean you'd use the abilities way too often when groups of mobs attacked, and barely ever use them in 1on1 duels.
So what I'm trying to make is this:
"UseAbility" is based on Critical Strike. And after looking around forums it seems this is not possible. So my question is, how do I check if the hero is critting, or causing damage to an enemy?
Thanks
Basicly, each hero can have loads of abilities, which are randomly given to him on levelup. The player cannot choose what he/she will get, and cannot choose when to use their spells either.
Initially, I used a trigger that checked if the hero was being attacked, then created an integer with a random value. I then had one seperate action for each ability, checking if the integer was "1", "2".. etc, and using the appropriate ability. But it would mean you'd use the abilities way too often when groups of mobs attacked, and barely ever use them in 1on1 duels.
So what I'm trying to make is this:
Trigger:
- UseAbility
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to UseAbility
- Actions
- Set UseAbilityInt = (Random integer number between 1 and 6)
- Events
"UseAbility" is based on Critical Strike. And after looking around forums it seems this is not possible. So my question is, how do I check if the hero is critting, or causing damage to an enemy?
Thanks