langthangbairac
T.E.T.Я.I.S
- 19/5/12
- 594
- 767
anh Tom, chỉ em phần inventory đi n:X
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.
Mã:CheckRandom Events Player - Player 1 (Red) types a chat message containing -random as An exact match Conditions Actions Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Number of units in TempGroup) Equal to 0 Then - Actions -------- ko co hero -------- Else - Actions -------- co hero -------- Custom script: call DestroyGroup( udg_TempGroup )
ko co hero: chạy lệnh random
co hero: hiện thông báo
Mã:CheckMS Events Player - Player 1 (Red) types a chat message containing -ms as An exact match Conditions Actions Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) Set TempForce = (Player group((Triggering player))) Unit Group - Pick every unit in TempGroup and do (Actions) Loop - Actions Game - Display to TempForce for 30.00 seconds the text: ((Name of (Picked unit)) + ('s movement speed is + (String((Current movement speed of (Picked unit)))))) Custom script: call DestroyForce( udg_TempForce ) Custom script: call DestroyGroup( udg_TempGroup )

Mã:CheckRandom Events Player - Player 1 (Red) types a chat message containing -random as An exact match Conditions Actions Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Number of units in TempGroup) Equal to 0 Then - Actions -------- ko co hero -------- Else - Actions -------- co hero -------- Custom script: call DestroyGroup( udg_TempGroup )
ko co hero: chạy lệnh random
co hero: hiện thông báo
Mã:CheckMS Events Player - Player 1 (Red) types a chat message containing -ms as An exact match Conditions Actions Set TempGroup = (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) Set TempForce = (Player group((Triggering player))) Unit Group - Pick every unit in TempGroup and do (Actions) Loop - Actions Game - Display to TempForce for 30.00 seconds the text: ((Name of (Picked unit)) + ('s movement speed is + (String((Current movement speed of (Picked unit)))))) Custom script: call DestroyForce( udg_TempForce ) Custom script: call DestroyGroup( udg_TempGroup )

cái sau thì ok. nhưng cái đầu thì ko... đc cho lắm. ý em là nếu mà player đó pick (ko -random) thì tự động kháo mã -random của hero đó
bởi vì nếu ko khóa thì pick xong nó- random nữa sẽ đc 2 hero
làm lại dùm em đi![]()
Với lệnh -ms của anh Tom thì bạn nên đặt thêm điều kiện là Level of Locust for matching unit great than 0,nếu không sẽ hiển thị luôn cả củamột số unit dummy đó![]()

cái sau thì ok. nhưng cái đầu thì ko... đc cho lắm. ý em là nếu mà player đó pick (ko -random) thì tự động kháo mã -random của hero đó
bởi vì nếu ko khóa thì pick xong nó- random nữa sẽ đc 2 hero
làm lại dùm em đi![]()

Hero nào có ability Locust?
có hiểu trigger không?
gõ -random, đếm xem thằng gõ lệnh đó có hero nào ko, nếu ko có thì chạy random, có rồi thì hiện thông báo

Hero nào có ability Locust?
có hiểu trigger không?
gõ -random, đếm xem thằng gõ lệnh đó có hero nào ko, nếu ko có thì chạy random, có rồi thì hiện thông báo

Hero nào có ability Locust?
có hiểu trigger không?
gõ -random, đếm xem thằng gõ lệnh đó có hero nào ko, nếu ko có thì chạy random, có rồi thì hiện thông báo
Sorry anh,em ko đọc kỹ
Giờ mọi người cho hỏi cách xác định level của một buff trên người một unit
Mình dùng integer (For (Triggering unit) the level of Acid Bomb) mà giá trị nó vẫn là 1
ồm ồm. Em hiểu rồi. Xin lỗi và cám ơn anh
---------- Post added at 13:28 ---------- Previous post was at 13:26 ----------
tạo ra 4 cái buff khác nhau, change name thành lv1 lv2 lv3 lv4 xong add vào từng lv trong phần buff của abi
Sorry anh,em ko đọc kỹ
Giờ mọi người cho hỏi cách xác định level của một buff trên người một unit
Mình dùng integer (For (Triggering unit) the level of Acid Bomb) mà giá trị nó vẫn là 1
Lệnh này dùng để check hiệu ứng đó có tồn tại trên người hay không . Level 1 = có tồn tại . Level 0 = không tồn tại
Còn cái việc xác định level của một buff là không khả thi cho lắm..( level buff từ level ability ra chứ ở đâu mà thay đổi được )
Muốn lấy level buff sao không lấy level của ability gây ra buff đó .
Thế thì hạn chế,ví dụ muốn tất cả unit đánh vào unit có buff xxx gây damage theo level của ability có buff xxx đó thì xác định kiểu gì :(
buff có nhiều loại : loại buff không có level ( mặc định sẵn trong war như slow..stun..frost..banish ) này thì khỏi lấy
loại buff do ability .nói như trên thì phải tìm được ability nào gây ra buff trên cho unit đó và level của ability đó..level ability chính là level buff.nếu unit đó tự có buff nghĩa là do có ability + buff lên người nó.
Thế thì hạn chế,ví dụ muốn tất cả unit đánh vào unit có buff xxx gây damage theo level của ability có buff xxx đó thì xác định kiểu gì :(
Events
Unit starts effect of an ability
Conditions
Ability being casted equal to Heal
Actions
Set TempInt = Custom value of (target unit of ability being casted)
Set BuffLevel[TempInt] = Level of Heal for triggering unit
Events
Unit is attacked
Conditions
(Attacked unit has buff heal) equal to True
Actions
Unit - cause (attacking unit) deal BuffLevel[Custom value of (attacked unit)] damage to (attacked unit), damage of type...
bác nào chỉ em làm 1 skill blink tarrget đi... blink lại chỗ enemy rồi deal dam..... thế thôi...
pl1
Events
Unit - A unit enters Region 006 <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 1 (Red)
Actions
Trigger - Turn off Player 1 <gen>