:o ôi trời ơi, O.o nói thế anh bạn trẽ ý đố làm được, cái degree và AngelBetweenPoint dễ mà phức tạp, Angel... nó như là 1 vòng tròn lượng giác bắt đầu từ 0.
Ví dụ:
Set Loc[1] = (Position of Cast)
Set Loc[0] = (Target point of ability being cast)
Set Real = (Angle from Loc[1] to Loc[0])
khi đó tâm đường tròn sẽ là Lo[1] và điểm 0 độ giờ là Loc[0]
nếu bạn cho Real + 5 đi thì giờ hướng( degree) ta đang xét là từ tâm đường tròn tới điểm 5 độ) hoặc nếu như bạn cho real + 360 thì nó sẽ way hết 1 vòng và trở lại vị trí cũ là 0 độ
Hiểu chưa anh bạn trẽ, tư tiềm hiểu thêm nha, còn đây mà map đính kèm mở ra mà xem phải cái spell đó không, ^^, à lưu ý 1 điểm vì cái Target Point lun thay đổi tùy người chơi nên sẽ có nhữn lúc ShockWave sẽ đi theo hướng khác nhau, mún cố định thì bạn cố định cái Target Point là xong, còn không thì..(Cast thử vào chính mình xem..

)
.
___________Auto Merge________________
.
ác quá, thôi sory cậu nha, cái
Quyền hạn cùa mình sao tự nhên
- Bạn
không thể gửi kèm files
chắc bị mod chém òi =.= thôi thì mình post trigger lên thôi...vại thật
- Đầu tiên tạo các biến sau,
Cast: Unit,
Loc : Point[array],
Real: Real[Array]. Xong rùi tạo 1 shockwave cho hero rùi thay vào Shockwave 1, tạo 1 shockwave cho Dumy và add nó vào Ability của Dumy. giờ thì tạo 1 trigger tến Shock Wave, Coppy hêt phần này vào rùi test thử xem

Shock Wave
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to
Shockwave 1
Actions
Set Cast = (Triggering unit)
Set Loc[0] = (Target point of ability being cast)
Set Loc[1] = (Position of Cast)
Set Real[0] = (Angle from Loc[1] to Loc[0])
-------- Vi tri xuat hien Dumy --------
Set Loc[2] = (Loc[1] offset by 300.00 towards (Real[0] - 90.00) degrees)
Set Loc[3] = (Loc[1] offset by 300.00 towards (Real[0] + 90.00) degrees)
-------- --- --------
Unit - Create 1 Dumy for (Owner of Cast) at Loc[2] facing Real[0] degrees
Set Loc[4] = (Loc[2] offset by 100.00 towards (Facing of (Last created unit)) degrees)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave Loc[4]
-------- --- --------
Unit - Create 1 Dumy for (Owner of Cast) at Loc[3] facing Real[0] degrees
Set Loc[5] = (Loc[3] offset by 100.00 towards (Facing of (Last created unit)) degrees)
Unit - Add a 1.00 second Water Elemental expiration timer to (Last created unit)
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave Loc[5]
-------- --- --------
Set Cast = No unit
Custom script: call RemoveLocation( udg_Loc[0] )
Custom script: set udg_Loc[0] = null
Custom script: call RemoveLocation( udg_Loc[1] )
Custom script: set udg_Loc[1] = null
Custom script: call RemoveLocation( udg_Loc[2] )
Custom script: set udg_Loc[2] = null
Custom script: call RemoveLocation( udg_Loc[3] )
Custom script: set udg_Loc[3] = null
Custom script: call RemoveLocation( udg_Loc[4] )
Custom script: set udg_Loc[4] = null
Custom script: call RemoveLocation( udg_Loc[5] )
Custom script: set udg_Loc[5] = null