- Joined
- Nov 13, 2007
- Messages
- 244
Well what i need a spell that when an enemy unit attacks my unit give him 10% to counter attack dealing X1 my units agillit this is what i got.
And this is the second part:
-
Counter Attack 1
-
Events
- Unit - A unit Learns a skill
-
Conditions
- (Ability being cast) Equal to Counter-Attack
-
Actions
- Trigger - Turn on Counter Attack 2 <gen>
-
Events
And this is the second part:
-
Counter Attack 2
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Ability being cast) Equal to Counter-Attack
-
Actions
- Set counter_caster = (Attacked unit)
- Set counter_target = (Attacking unit)
- Set chance_counter = (Random integer number between 10 and 10)
- Unit - Cause counter_caster to damage counter_target, dealing (Real(((Agility of counter_caster (Include bonuses)) x 1))) damage of attack type Spells and damage type Normal
-
Events