rafaxik
New Member
- Reaction score
- 2
I know if I change Orb of lightning's data in Obj Editor, I can do this stuff. But I don't want to create an orb effect, so help me with this trigger. All Actions is warned by chat, just to make sure it's working and they really are being displayed:
Note¹ : Chance to shadow strike attacked unit
Note² : I based Shakujo's Hit on Endurance Aura
Note³ : I based Shakujo's Strike on Shadow Strike
Thanks for help
EDIT:
Resume for the spell:
When the hero attacks, it has 15/20/25 % chance to "shadow strike" attacked unit (It's not orb effect, nor buff placer, trigger only)
Trigger:
- ShakujosHit
- Events
- Unit - A unit Is attacked
- Conditions
- ((Attacking unit) has buff Shakujo (Shakujo)) Equal to True
- Actions
- Set ShakujoInt = (Random integer number between 1 and 100)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ShakujoInt Less than or equal to (((Level of Shakujo's Hit for (Attacking unit)) x 5) + 10)
- Then - Actions
- Game - Display to (All players) the text: conditions worked!
- Unit - Create 1 dummy00 for (Owner of (Attacking unit)) at (Position of (Attacking unit)) facing Default building facing degrees
- Game - Display to (All players) the text: created unit worked!
- Unit - Add Shakujo's Strike to (Last created unit)
- Game - Display to (All players) the text: add Shakujo's Strik...
- Unit - Set level of Shakujo's Strike for (Last created unit) to (Level of Shakujo's Hit for (Attacking unit))
- Game - Display to (All players) the text: Level of Shakujo's ...
- Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Attacking unit)
- Game - Display to (All players) the text: order shadow strike...
- Unit - Remove (Last created unit) from the game
- Game - Display to (All players) the text: remove unit worked!
- Else - Actions
- If - Conditions
- Events
Note¹ : Chance to shadow strike attacked unit
Note² : I based Shakujo's Hit on Endurance Aura
Note³ : I based Shakujo's Strike on Shadow Strike
Thanks for help
EDIT:
Resume for the spell:
When the hero attacks, it has 15/20/25 % chance to "shadow strike" attacked unit (It's not orb effect, nor buff placer, trigger only)