kingwar2010
T.E.T.Я.I.S
- 6/11/09
- 554
- 9,722
ai tiện còn giữ các spell goku cho xin 

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.

Là ally ạ :(.......................


vật thì bỏ tick phần ally trong target đi

Cho em hỏi cách làm chiu giáp của abadon trong dota = GUI với.
[/spoil]hix mọi người giúp mình cái này với
chả là cái Tool war3modeleditor của mình nó dở chứng từ khi cài lại Win. nó ko vô đc file MPQ của war luôn
![]()
Đã vậy khi open model nó còn bị mấy cái hình vuông màu trắng khó chiu,ko mô tả đc đúng model
![]()
mình ko hỉu là tại sao ,hay là do cài lại win thiếu cái gì nên như vậy,bạn nào bít thì giúp với
---------------------------------------------------------
Còn 1 lỗi này khi làm Map cực kì khó chịu luôn
![]()
đôi khi làm spell sau khi save lại vài lần và chỉnh sửa thì nó thường suất hiện cái thư mục như ở trên kia và sau đó là : save map lại thì nó ko cho save lại luôn, nó báo truy cập bị từ chối => làm lại map từ đầu,uổng bao nhiêu công sức. mà mình vô thư mục để xóa cái file đó đi cũng ko dc(tắt WE cũng ko xóa đc), chỉ có cách reset lại máy thì cái thư mục đó mới mất. rất là bực mình![]()

KL Int
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Killer Leaves (Int)(K)
Actions
-------- MUI --------
Set MUI[1] = (MUI[1] + 1)
-------- Set Caster --------
Set KL_Caster[MUI[1]] = (Casting unit)
-------- Facing Caster --------
Set KL_Facing[MUI[1]] = (Facing of KL_Caster[MUI[1]])
-------- Sound --------
Sound - Play KL_Sound <gen> at 100.00% volume, attached to KL_Caster[MUI[1]]
-------- Check Hero --------
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
KL_Caster[MUI[1]] Equal to HeroesUnit[(Integer A)]
Then - Actions
Set KL_PlantOfCaster[MUI[1]] = Heroes_Plant[(Integer A)]
Set KL_WaterOfCaster[MUI[1]] = Heroes_Water[(Integer A)]
Else - Actions
-------- Countdown --------
Set KL_Countdown[MUI[1]] = 40
-------- Timer --------
Countdown Timer - Start KL_Timer as a One-shot timer that will expire in 0.04 seconds
KL Damage
Events
Time - KL_Timer expires
Conditions
Actions
For each (Integer A) from 1 to MUI[1], do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
KL_Countdown[(Integer A)] Equal to 0
Then - Actions
Set KL_Countdown[(Integer A)] = (KL_Countdown[(Integer A)] - 1)
Custom script: call DestroyGroup(udg_KL_LeavesGroup[GetForLoopIndexA()])
Else - Actions
-------- Countdown --------
Set KL_Countdown[(Integer A)] = (KL_Countdown[(Integer A)] - 1)
-------- Create Dummy --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
KL_Countdown[(Integer A)] Greater than or equal to 20
Then - Actions
Set KL_CasterPoint[(Integer A)] = (Position of KL_Caster[(Integer A)])
Set KL_LeafStartPoint[(Integer A)] = (KL_CasterPoint[(Integer A)] offset by (Random real number between 100.00 and 400.00) towards (Random angle) degrees)
Unit - Create 1 Leaf for (Owner of KL_Caster[(Integer A)]) at KL_LeafStartPoint[(Integer A)] facing KL_Facing[(Integer A)] degrees
Unit - Add a 0.80 second Generic expiration timer to (Last created unit)
Unit - Make (Last created unit) Explode on death
Unit Group - Add (Last created unit) to KL_LeavesGroup[(Integer A)]
Animation - Change (Last created unit) flying height to (Current flying height of KL_Caster[(Integer A)]) at 0.00
Unit Group - Add (Last created unit) to Spell_Dummies_NoColour
Custom script: call RemoveLocation(udg_KL_CasterPoint[GetForLoopIndexA()])
Custom script: call RemoveLocation(udg_KL_LeafStartPoint[GetForLoopIndexA()])
Else - Actions
-------- Move Dummy --------
Unit Group - Pick every unit in KL_LeavesGroup[(Integer A)] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
Then - Actions
Set KL_LeafStartPoint[(Integer A)] = (Position of (Picked unit))
Set KL_LeafEndPoint[(Integer A)] = (KL_LeafStartPoint[(Integer A)] offset by 40.00 towards (Facing of (Picked unit)) degrees)
Unit - Move (Picked unit) instantly to KL_LeafEndPoint[(Integer A)]
Custom script: call RemoveLocation(udg_KL_LeafStartPoint[GetForLoopIndexA()])
Custom script: call RemoveLocation(udg_KL_LeafEndPoint[GetForLoopIndexA()])
Else - Actions
-------- Damage --------
-------- Timer --------
Countdown Timer - Start KL_Timer as a One-shot timer that will expire in 0.04 seconds
raivor nói:Ai Giúp em chỉu giáp của abadon trong dota với. Chiu đó là khi buff giáp vào một unit thì giúp unit đó không bị mất máu khi nhận 1 lượng dmg nào đó, khi nhận lượng dmg cộng từ những đòn đánh từ lúc buff mà lớn hơn lượng dmg chiu giáp đó có thể chịu đươc thì giáp sẽ bị mất và gây dmg vào những unit đứng gần.

Abadon Armor
Events
Unit - A unit Is attacked
Conditions
((Triggering unit) has buff Abadon Armor) Equal to True
Actions
Set TempReal = (TempReal + (Damage taken))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TempReal Greater than or equal to TempReal2
Then - Actions
Unit - Remove Abadon Armor buff from (Triggering unit)
Else - Actions
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (Damage taken))


tức là giống như Bone Armor trong Diablo II hay Defence Matrix trong Starcraft chứ gì
Mã:Abadon Armor Events Unit - A unit Is attacked Conditions ((Triggering unit) has buff Abadon Armor) Equal to True Actions Set TempReal = (TempReal + (Damage taken)) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions TempReal Greater than or equal to TempReal2 Then - Actions Unit - Remove Abadon Armor buff from (Triggering unit) Else - Actions Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (Damage taken))
trong đó TempReal là 1 biến real để check xem dam taken có vượt quá sức chịu đựng của Abadon Armor ko, TempReal2 là sức chịu đựng của Abadon Armor (thực ra ko cần đặt biến cũng được), nếu TempReal lớn hơn hoặc bằng TempReal2 thì remove buff, nếu ko thì set máu cho trigger unit coi như là unit đó chưa từng nhận dam
@ghost: chạy được 1 lần là thế nào? tức là cast 1 lần là lần sau đơ luôn hay là chạy được phần đầu, phần sau bị đơ, mà lần sau up trigger lên thì để vàocho mấy cái If/Then/Else với Pick Unit dễ nhìn hơn nhéMã:![]()
.
)