Cho em hỏi cái trigger này của em bị làm sao mà vào game lúc nó hoạt động cứ văng ra ngoài vậy:
Trong đó skill Overload Damage là Slow Poison. Các bác giúp em nhanh nhé
Mã:
Overload Cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Level of Overload for (Casting unit)) Greater than 0
Actions
Set Storm_Over_Caster = (Casting unit)
Unit - Remove Overload Damage from Storm_Over_Caster
Unit - Add Overload Damage to Storm_Over_Caster
Mã:
Overload Attack
Events
EGUI Unit - Any unit takes damage
Conditions
Or - Any (Conditions) are true
Conditions
((Triggering unit) has buff Overload (Non-stacking)) Equal to True
((Triggering unit) has buff Overload (Stacking)) Equal to True
Actions
Set Storm_Over_Caster = (Damage source)
Unit - Remove Overload Damage from Storm_Over_Caster
Set Storm_Over_Point = (Position of (Triggering unit))
Set Storm_Over_Group = (Units within 250.00 of Storm_Over_Point matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of Storm_Over_Caster)) Equal to True))))
Special Effect - Create a special effect at Storm_Over_Point using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in Storm_Over_Group and do (Actions)
Loop - Actions
Unit - Cause Storm_Over_Caster to damage (Picked unit), dealing (15.00 + (15.00 x (Real((Level of Overload for Storm_Over_Caster))))) damage of attack type Spells and damage type Normal
Unit - Create 1 Dummy for (Owner of Storm_Over_Caster) at Storm_Over_Point facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Overload Dummy to (Last created unit)
Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
Custom script: call RemoveLocation(udg_Storm_Over_Point)
Custom script: call DestroyGroup(udg_Storm_Over_Group)
Trong đó skill Overload Damage là Slow Poison. Các bác giúp em nhanh nhé
.

