Jadi gini gan, gw pengen bikin spell transform, nah transform nya itu ngasih bonus hp regen, atk spd, ama attack bonus
Nah attack bonus nya itu nambahin damage kita 2x lipat tapi setiap hp kita diatas setengah dari max hp
Nah soal spell transformnya gw pake chemical rage, regen bonus nya pake skill item healing ward, nah soal atk damage nya gw pke command aura.
Nah disini gw pke trigger :
Event
Unit - a unit begin casting an ability
Condition
(Ability being cast) equal to transform
Action
-If Condition, Then Action, Else Action
-If Condition
(Life of casting unit) is greater than or equal to ((Max life of casting unit) / (2))
-Then Action
Add Damage bonus*yg tadi kata gw pke command aura kan 2x damage* to casting unit
-Else Action
-TransCast = (Casting Unit)
-Turn on Buff Check<gen>
-Wait until ((casting unit has transformed*ini buff nya*) equal to false) checking every 0.1 second
-Turn off Buff Chack<gen>
Buff Check
Event
Every 0.01 second of the time
Condition
Action
-If Condition, Then Action, Else Action
-If Condition
(Life of TransCast) is greater than or equal to ((Max life of TransCast) / (2))
(TransCast has buff Transformed) equal to true
(TransCast is Alive) equal to true
-Then Action
Add damage bonus to TransCast
-If Condition, Then Action, Else Action
-If Condition
(Life of TransCast) is less than or equal to ((Max life of TransCast) / (2)) or (TransCast has buff Transformed) equal to false
-Then Action
Remove damage bonus from TransCast
Nah masalahnya setiap kali di cast pasti damage bonus nya ilang entah kenapa, padahal buff ada, hp udah lebih, tapi kadang kadang ilang gan, aneh
Mohon pencerahannya
Thx, maaf kepanjangan
Share This Thread