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.
Có vài cách gợi ý cho bạn:thank bạn nhiều nhé.
Ý mình là mình đã add sẵn 4skill rồi chỉ đc add thêm 1 cái nữa là full trong khi đó m muốn add thêm 3 cái AB mỗi cái 1 loại ấy nữa cơ
Có thể nào tạo dummy có Attribute Bonus đi theo m hễ m cộng Attribute cho nó thì m cũng đc cộng atribute
Còn cái khổ hơn nhưng vẫn melee, tạo dummy có skill đó và khi attack thì tạo dummy cho nó cast spell auto vàoak mình cũng nghĩ ra nhưng đang hỏi là có auto cast nào dành cho melee ko để đỡ phải chỉnh thành missle.
Xin spell để học tập cách MUI mà :)
. Mình mới chơi Dota nhưng thấy con bò cạp trong đó là dạng attack missle đó, có gì đâu 
Với skill đó là Attack Bonus, base từ Evasion hay aura nào đó.Ai chỉ mình cách làm spell dựa vào số lần một Hero tấn công một unit, VD như là Mountain King đánh Footman 4 lần thì được tăng 50% dam. Thanks trước :)
Trigger 1
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to [B]Bonus Attack[/B]
Actions
Set D_Hero = (Learning Hero)
Trigger - Turn on Trigger 2 <gen>
Trigger 2 [COLOR="Blue"]// cái này để off sẵn[/COLOR]
Events
Unit - A unit Is attacked
Conditions
(Attacking unit) Equal to D_Hero
Actions
Trigger - Turn off (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Attacked unit) Equal to D_Unit
Then - Actions
Set D_Count = (D_Count + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
D_Count Equal to 4
Then - Actions
Unit - Create 1 Dummy for (Owner of D_Hero) at (Position of D_Hero) facing Default building facing degrees
Unit - Add Roar to (Last created unit)
Unit - Order (Last created unit) to Night Elf Druid Of The Claw - Roar
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Else - Actions
Else - Actions
Set D_Unit = (Attacked unit)
Set D_Count = 1
Trigger - Turn on (This trigger)
YAN[asian];17840674 nói:Mình muốn làm trigger khi mới vào game thì kiểm tra xem player nào có người chơi thì tạo 1 Hero cho player đấy, ko có người chơi thì ko tạo thì làm thế nào?
)
và ko có WE ở đây nên bạn thông cảm.Layer -> CameraCho hỏi làm sao để giãn kích cớ của camera trong game
dang như trong Dota là 1k6 còn map mình làm cư bị ỡ 800 hoài
Tornadoes
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Tornadoes
Actions
-------- Variable --------
Set Caster[35] = (Casting unit)
Set Caster[34] = (Target unit of ability being cast)
Set Points[35] = (Position of Caster[34])
Set Dame = ((Real((Level of Tornadoes for Caster[35]))) x ((Real((Agility of Caster[35] (Include bonuses)))) x 9.00))
-------- Effect --------
Unit - Create 1 Dummy for (Owner of Caster[35]) at Points[35] facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-------- Dame --------
Set UnitGroups[35] = (Units within (300.00 x (Real((Level of (Ability being cast) for Caster[35])))) of Points[35] matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is in K_Group[2]) Equal to False)) and (((Owner of (Matching unit)) is an enemy of (Owner
Unit Group - Pick every unit in UnitGroups[35] and do (Actions)
Loop - Actions
If ((Level of Tornadoes for Caster[35]) Equal to 1) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
If ((Level of Tornadoes for Caster[35]) Equal to 2) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
If ((Level of Tornadoes for Caster[35]) Equal to 3) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
If ((Level of Tornadoes for Caster[35]) Equal to 4) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
If ((Level of Tornadoes for Caster[35]) Equal to 5) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing)
-------- Leak --------
Unit Group - Remove all units from UnitGroups[35]
Cho e hỏi cái này trigger này lỗi chỗ nào và leak mà sao khi e dùng skill thì hok có dame ( Skill base từ Cluster Rocket)
Mã:Tornadoes Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to Tornadoes Actions -------- Variable -------- Set Caster[35] = (Casting unit) Set Caster[34] = (Target unit of ability being cast) Set Points[35] = (Position of Caster[34]) Set Dame = ((Real((Level of Tornadoes for Caster[35]))) x ((Real((Agility of Caster[35] (Include bonuses)))) x 9.00)) -------- Effect -------- Unit - Create 1 Dummy for (Owner of Caster[35]) at Points[35] facing Default building facing degrees Unit - Add a 1.00 second Generic expiration timer to (Last created unit) -------- Dame -------- Set UnitGroups[35] = (Units within (300.00 x (Real((Level of (Ability being cast) for Caster[35])))) of Points[35] matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is in K_Group[2]) Equal to False)) and (((Owner of (Matching unit)) is an enemy of (Owner Unit Group - Pick every unit in UnitGroups[35] and do (Actions) Loop - Actions If ((Level of Tornadoes for Caster[35]) Equal to 1) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing) If ((Level of Tornadoes for Caster[35]) Equal to 2) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing) If ((Level of Tornadoes for Caster[35]) Equal to 3) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing) If ((Level of Tornadoes for Caster[35]) Equal to 4) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing) If ((Level of Tornadoes for Caster[35]) Equal to 5) then do (Unit - Cause Caster[35] to damage (Picked unit), dealing Dame damage of attack type Spells and damage type Normal) else do (Do nothing) -------- Leak -------- Unit Group - Remove all units from UnitGroups[35]
mà đáng ra phải làSet Caster[34] = (Target unit of ability being cast)
Set TargetPoint = (Target point of ability being cast)
vẫn k có dame bạn ạk, chỉnh chỗ Dame như thế nào?
call DestroyGroup(udg_Tên unit group)
Tưởng phải là Damage chứ bạn hihivẫn k có dame bạn ạk, chỉnh chỗ Dame như thế nào?
Cám ơn KulKan xD. Anw, muốn làm thêm 2 cái nữa là khi Item Cooldown thì không drop được với anti pump như nào nhỉ :'> (mute item như Dotathế này nhá, lúc nhận damage -> lắp hết các slot trống (item fade) -> drop and give item khác -> Remove các item fade -> đơi 1 chút -> lắp hết các slot trống (item fade) -> drop item khác và give lại item cũ -> Remove các item fade, như thế sẽ không bị chạy chỗ item, mẹo thôi, không thì dùng system ItemUlti nhé
)Trigger 1
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Bonus Attack
Actions
Set D_Hero = (Learning Hero)
Trigger - Turn on Trigger 2 <gen>
Trigger 2 // cái này để off sẵn
Events
Unit - A unit Is attacked
Conditions
(Attacking unit) Equal to D_Hero
Actions
Trigger - Turn off (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Attacked unit) Equal to D_Unit
Then - Actions
Set D_Count = (D_Count + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
D_Count Equal to 4
Then - Actions
Unit - Create 1 Dummy for (Owner of D_Hero) at (Position of D_Hero) facing Default building facing degrees
Unit - Add Roar to (Last created unit)
Unit - Order (Last created unit) to Night Elf Druid Of The Claw - Roar
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Else - Actions
Else - Actions
Set D_Unit = (Attacked unit)
Set D_Count = 1
Trigger - Turn on (This trigger)
Sorry, cho mình hỏi thêm, chẳng hạn là con búa lùn đánh Footman 1 xong rồi đánh con Footman 2 vân vân,.. Sau 4 lần đánh thì dam nó tăng 50% thì phải làm sao. Cám ơn đoạn code của bạn lonewolf020291. Nhưng đoạn code đó chỉ có tác dụng khi Hero tấn công "duy nhất" 1 unit đủ 4 lần, còn trường hơp 1 Hero đánh nhiều unit nhưng sau khi đánh đủ 4 lần thì phải làm ntn ?? Xin lỗi vì đã làm phiền nhưng mình kô giỏi (hay kô đủ thông minh) để viết code. Cám ơn các bạn. Đây là 2 triggers của lonewolf020291.
Trigger 2 // cái này để off sẵn
Events
Unit - A unit Is attacked
Conditions
(Attacking unit) Equal to D_Hero
Actions
Trigger - Turn off (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
[U][B](Attacked unit) Equal to D_Unit[/B][/U]
Then - Actions
Set D_Count = (D_Count + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
D_Count Equal to 4
Then - Actions
Unit - Create 1 Dummy for (Owner of D_Hero) at (Position of D_Hero) facing Default building facing degrees
Unit - Add Roar to (Last created unit)
Unit - Order (Last created unit) to Night Elf Druid Of The Claw - Roar
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Else - Actions
Else - Actions
Set D_Unit = (Attacked unit)
Set D_Count = 1
Trigger - Turn on (This trigger)