Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
. Anh ơi em ít chơi nên anh làm ơn mô phỏng dùm em.
Bắn tên , chiêu này quen quen nhưng ko biết phải là bắng ra 8 hướng ko cần trùng unit hay ko nhỉ.:wink:
)to pikeman :
ông nội này trích câu của Nam Cao làm chữ ký thấy ghét.Câu đó chỉ đúng hồi xưa, hồi đó ai cũng ăn đói . Thời nay mời con gái vào nhà hàng hay quán cóc thì chúng nó cũng ăn như mèo ,ông sống ở thế kỷ trước hay sao vậy ? (hay vớ phải 1 bé heo rồi ?)
Anh Giúp em làm spell đó đi nha , thx anh nhiều lắm, em đang bận làm diễn đàn, học PHP và JAVA và C , C++ , C# ,Pascal... nên ko có thời gian để làm Spell, mong mấy anh giúp đỡto Vua_Do_Hoa :
AoE để bắt 1 unit thường chỉ cần 60 . trên 60 thì nó bắt có khi 2 unit. lúc đó lệnh pick của mình là random 1 unit matching condittion... theo kinh nghiệm thì mấy mũi tên bay tầm cao 100 là đẹp.
phép này ko khó làm , có điều hơi dài tí.
Này các bạn cho tớ hỏi cái : làm sao để copy spell từ map khác ( map của các bạn ) sang map của tớ 1 cách nhanh chóng ... ?
tớ copy có 1 spell mà mất cả 5 tiếng vẫn chua xong vì lỗi tùm lum ...
Mình gà hiihi thông cảm nghe

Thế cái biến , loại biến mà bạn nói là cái TempPoint* gì đó đúng không ?
Map của người # là TeamPoint2 ( unit ) còn map của tớ có sẵn cũng tên TeamPoint2 ( Abi..)
Thì có sử dụng chung được không ?

Cụ thể là bắn ra một sợi chỉ năng lượng quấn lấy đối phương rồi quay và kéo dần đối phương về phía mình ... OverTo !|cff00ff00Long
Cái Spell mà bạn copy từ map của mình thì bạn cần xem lại cái Dummy có hình StarFall chưa , còn mấy cái khác thì bình thường ... muốn thêm hiệu ứng sau mỗi làm nổ thì cứ việc:wink:

[B]WE Begin[/B]
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to [I]Wild Axe [/I]
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[B]Ball_1[/B] Equal to No unit
[B]Ball_2[/B] Equal to No unit
Then - Actions
Do nothing
Else - Actions
Unit - Kill [B]Ball_1[/B]
Unit - Kill [B]Ball_2[/B]
Custom script: call RemoveLocation( [B]udg_TempLoc[/B] )
Custom script: call RemoveLocation( [B]udg_TempLoc2[/B] )
Trigger - Turn off WE Action 1 <gen>
Trigger - Turn off WE Action 2 <gen>
Set [B]Hero[/B] = (Triggering unit)
Set [B]TempLoc[/B] = (Position of [B]Hero[/B])
Set [B]TempLoc2[/B] = (Target point of ability being cast)
Set [B]Angle1[/B] = ((Angle from [B]TempLoc[/B] to [B]TempLoc2[/B]) - 27.00)
Set [B]Angle2[/B] = ((Angle from [B]TempLoc[/B] to [B]TempLoc2[/B]) + 27.00)
Set [B]Distance[/B] = (Distance between [B]TempLoc [/B]and [B]TempLoc2[/B])
Set [B]Int[/B] = 0
Set [B]Int_2[/B] = 0
Unit - Create 1 [U]Exe[/U] for (Owner of [B]Hero[/B]) at [B]TempLoc[/B] facing [B]Angle1[/B] degrees
Set [B]Ball_1[/B] = (Last created unit)
Unit - Create 1 [U]Exe[/U] for (Owner of [B]Hero[/B]) at [B]TempLoc[/B] facing [B]Angle2[/B] degrees
Set [B]Ball_2[/B] = (Last created unit)
Unit - Turn collision for [B]Ball_1[/B] Off
Unit - Turn collision for [B]Ball_2[/B] Off
Trigger - Turn on [I]WE Action 1[/I] <gen>
Trigger - Turn on [I]WE Action 2[/I] <gen>
Custom script: call RemoveLocation( udg_[B]TempLoc[/B] )
[B]WE Action 1[/B]
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set [B]TempLoc[/B] = (Position of [B]Hero[/B])
Unit - Move [B]Ball_1[/B] instantly to ([B]TempLoc[/B] offset by (Distance x (Sin((1.00 x (Real([B]Int[/B])))))) towards [B]Angle1[/B] degrees), facing [B]Angle1[/B] degrees
Set [B]Int[/B] = ([B]Int[/B] + 1)
Set [B]Angle1[/B] = ([B]Angle1[/B] + 0.30)
Unit Group - Pick every unit in (Units within 150.00 of (Position of [B]Ball_1[/B]) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of [B]Hero[/B])) Equal to True)))) and do (Actions)
Loop - Actions
Unit - Turn collision for (Picked unit) Off
Unit - Cause [B]Hero[/B] to damage (Picked unit), dealing ((Real((Level of [I]Wild Axe[/I] for [B]Hero[/B]))) x 2.00) damage of attack type Chaos and damage type Universal
Unit - Turn collision for (Picked unit) On
Destructible - Pick every destructible within 100.00 of (Position of [B]Ball_1[/B]) and do (Actions)
Loop - Actions
Destructible - Kill (Picked destructible)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[B]Int[/B] Equal to 180
Then - Actions
Trigger - Turn off (This trigger)
Unit - Remove [B]Ball_1[/B] from the game
Custom script: call RemoveLocation( udg_[B]TempLoc[/B] )
Custom script: call RemoveLocation( udg_[B]TempLoc2[/B] )
Custom script: set [B]udg_Hero[/B] = null
Custom script: set [B]udg_Ball_1[/B] = null
Else - Actions
Custom script: call RemoveLocation( udg_[B]TempLoc[/B] )
[B]WE Action 2[/B]
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Set [B]TempLoc[/B] = (Position of [B]Hero[/B])
Unit - Move [B]Ball_2 [/B]instantly to ([B]TempLoc[/B] offset by ([B]Distance[/B] x (Sin((1.00 x (Real([B]Int)[/B]))))) towards [B]Angle2[/B] degrees), facing [B]Angle2[/B] degrees
Set [B]Int_2[/B] = ([B]Int_2[/B] + 1)
Set [B]Angle2[/B] = ([B]Angle2[/B] - 0.30)
Unit Group - Pick every unit in (Units within 150.00 of (Position of [B]Ball_2[/B]) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of Hero)) Equal to True)))) and do (Actions)
Loop - Actions
Unit - Turn collision for (Picked unit) Off
Unit - Cause [B]Hero[/B] to damage (Picked unit), dealing ((Real((Level of [I]Wild Axe[/I] for [B]Hero[/B]))) x 2.00) damage of attack type Chaos and damage type Universal
Unit - Turn collision for (Picked unit) On
Destructible - Pick every destructible within 100.00 of (Position of [B]Ball_1[/B]) and do (Actions)
Loop - Actions
Destructible - Kill (Picked destructible)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[B]Int_2[/B] Equal to 180
Then - Actions
Trigger - Turn off (This trigger)
Unit - Remove [B]Ball_2[/B] from the game
Custom script: call RemoveLocation( udg_[B]TempLoc[/B] )
Custom script: call RemoveLocation( udg_[B]TempLoc2[/B] )
Custom script: set [B]udg_Hero [/B]= null
Custom script: set [B]udg_Ball_2[/B] = null
Else - Actions
Custom script: call RemoveLocation( [B]udg_TempLoc[/B] )
(TempLoc offset by (Distance x (Sin((1.00 x (Real(Int)))))) towards Angle1 degrees)
(Position of Ball_1)
(TempLoc offset by (Distance x (Sin((1.00 x (Real(Int)))))) towards Angle2 degrees)
Cứ mỗi 0.01s leak 4 location này(Position of Ball_1) // ở trigger WE Action 2, cả 2 trigger đều destroy tree xung quanh 1 axe ?

(Units within 150.00 of (Position of Ball_1) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of Hero)) Equal to True))))
(Units within 150.00 of (Position of Ball_2) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of Hero)) Equal to True))))
ko hề vớ vẩn)global variables ko cần phải nullCustom script: set udg_Hero = null
Custom script: set udg_Ball_2 = null
Tắt, bật collides của unit trước và sau khi deal damage để làm gì ?Unit - Turn collision for (Picked unit) Off
Unit - Cause Hero to damage (Picked unit), dealing ((Real((Level of Wild Axe for Hero))) x 2.00) damage of attack type Chaos and damage type Universal
Unit - Turn collision for (Picked unit) On