XXXconanXXX
Cocktails anyone?
- Reaction score
- 288
This trigger is supposed to have the same effect as Bash by stunning an attacked unit and damaging it. When it didn't work, I was thinking it was something I just overlooked in the trigger, oddly enough, this was not the case.
Code:
Detect Bash
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacking unit)) Equal to Paladin
Actions
Set Unit_for_Bash = (Attacking unit)
Set Target_of_Bash = (Attacked unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Bash (detectable) for (Attacking unit)) Equal to 1
Then - Actions
Set Random_int_for_Bash = (Random integer number between 1 and 10)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Random_int_for_Bash Equal to 5
Then - Actions
Set Detecting_Bash_boolean = True
Unit - Order Unit_for_Bash to damage Target_of_Bash for 50.00 using attack type Chaos and damage type Divine.
Special Effect - Create a special effect attached to the overhead of Target_of_Bash using Abilities\Spells\Human\Thunderclap\ThunderclapTarget.mdl
Set Specialeffect_for_Bash = (Last created special effect)
Unit - Pause Target_of_Bash
Wait 3.00 seconds
Unit - Unpause Target_of_Bash
Special Effect - Destroy Specialeffect_for_Bash
Set Detecting_Bash_boolean = False
Else - Actions
Else - Actions


