Tom_Kazansky
<b><font color="RoyalBlue"><font face="Lucida Cons
- 28/12/06
- Thread starter
- #641
nếu như thế thì không phải ngăn regen! mà là ngăn hok cho ăn HP =]]
rồi sao? nguy hiểm vậy?

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.
nếu như thế thì không phải ngăn regen! mà là ngăn hok cho ăn HP =]]

~cho hỏi muốn cho 1 skill ability * theo level streng/agi/intell thì code phải sao ạ hoặc là *5 hoặc *10 agi/strength/intell thì phải sao ạ hihihihi cho em code dễ hiểu chút nha vì em hơi dốt thanks mấy pro hehehe cho em pics hoac. hinh` hay code de~ de~ chut' nha em mo` 3 thang' rồi mà vẫn chưa rành huhuuhuhhu bùn quá
^ Nếu bạn hiểu:
Cho một giá trị real like as lifereal. để MUI mình sẽ cho lifereal là giá trị real array với index được xác định là lifereal[GetUnitUserData(hero)] và set nó=Current Life của Hero hiện tại.
Ta sẽ cho một biến timer kéo dài và kiểm tra
khi hero có buff chống regen, đơn giản, ta sẽ cho hàm điều kiện quét qua:
If(GetUnitState(hero,UNIT_STATE_LIFE))< lifereal[GetUnitUserData(hero)] then
set lifereal[GetUnitUserData(hero)]=GetUnitState(hero,UNIT_STATE_LIFE)
else
call SetUnitState(hero,UNIT_STATE_LIFE,lifereal[GetUnitUserData(hero)])
endif
tùy cách hiểu code của bạn, hi vọng bạn làm được. Nó có hiệu quả tốt hay hay là ko tùy vào khả năng code của bạn!

cho em hỏi về trigger của 1 skill passive biến hình, nếu trời sáng 6g tới 18 giờ thì unit sẽ giữ nguyên , còn nếu trời tối 18giờ tới 6sáng hôm sau thì unit sẽ biến hình, +30/60/90 movementspeed và + thêm 30/45/60 damg. ~Mong các bác giúp em gấp~

Untitled
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(In-game time of day) Greater than or equal to 18.00
(In-game time of day) Less than or equal to 6.00
Then - Actions
-------- toi' --------
Set TempGroup = (Units of type Knight)
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Set TempLoc = (Position of (Picked unit))
Unit - Create 1 Footman for (Owner of (Picked unit)) at TempLoc facing Default building facing degrees
Selection - Select (Last created unit) for (Owner of (Picked unit))
Unit - Remove (Picked unit) from the game
Custom script: call RemoveLocation(udg_TempLoc)
Custom script: call DestroyGroup(udg_TempGroup)
Else - Actions
-------- sang' --------
Set TempGroup = (Units of type Footman)
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Set TempLoc = (Position of (Picked unit))
Unit - Remove (Picked unit) from the game
Unit - Create 1 Knight for (Owner of (Picked unit)) at TempLoc facing Default building facing degrees
Selection - Select (Last created unit) for (Owner of (Picked unit))
Custom script: call RemoveLocation(udg_TempLoc)
Custom script: call DestroyGroup(udg_TempGroup)

k dc ạ ... vs Hero thì làm thế nó bị ngủm r` ... nếu xài set Hero-lvl thì sẽ fải build lại skill ... @@trigger kiểu đó hok khác gì làm khó "newbie"
vì cái gọi là "biến hình" chỉ là ability active thôi vì thế chỉ có thể thực hiện điều kiện đó bằng custom trigger
chịu khó như thế nhé tạo 1 trigger event là mỗi 1.00, ví dụ như thế
Mã:Untitled Events Time - Every 1.00 seconds of game time Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (In-game time of day) Greater than or equal to 18.00 (In-game time of day) Less than or equal to 6.00 Then - Actions -------- toi' -------- Set TempGroup = (Units of type Knight) Unit Group - Pick every unit in TempGroup and do (Actions) Loop - Actions Set TempLoc = (Position of (Picked unit)) Unit - Create 1 Footman for (Owner of (Picked unit)) at TempLoc facing Default building facing degrees Selection - Select (Last created unit) for (Owner of (Picked unit)) Unit - Remove (Picked unit) from the game Custom script: call RemoveLocation(udg_TempLoc) Custom script: call DestroyGroup(udg_TempGroup) Else - Actions -------- sang' -------- Set TempGroup = (Units of type Footman) Unit Group - Pick every unit in TempGroup and do (Actions) Loop - Actions Set TempLoc = (Position of (Picked unit)) Unit - Remove (Picked unit) from the game Unit - Create 1 Knight for (Owner of (Picked unit)) at TempLoc facing Default building facing degrees Selection - Select (Last created unit) for (Owner of (Picked unit)) Custom script: call RemoveLocation(udg_TempLoc) Custom script: call DestroyGroup(udg_TempGroup)
P/S: trigger chỉ mang tính tham khảo nó vẫn còn những lỗi xảy ra ngoài ý muốn![]()
k dc ạ ... vs Hero thì làm thế nó bị ngủm r` ... nếu xài set Hero-lvl thì sẽ fải build lại skill ... @@

chẳng hạn như Ctrl +1 save vị trí hero khi biến hình thì sẽ không nhớ được hotkey đâu tại vì họ không phải là một handle cũng thế ...
cho hỏi muốn cho 1 skill ability * theo level streng/agi/intell thì code phải sao ạ hoặc là *5 hoặc *10 agi/strength/intell thì phải sao ạ hihihihi cho em code dễ hiểu chút nha vì em hơi dốt thanks mấy pro hehehe cho em pics hoac. hinh` hay code de~ de~ chut' nha em mo` 3 thang' rồi mà vẫn chưa rành huhuuhuhhu bùn quá
Ai Trả lời dùm mình không :(
[spoil]Mình làm cái spell theo dummy nhưng không hiểu tại sao dummy đó lại không dùng spell theo sắp đặt ?
Mình cho con unit đó add spell mặc định là locust và fb
[spoil]Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to nova import
Actions
Unit - Create 1 dummy for (Owner of (Triggering unit)) at (Target point of ability being cast) facing Default building facing degrees
Unit - Set level of fb for (Last created unit) to (Level of nova import for (Triggering unit))
Special Effect - Create a special effect at (Target point of ability being cast) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
Unit - Add a 2.50 second Generic expiration timer to (Last created unit)
Special Effect - Destroy (Last created special effect)[/spoil][/spoil]
[spoil]Nhưng mà mình không nhìn thấy ở chỗ đó thay được point of ...... (sr,tại mình gà nên nhờ bạn chỉ rõ )
P/S:Vừa này mò mò mình thấy có cái Targeting unit (hình như là unit sử dụng spell) nên mình chỉnh,tạo biến nhưng không ra
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Random unit from Target[1])
Trong đó,biến target mình đặt là Unit Group (Empty unit group default)[/spoil]
? Trên : Nếu ai biết làm spell thì cho mình cái map vd về skill có dummy như trên với
? : Giờ mình muốn cho quái theo wave (Ai xem map green td thì thấy quái theo từng wave VD:wave 1 gồm có 27 con,con quái là footman) Chỉ mình với![]()
cho mình xin links demo và code dễ như anh Tom_Kazansky's Avatar
Tom_Kazansky thường làm nha skill ability * theo level streng/agi/intell thì code phải sao ạ hoặc là *5 hoặc *10 agi/strength/intel nha ^_^ cám ơn mọi người đại gia đình gamevn giúp người khổ

cho mình xin links demo và code dễ như anh Tom_Kazansky's Avatar
Tom_Kazansky thường làm nha skill ability * theo level streng/agi/intell thì code phải sao ạ hoặc là *5 hoặc *10 agi/strength/intel nha ^_^ cám ơn mọi người đại gia đình gamevn giúp người khổ
Ko biết câu này hỏi mấy trăm lần rồi 8-)
Mã:Unit - Cause (Casting unit) to damage (Triggering unit), dealing ((Real((Level of Acid Bomb for (Casting unit)))) x (Real((Strength of (Casting unit) (Include bonuses))))) damage of attack type Spells and damage type Normal
Còn x5 x10 nữa tự mò xíu là ra
Tham gia lâu rồi mà nói mò ko ra nữa thôi bỏ we mịa đi![]()


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(In-game time of day) Greater than or equal to 18.00
(In-game time of day) Less than or equal to 6.00
Then - Actions
-------- toi' --------
Else - Actions
-------- sang' --------
Mình Đã Sửa lại thành : Unit - Create 1 dummy for (Owner of (Triggering unit)) at (Position of (Target destructible of ability being cast)) facing Default building facing degrees Nhưng lại không đượcSkill đầu tiên của cậu là frost nova hả? Nó là thể loại target unit chứ gì. Vậy thì đừng dùng Target point of ability being cast mà hãy dùng Position of (Unit being targeted of ability being cast) rồi tạo Dummy tại cái Position đó.
Mà cậu có thể cho mình cái map demo thử được không . mà kiểu target unit hoặc không target thì phải chỉnh dòng creat dummy nhỉ 


áp dụng cách này để check .
Cho em hỏi nếu sáng ... k cho sử dụng skill thì làm s dissable skill đó dc v.