AzuhaSky
T.E.T.Я.I.S
- 30/5/10
- 550
- 51
mọi người cho em hỏi Trigger này :
Actions
Unit - Move BM[1] instantly to ((Position of BM[1]) offset by 100.00 towards (Facing of BM[1]) degrees), facing (Facing of BM[1]) degrees
Set BMGroup[1] = (Units within 85.00 of (Position of BM[1]))
Unit Group - Pick every unit in BMGroup[1] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A structure) Equal to False
((Picked unit) belongs to an enemy of (Owner of BM[1])) Equal to True
((Picked unit) is alive) Equal to True
((Picked unit) is in BMGroup2) Not equal to True
Then - Actions
Unit Group - Add (Picked unit) to BMGroup2
Unit - Cause BM[1] to damage (Picked unit), dealing (Real(((Agility of BM[1] (Include bonuses)) x 5))) damage of attack type Hero and damage type Cold
EGUI Effect - Create an effect at (Position of (Picked unit)) using the model Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl that lasts for 1.00 seconds
Else - Actions
Custom script: call DestroyGroup ( udg_BMGroup[1] )
Custom script: call DestroyGroup ( udg_BMGroup2 )
Đây là chiêu lướt tới trước mặt cho em hỏi khi lướt 1 unit nó lướt qua có khi gây dame tới 2 lần mà em đả bỏ Picked unit vào Group rồi ?
Cái chiêu này sai ở chỗ là không có điều kiện để phát hiện rằng đã gây damage chưa? Nên cho một cái boolean và khi Pick Group đó set boolean nó bằng True! Cậu nên nhớ phải đưa ham Pick Group đó vào hàm If then else với Condition là Boolean đó là false nhé!
p/s: Tom đâu rồi mà để Fleep spam bên THẢO LUẬN Cuộc thi tạo hero thế nhỉ ??

Chỉnh sửa cuối:



còn hero ấn thì tùy cậu
)

