- 13/11/11
- 270
- 160
Em đã thử rồi. Nếu dùng wait thì ko thể xác định đc nó đứng xa hay gần bao nhiêu. Với lại nếu nó giả vờ tấn công thì sau 1 lúc cũng gây damage.Dùng lệnh wait để đợi khi missle tới
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.
Em đã thử rồi. Nếu dùng wait thì ko thể xác định đc nó đứng xa hay gần bao nhiêu. Với lại nếu nó giả vờ tấn công thì sau 1 lúc cũng gây damage.Dùng lệnh wait để đợi khi missle tới
Dùng lệnh wait để đợi khi missle tới
Thay vì dùng event Unit is attacked, thì bạn nên dùng Unit take damage, nhưng do event này đặc biệt nên cần 1 trigger khác add event cho trigger chínhEm đang làm skill 3 của Storm trong DotA. Nhưng nó cứ chuẩn bị tấn công thì ở chỗ thằng bị tấn công đã gây damage rồi. Ai biết làm cho cái missile của nó bay đến rồi mới gây damage ko thì chỉ em với.
Unit take damage 1
Event
Time eslapse 0 second
Condition
Action
Unit - Pick everys unit in playable map area
Action - Loop
Unit Group - Add pick unit to TakeDamageGroup
Trigger - Add new event (Pick unit take damage) to Main Trigger
Unit take damage 2
Event
Unit entered playable map area
Condition
Triggering unit is in TakeDamageGroup equal to false
Action
Unit Group - Add triggering unit to TakeDamageGroup
Trigger - Add new event (Triggering unit take damage) to Main Trigger
Main Trigger
Event
Condition
Action
<Your action>
Quote vì chưa dc a NgOc Le0 hay ai khác giúp về demo
Câu hỏi 2 : cho em hỏi về cách làm 1 spell target vào đối thủ... giúp mìnk chạy tới đối thủ ( giống Charge Of Darkness của Barathrum trong DotA ) nhưng nếu đối thủ dưới 50% máu thì tốc độ chạy tăng 20%/30%/40% ... khi khoảng cách giữa mình và đối thủ còn 500AoE ... lập tức nhảy tới ....và stun 1s . Nếu khi đang chạy tới đổi thủ mà mình đổi hướng sang con khác thì sẽ mất khả năng tăng tốc độ chạy.
tks trước ạ !
~ ...2:Mình định làm 10 con phoenix thẳng hàng nhưng cứ mỗi lần tạo thì nó quay hướng khác nhau :(
2:Mình định làm 10 con phoenix thẳng hàng nhưng cứ mỗi lần tạo thì nó quay hướng khác nhau :(
Omniattack 1
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Omniattack
Actions
Set Caster = (Casting unit)
Set Target = (Target unit of ability being cast)
Set Temp_Loc = (Position of (Target unit of ability being cast))
Unit - Pause Caster
Unit - Make Caster Invulnerable
Unit - Hide Caster
Animation - Change Caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 65.00% transparency
For each (Integer A) from 1 to 15, do (Actions)
Loop - Actions
Wait 0.10 seconds
Set Temp_Group = (Units within 550.00 of Temp_Loc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True) and (((Matching unit) is alive) Equal to True))))
Set Temp_Group2 = (Random 1 units from Temp_Group)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Temp_Group2) Greater than or equal to 0
Then - Actions
Unit Group - Pick every unit in Temp_Group2 and do (Actions)
Loop - Actions
Unit - Create 1 Dummy Omniattack for (Owner of Caster) at (Position of (Picked unit)) facing (Position of (Picked unit))
Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 65.00% transparency
Animation - Play (Last created unit)'s attack animation
Special Effect - Create a special effect attached to the chest of (Last created unit) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
Unit - Cause (Last created unit) to damage (Picked unit), dealing 250.00 damage of attack type Spells and damage type Normal
Wait 0.65 seconds
Special Effect - Destroy (Last created special effect)
Unit Group - Add (Last created unit) to Temp_Group3
Unit Group - Pick every unit in Temp_Group3 and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
EGUI Leak - Destroy Temp_Group
Unit - Unpause Caster
Unit - Make Caster Vulnerable
Unit - Unhide Caster
EGUI Leak - Remove Temp_Loc
EGUI Leak - Destroy Temp_Group2
CHo mình hỏi làm sao để thấu kính Z tăng xa hơn nữa để có thể nhìn thấy ngọn núi từ xa chứ không phải thấy nền trời như trong hình vẽ vậy.Bro nào chỉ giùm mình với .Thanks![]()
![]()
cho mình hỏi trong trigger này, tại sao Caster không Unhide được, Dummy không Remove được?
Mã:Omniattack 1 Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to Omniattack Actions Set Caster = (Casting unit) Set Target = (Target unit of ability being cast) Set Temp_Loc = (Position of (Target unit of ability being cast)) Unit - Pause Caster Unit - Make Caster Invulnerable Unit - Hide Caster Animation - Change Caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 65.00% transparency For each (Integer A) from 1 to 15, do (Actions) Loop - Actions Wait 0.10 seconds Set Temp_Group = (Units within 550.00 of Temp_Loc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True) and (((Matching unit) is alive) Equal to True)))) Set Temp_Group2 = (Random 1 units from Temp_Group) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Number of units in Temp_Group2) Greater than or equal to 0 Then - Actions Unit Group - Pick every unit in Temp_Group2 and do (Actions) Loop - Actions Unit - Create 1 Dummy Omniattack for (Owner of Caster) at (Position of (Picked unit)) facing (Position of (Picked unit)) Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 65.00% transparency Animation - Play (Last created unit)'s attack animation Special Effect - Create a special effect attached to the chest of (Last created unit) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl Unit - Cause (Last created unit) to damage (Picked unit), dealing 250.00 damage of attack type Spells and damage type Normal Wait 0.65 seconds Special Effect - Destroy (Last created special effect) Unit Group - Add (Last created unit) to Temp_Group3 Unit Group - Pick every unit in Temp_Group3 and do (Actions) Loop - Actions Unit - Remove (Picked unit) from the game Else - Actions EGUI Leak - Destroy Temp_Group Unit - Unpause Caster Unit - Make Caster Vulnerable Unit - Unhide Caster EGUI Leak - Remove Temp_Loc EGUI Leak - Destroy Temp_Group2
cho mình hỏi trong trigger này, tại sao Caster không Unhide được, Dummy không Remove được?
Mã:Omniattack 1 Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to Omniattack Actions Set Caster = (Casting unit) Set Target = (Target unit of ability being cast) Set Temp_Loc = (Position of (Target unit of ability being cast)) Unit - Pause Caster Unit - Make Caster Invulnerable Unit - Hide Caster Animation - Change Caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 65.00% transparency [B] For each (Integer A) from 1 to 15, do (Actions)[/B] Loop - Actions [B] Wait 0.10 seconds[/B] Set Temp_Group = (Units within 550.00 of Temp_Loc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True) and (((Matching unit) is alive) Equal to True)))) Set Temp_Group2 = (Random 1 units from Temp_Group) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Number of units in Temp_Group2) Greater than or equal to 0 Then - Actions Unit Group - Pick every unit in Temp_Group2 and do (Actions) Loop - Actions Unit - Create 1 Dummy Omniattack for (Owner of Caster) at (Position of (Picked unit)) facing (Position of (Picked unit)) Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 65.00% transparency Animation - Play (Last created unit)'s attack animation Special Effect - Create a special effect attached to the chest of (Last created unit) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl Unit - Cause (Last created unit) to damage (Picked unit), dealing 250.00 damage of attack type Spells and damage type Normal [B]Wait 0.65 seconds[/B] [B] Special Effect - Destroy (Last created special effect)[/B] Unit Group - Add (Last created unit) to Temp_Group3 Unit Group - Pick every unit in Temp_Group3 and do (Actions) Loop - Actions Unit - Remove (Picked unit) from the game Else - Actions EGUI Leak - Destroy Temp_Group Unit - Unpause Caster Unit - Make Caster Vulnerable Unit - Unhide Caster EGUI Leak - Remove Temp_Loc EGUI Leak - Destroy Temp_Group2
. nhớ sẵn tạo 1 variable dành cho Loop tránh loop.CHo mình hỏi làm sao để thấu kính Z tăng xa hơn nữa để có thể nhìn thấy ngọn núi từ xa chứ không phải thấy nền trời như trong hình vẽ vậy.Bro nào chỉ giùm mình với .Thanks![]()
![]()
Làm sao để một unit xác định được player đang điều khiển unit đó khi các player share unit cho nhau ?
Mình đang làm con chim đưa đồ kiểu Dota,khi player nào điều khiển nó sẽ mang đồ tới cho Hero của player đó,mình thử dùng nhiều event rồi mà không khả thi cho lắm,ai có ý tưởng nào hay chỉ giúp mình với :)
//Player - Player Alliance Towards Player
(Player 2 (Blue) is giving Player 1 (Red) Shared units) Equal to True
1/ trigger mình leak chỗ nào? Chỉ giùm mình đi để mình sửa
2/ chưa MUI vì mình chưa học? Mà học thế nào?
3/ tại sao Caster không được Unhide?
4/ tại sao chỉ gây dam được một unit?

Chỉ mình cách làm skill select target với,chỉ cụ thể chút nha![]()