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.
Quote. Cho em hỏi thêm câu nữa: em đang làm skill Powershot của Windrunner trong DotA. Đến phần damage thì em dùng biến Unit group để gây damage cho bọn xung quanh. Nhưng mà tụi nó toàn nhận damage nhiều hơn lượng damage em đặt. Có ai biết làm sao cho mỗi thằng chỉ nhận damage 1 lần thôi ko?
mấy bạn cho mình hỏi mình dùng phần mền War3ModelEditor đễ phóng to và nhỏ model như mà model nó bị méo ,vậy làm sao đễ phóng to và nhỏ model mà ko bị méo
.cám ơn bạn giúp mình vậy bạn có thể hướng dẫn mình cách sử dụng 3dsmax hoặc giúp mình phóng nhỏ 1 model được ko
ai biết thì chỉ giúp với thank

gọi là desync là đa số gặp lỗi trigger, mã dữ liệu truyền giữa host và client không đồng bộ.
Vậy làm thế nào để khắc phục vấn đề này @.@
lúc này bản thân ng chơi là Player 1 Red đó sẽ có dữ liệu truyền đi rằng tôi thấy mọi ng đã được gửi một tin nhắn mới.If (Local player)==Player 1 (red) then
call Display text message "Really?" to (All players)
endif

kiểm tra và chỉnh sửa sự bất đồng bộ đó đi
một số ví dụ đơn giản:
lúc này bản thân ng chơi là Player 1 Red đó sẽ có dữ liệu truyền đi rằng tôi thấy mọi ng đã được gửi một tin nhắn mới.
Xong thì mấy ng khác và host sẽ nhận đk tin đó tuy nhiên lại không thấy gửi tin nhắn gì cả, ây ra là bu lại đập tên nói dối -> disconnect
một số thứ khác như create Effect, player này thấy player kia không thấy "cũng có thể" bị lỗi nữa nhé, một khi local player gửi tin đến các player khác rằng "tôi đã tạo một effect" nhưng lại ko đồng bộ tương tự thì lập tức bị "disconnect" tên local đó ngay hay thậm chí cả mạng trừ host ra.
Để khắc phục sự cố đó với Create Effect, mình thường sử dụng local string s="", nếu là local player thì set s="ABC.mdl" rồi tạo effect đó với đường dẫn là s.
Như vậy, tên local sẽ gửi đến các máy khác rằng "Tôi đã tạo một effect", thằng host sẽ trả lời lại rằng "tôi biết, có lẽ nó đang sử dụng Wild Walk nên tôi ko thấy đk, nhưng cái máy tôi thì nó thấy rồi nói cho tôi đây này!"
-> Hi vọng từ ví dụ trên bạn có thể rút ra đk: Khi một action "chỉ chạy" riêng cho một player, tình trạng disconnect sẽ xảy ra rất rất dễ dàng bạn nhé :)
Thuong
Events
Unit - A unit Acquires an item
Conditions
(((Hero manipulating item) has an item of type [|cfff8da07NhiÖm Vô|r] Mãn gµ KFC) Equal to True) and (((Hero manipulating item) has an item of type |cffffff00ThÞt Gµ|r) Equal to True)
Actions
Set Hero_Quest = (Position of (Hero manipulating item))
Item - Remove (Item carried by (Hero manipulating item) of type |cffffff00ThÞt Gµ|r)
Item - Remove (Item carried by (Hero manipulating item) of type [|cfff8da07NhiÖm Vô|r] Mãn gµ KFC)
Special Effect - Create a special effect at Hero_Quest using Abilities\Spells\Other\Transmute\PileofGold.mdl
Special Effect - Destroy (Last created special effect)
Game - Display to (Player group((Owner of (Hero manipulating item)))) for 1.00 seconds the text: |cffffdead+ 1000 Ex...
Hero - Add 1000 experience to (Hero manipulating item), Hide level-up graphics
Player - Add 500 to (Owner of (Hero manipulating item)) Current gold
Hero - Create |cffff8040Gµ KFC|r (|cffffff00LÃn|r) and give it to (Hero manipulating item)
Game - Display to (Player group((Owner of (Hero manipulating item)))) for 1.00 seconds the text: |cffffdeadNhiÖm V...
Custom script: call RemoveLocation( udg_Hero_Quest )
Choose Event 1
Events
Unit - A unit enters Event <gen>
Conditions
((Entering unit) is A Hero) Equal to True
(Owner of (Entering unit)) Equal to Player 1 (Red)
Actions
Trigger - Turn off Choose Event 2 <gen>
Trigger - Turn off Choose Event 3 <gen>
Trigger - Turn off Choose Event 4 <gen>
Trigger - Turn off Choose Event 5 <gen>
Trigger - Turn off Choose Event 6 <gen>
Trigger - Turn off Choose Event 7 <gen>
Trigger - Turn off Choose Event 8 <gen>
Dialog - Change the title of ChonEvent to Lùa Chän Thö Th...
Dialog - Create a dialog button for ChonEvent labelled LuyÖn tËp vÃi Na...
Set EventNamine = (Last created dialog Button)
Dialog - Create a dialog button for ChonEvent labelled LuyÖn tËp vÃi Th...
Set EventExp = (Last created dialog Button)
Dialog - Create a dialog button for ChonEvent labelled Thu Ho¹ch Vµng
Set EventGold = (Last created dialog Button)
Dialog - Create a dialog button for ChonEvent labelled H¹ Rång Löa
Set EventDragon = (Last created dialog Button)
Dialog - Create a dialog button for ChonEvent labelled Tho¸t
Set EventESC = (Last created dialog Button)
Dialog - Show ChonEvent for Player 1 (Red)
Unit - Pause (Entering unit)
Mình cũng hiểu được đôi chút về giải pháp bạn đề cập ^^ Nhưng mình có đôi chút thắc mắc :
- Action chạy riêng cho Player là dạng action hay có phần dành cho "Red Player","Blue Player" hay là "Picked Unit""Trigging Unit""Enter Unit" ?
- Nhưng với tất cả "Create special effect" thì đều phải thêm dòng string trên hủm bạn ... như thế thì thật sự rất nhiều lẫn effect lẫn spell @.@
)Zúp mình vs :(. khi hero sử dụng spell Mirror Image tạo ra bóng. khi hero sử dụng spell Thunder Clap thì ngay tại chỗ mỗi bóng sẽ tạo 1 e dummy và e dummy đó xài spell Thunder Clap.Thanks nhìu :(

Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Thunder Clap
Triggering unit is a Hero Equal to True
Actions
Set Point[1] = (Position of (Triggering unit))
Set UnitGroup = (Units in (Playable map area) matching (((Matching unit) has buff Phan Than ) Equal to True) and (Owner of (Matching unit)) Equal to (Owner of (Triggering unit))
)
Unit Group - Pick every unit in UnitGroup and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Stop
Animation - Play (Picked unit)'s spell animation
Set Point[2] = (Position of (Picked unit))
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Point[2] facing Default building facing degrees
Unit - Add Thunder Clap to (Last created unit)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
Custom script: call RemoveLocation (udg_Point[2])
Custom script: call DestroyGroup (udg_UnitGroup)
Custom script: call RemoveLocation (udg_Point[1])
à mà quên, disconnect bạn đề cập ở đây là được báo cáo "You were disconnect" hay là "văng tung" ra luôn không thông báo gì hay là "văng" ra và hiện bản báo lỗi?
)À , chơi map dc 1 thời gian (có thể 2,3 phút mới vô hoặc 10 ,15p' v..v. mới xảy ra) thì ngẫu nhiên từng player dis (trừ host , và đa phần là các slot từ slot 3 trở xuống) ... còn văng hiện bảng báo lỗi thì map nào lâu lâu mình cũng thấy bị![]()
Sẵn mình thắc mắc , cái lúc vào Create Host Map , mấy map khác có dung lượng tương tự (6 ~ 7mb) thì click vào 1,2 s sau nó hiện ra Describe Map , còn riêng map mình lag lag tới 3,4s nó mới hiện ... liệu có gì ảnh hưởng hok @.@ ? (Dung lượng thật map là 8,7 mb , dùng Opt nén còn 7,6 mb)

GH2
Events
Player - Player 1 (Red) types a chat message containing -gh2 as An exact match
Player - Player 2 (Blue) types a chat message containing -gh2 as An exact match
Player - Player 3 (Teal) types a chat message containing -gh2 as An exact match
Player - Player 4 (Purple) types a chat message containing -gh2 as An exact match
Player - Player 5 (Yellow) types a chat message containing -gh2 as An exact match
Player - Player 6 (Orange) types a chat message containing -gh2 as An exact match
Player - Player 7 (Green) types a chat message containing -gh2 as An exact match
Player - Player 8 (Pink) types a chat message containing -gh2 as An exact match
Conditions
Actions
Set Hero_GH = (Center of Gate 4 B <gen>)
Set GH_Unit = (Units owned by (Triggering player))
Special Effect - Create a special effect at Hero_GH using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in GH_Unit and do (Actions)
Loop - Actions
If ((((Picked unit) is A Hero) Equal to True) and (((Picked unit) is alive) Equal to True)) then do (Unit - Move (Picked unit) instantly to Hero_GH) else do (Do nothing)
Camera - Pan camera for (Owner of (Picked unit)) to Hero_GH over 0.00 seconds
Custom script: call DestroyGroup (udg_GH_Unit)
Custom script: call RemoveLocation( udg_Hero_GH )
cái đó là do trigger trong map khá là nhiều mấy phần chẳng hạn như variable được constant có thể là function cũng thế. nhưng rất hiếm đối với map của các newbie làm ra. tại vì họ kịnh nghiệm rất khiêm tốn. khó mà làm phần đó vào
cách giải quyết vụ đó có thể Protect sẽ giảm mức độ lag đó đến tối thiểu ngoài ra Protect bằng mấy tool nén sẽ giảm mức độ lag đó đến mức thấp nhất!
kết: chẳng sao cả và không ảnh hưởng gì ngoài việc hơi tốn chút thời gian mặc dù là con số rất.ít...

