feelthless
New Member
- Reaction score
- 1
JASS:
help me out pls. I made some triggers but seems they don039;t work
Here039;s the spell description: % of Hero039; attacks will do extra damage and knockback units within 300 AoE depens on Hero039; agility. Deals damage equal to 2.2x Agility. Knockbacks 3x Agility distance away. 2.5 sec cooldown. |n|n|cffffcc00Level 1|r - 13% chance to proc |n|cffffcc00Level 2|r - 16% chance to proc |n|cffffcc00Level 3|r - 19% chance to proc |n|cffffcc00Level 4|r. 22% to proc
Here039;s the 3 triggers:
Isolate
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Isolation Strike
Actions
Set isolation_allow = True
Set isolation_unit = (Learning Hero)
Set isolation_level = (Level of Isolation Strike for isolation_unit)
If (isolation_level Equal to 1) then do (Set isolation_proc = 13) else do (Do nothing)
If (isolation_level Equal to 2) then do (Set isolation_proc = 16) else do (Do nothing)
If (isolation_level Equal to 3) then do (Set isolation_proc = 19) else do (Do nothing)
If (isolation_level Equal to 4) then do (Set isolation_proc = 22) else do (Do nothing)
Isolate proc
Events
Unit - A unit Is attacked
Conditions
(Attacking unit) Equal to isolation_unit
(Random integer number between 1 and 100) Less than or equal to isolation_proc
isolation_allow Equal to True
Actions
Set isolation_allow = False
Set isolation_agile = (Real((Agility of isolation_unit (Include bonuses))))
Animation - Play isolation_unit039;s Attack Slam animation
Unit Group - Pick every unit in (Units within 288.00 of (Position of isolation_unit) matching (((Matching unit) belongs to an enemy of (Owner of isolation_unit)) Equal to True)) and do (Actions)
Loop - Actions
Set isolation_group = (Last created unit group)
Set isolation_angle = (Angle from (Position of isolation_unit) to (Position of (Picked unit)))
Trigger - Turn on Isolate movement <gen>
Wait (((3.00 x isolation_agile) / 10.00) + 0.00) seconds
Trigger - Turn off Isolate movement <gen>
Unit Group - Remove all units from isolation_group
Special Effect - Create a special effect attached to the weapon of isolation_unit using Abilities\Weapons\DemolisherFireMissile\DemolisherFireMissile.mdl
Set isolation_effect = (Last created special effect)
Wait 0.80 seconds
Special Effect - Destroy isolation_effect
Unit - Cause inc_target to damage circular area after 0.00 seconds of radius 300.00 at (Position of inc_target), dealing (2.20 x isolation_agile) damage of attack type Spells and damage type Normal
Wait 2.30 seconds
Set isolation_allow = True
Isolate movement
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in isolation_group and do (Actions)
Loop - Actions
Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 10.00 towards isolation_angle degrees)
help pls :[