
Originally Posted by
l0git3c
kan dia ga tulis musti ga orb effect
kalo mo pake trigger jg bs
Buat ability biasa, critical strike
trus buat trigger untuk slow
Event - Unit Is Attacked
Condition - Attacking unit has Critical Strike (yg dah kamu buat) ability
Random Integer between 1 and 20 is equal to 5
Action - Create dummy slow
Order Last Created Unit to cast slow to Attacked Unit
Set 1 second expir time to Last Created Unit
kek gitu x-calibur

bkan,
dulu gw pernah bwt attack detect trigger, judulnya mana drain
intinya semua sama, bwt ability berbasis envenomed spear, dikasi buff sendiri
Code:
Crit Slow
Events
Any unit takes damage (CARI AJ DI HIVE)
Conditions
((Triggering unit) has buff CRITSLOW) Equal to True
Actions
Unit - Remove CRITSLOW buff from (Triggering unit)
Set TempInteger = 5
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to TempInteger
Then - Actions
Set TempPoint = (Position of (Triggering unit))
Unit - Create 1 Footman for (Owner of (Damage source)) at TempPoint facing Default building facing (270.0) degrees
Unit - Add Slow to (Last created unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Sorceress - Slow (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of (Triggering unit)) Greater than (Damage taken)
Then - Actions
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - (Damage taken))
Else - Actions
Unit - Cause (Damage source) to damage (Triggering unit), dealing (Damage taken) damage of attack type Spells and damage type Normal
Custom script: call RemovePoint( udg_TempPoint )
Else - Actions
ini masih ga ada tulisan critical merahnya, klo mau bwt aj ndiri floating text
Share This Thread