Topic hỏi đáp cho anh em (Về cách làm map)

Status
Không mở trả lời sau này.
Chỉnh Data - Air Time (Second) càng thấp càng tốt.
Ặc nói vậy thì nó đâu có "bay" nữa =="
Impale đó unit vẫn bay lên như thường mà không invu :-o
 
Ặc nói vậy thì nó đâu có "bay" nữa =="
Impale đó unit vẫn bay lên như thường mà không invu :-o

Thế chình xác ông muốn làm như thế nòa nói rõ ra để a em còn chỉnh sửa nào,Đọc câu hỏi của ông tui thấy thế nào ấy:-?..Nói rõ ra
 
Của dota Impale không phải là chiêu melee đâu, nó là 1 chiêu tạo từ JASS.
 
cho mình hỏi vài vấn đề này đc không
Thứ nhất: mình muốn mỗi hero chỉ cầm đc 1 cây kiếm thôi mà sao cái này nó bị lỗi (với lại làm sao chỉ hiện text với 1 người thôi phần bôi đen đó)
Events
Unit - A unit Acquires an item
Conditions
Or - Any (Conditions) are true
Conditions
(Item-class of (Item being manipulated)) Equal to Permanent
(Item-class of (Item being manipulated)) Equal to Artifact
(Item-class of (Item being manipulated)) Equal to Purchasable
(Item-class of (Item being manipulated)) Equal to Miscellaneous
(Item-class of (Item being manipulated)) Equal to Campaign
(Item-class of (Item being manipulated)) Equal to Powerup
Actions
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-class of (Item being manipulated))
(Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)
Then - Actions
Hero - Drop (Item being manipulated) from (Hero manipulating item)
Game - Display to (All players) the text: Xin loi ban khong t...
Else - Actions
Thứ 2: tạo random Hero = lệnh -rg mình làm mà ko đc
Events
Player - Player 1 (Red) types a chat message containing -rg as An exact match

Conditions
Actions
Game - Display to (All players) the text: Lenh -rg da duoc ki...
Trigger - Turn off Tao NV sau 10s <gen>
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
Then - Actions
Set Random_Hero = (Random integer number between 1 and Random_Count)
Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
Selection - Select (Last created unit) for (Owner of (Last created unit))
Game - Display to (All players) the text: (Co nguoi da chon + (Name of (Last created unit)))
Set Random_Data[Random_Hero] = Random_Count
Set Random_Count = (Random_Count - 1)
Else - Actions
Do nothing
Trigger - Turn off (This trigger)
Thứ 3: spaw quái tại region chỉ spaw số quái đã chết không tạo quái theo time đâu nha
Thứ 4: ghép nhiều món lại thành 1 cho gọn (máu, mana)
Events
Unit - A unit Acquires an item
Conditions
(Charges remaining in (Item being manipulated)) Greater than 0
Actions
Set TempUnit2 = (Hero manipulating item)
Set TempItem = (Item being manipulated)
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Set TempItem2 = (Item carried by TempUnit in slot (Integer A))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of TempItem2) Equal to (Item-type of TempItem)
TempItem2 Not equal to TempItem
Then - Actions
Item - Set charges remaining in TempItem2 to ((Charges remaining in TempItem2) + (Charges remaining in TempItem))
Hero - Drop TempItem from TempUnit2
Item - Remove TempItem
Skip remaining actions
Else - Actions
.
___________Auto Merge________________

.
cái thứ 4 mình làm theo Tom mà ko đc không biết sai chỗ nèo nữa
 
Cho mình hỏi 1 câu đơn giản nhé :P , cái Animation Stand của con Dreadlord lâu lâu nó gồng người bay lên là gì vậy ? :|
 
Cho mình hỏi 1 câu đơn giản nhé :P , cái Animation Stand của con Dreadlord lâu lâu nó gồng người bay lên là gì vậy ? :|

Animation đấy của nó là stand - 3
Nếu dùng trigger:
Mã:
Animation - Play Dreadlord 0000 <gen>'s Stand - 3 animation, using only Rare animations
Và chú ý là chỉ có thể dùng trigger thui nhé :P..Vì dùng object thì tui chịu
-----------------------
Vừa nãy nhầm.Fix lại rồi :P
 
à quên mất cho mình hỏi cách làm cho computer tự đánh đc ko AI ấy để cho ai rảnh chơi single cũng đc
 
cho mình hỏi vài vấn đề này đc không
Thứ nhất: mình muốn mỗi hero chỉ cầm đc 1 cây kiếm thôi mà sao cái này nó bị lỗi (với lại làm sao chỉ hiện text với 1 người thôi phần bôi đen đó)
Events
Unit - A unit Acquires an item
Conditions
Or - Any (Conditions) are true
Conditions
(Item-class of (Item being manipulated)) Equal to Permanent
(Item-class of (Item being manipulated)) Equal to Artifact
(Item-class of (Item being manipulated)) Equal to Purchasable
(Item-class of (Item being manipulated)) Equal to Miscellaneous
(Item-class of (Item being manipulated)) Equal to Campaign
(Item-class of (Item being manipulated)) Equal to Powerup
Actions
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-class of (Item being manipulated))
(Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)
Then - Actions
Hero - Drop (Item being manipulated) from (Hero manipulating item)
Game - Display to (All players) the text: Xin loi ban khong t...
Else - Actions
Thứ 2: tạo random Hero = lệnh -rg mình làm mà ko đc
Events
Player - Player 1 (Red) types a chat message containing -rg as An exact match

Conditions
Actions
Game - Display to (All players) the text: Lenh -rg da duoc ki...
Trigger - Turn off Tao NV sau 10s <gen>
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
Then - Actions
Set Random_Hero = (Random integer number between 1 and Random_Count)
Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
Selection - Select (Last created unit) for (Owner of (Last created unit))
Game - Display to (All players) the text: (Co nguoi da chon + (Name of (Last created unit)))
Set Random_Data[Random_Hero] = Random_Count
Set Random_Count = (Random_Count - 1)
Else - Actions
Do nothing
Trigger - Turn off (This trigger)
Thứ 3: spaw quái tại region chỉ spaw số quái đã chết không tạo quái theo time đâu nha
Thứ 4: ghép nhiều món lại thành 1 cho gọn (máu, mana)
Events
Unit - A unit Acquires an item
Conditions
(Charges remaining in (Item being manipulated)) Greater than 0
Actions
Set TempUnit2 = (Hero manipulating item)
Set TempItem = (Item being manipulated)
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Set TempItem2 = (Item carried by TempUnit in slot (Integer A))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of TempItem2) Equal to (Item-type of TempItem)
TempItem2 Not equal to TempItem
Then - Actions
Item - Set charges remaining in TempItem2 to ((Charges remaining in TempItem2) + (Charges remaining in TempItem))
Hero - Drop TempItem from TempUnit2
Item - Remove TempItem
Skip remaining actions
Else - Actions
.
___________Auto Merge________________

.
cái thứ 4 mình làm theo Tom mà ko đc không biết sai chỗ nèo nữa


Chú ý là lần sau Trigger để trong code cho dễ nhìn
Điều thứ nhất : Không thể.Bạn chỉ có thể send text cho all player hoặc player group chứ không send đơn lẻ đc.Muốn send đơn lẻ không thể dùng text mà dùng cái khác :).Tiện thể chú thích luôn.Lần sau muốn kiểm tra item thi dung lệnh:
Mã:
(Item-type of (Item being manipulated)) Equal to {Item name}
Chứ không nên dung vòng lặp for loop
Điều thứ 2
Mã:
Events
        Player - Player 1 (Red) types a chat message containing -rg as An exact match
        
    Conditions
    Actions
        Game - Display to (All players) the text: Lenh -rg da duoc ki...
        Trigger - Turn off Tao NV sau 10s <gen>
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Player((Integer A))) slot status) Equal to Is playing
                    Then - Actions
                        Set Random_Hero = (Random integer number between 1 and Random_Count)
                        Unit - Create 1 Hero_Array[B][SIZE="3"][Random_Data[Random_Hero]] [/SIZE][/B]for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
                        Selection - Select (Last created unit) for (Owner of (Last created unit))
                        Game - Display to (All players) the text: (Co nguoi da chon  + (Name of (Last created unit)))
                        [B][SIZE="3"]Set Random_Data[Random_Hero] = Random_Count[/SIZE][/B]
                        Set Random_Count = (Random_Count - 1)
                    Else - Actions
                        Do nothing
        Trigger - Turn off (This trigger)
Sao lại dùng rồi mới đặt :-??
Điều thứ 3:Cái này quá nhiều người hỏi rồi...Link đây:http://forum.gamevn.com/showpost.php?p=9134777&postcount=850
Điều thứ 4
Mã:
If - Conditions
                       [B][SIZE="3"] (Item-type of TempItem2) Equal to (Item-type of TempItem)
                        TempItem2 Not equal to TempItem[/SIZE][/B]
                    Then - Actions
                        Item - Set charges remaining in TempItem2 to ((Charges remaining in TempItem2) + (Charges remaining in TempItem))
                        Hero - Drop TempItem from TempUnit2
                        Item - Remove TempItem
                        Skip remaining actions
                    Else - Actions
Phần bôi đên phải nhét vào trong dòng lệnh:
Mã:
Conditions
    And - All (Conditions) are true
        Conditions

Dòng này có lẽ không cần :-?
Mã:
Hero - Drop TempItem from TempUnit2
 
Chú ý là lần sau Trigger để trong code cho dễ nhìn
Điều thứ nhất : Không thể.Bạn chỉ có thể send text cho all player hoặc player group chứ không send đơn lẻ đc.Muốn send đơn lẻ không thể dùng text mà dùng cái khác :).Tiện thể chú thích luôn.Lần sau muốn kiểm tra item thi dung lệnh:
Mã:
(Item-type of (Item being manipulated)) Equal to {Item name}
Chứ không nên dung vòng lặp for loop

Trời ơi vậy chỉ cho người ta luôn đi, mình cũng đang bí phần này :-w.


Em hỏi câu này tọt xuống mấy trang trước rùi chẳng ai trả lời. Em muốn hỏi là định dạng nhạc có thể chèn vào trong WE là định dạng nào ạ? Ngoài mp3, còn có thể dùng định dạng nào khác nữa không ạ?
 
Mã:
(Item-type of (Item being manipulated)) Equal to {Item name}
cái này là cùng tên không cầm đc hay cùng loại vậy
.
___________Auto Merge________________

.
Mã:
Điều thứ 3:Cái này quá nhiều người hỏi rồi...Link đây
link đây là đâu ?????
 
Mã:
(Item-type of (Item being manipulated)) Equal to {Item name}
cái này là cùng tên không cầm đc hay cùng loại vậy
.
___________Auto Merge________________

.
Mã:
Điều thứ 3:Cái này quá nhiều người hỏi rồi...Link đây
link đây là đâu ?????

Cái nào cũng đc.nên dung lênh này hơn.Không nên dung kiểm tra slot vì phải dùng loop khiến time thực hiện trigger bị tăng lên (:|..Tuy là rất bé nhưng vẫn là tăng ;))
________________________________________
Đã up lại link rồi đấy
.
___________Auto Merge________________

.
Trời ơi vậy chỉ cho người ta luôn đi, mình cũng đang bí phần này :-w.


Em hỏi câu này tọt xuống mấy trang trước rùi chẳng ai trả lời. Em muốn hỏi là định dạng nhạc có thể chèn vào trong WE là định dạng nào ạ? Ngoài mp3, còn có thể dùng định dạng nào khác nữa không ạ?
Chính xác thì không hắn là chỉ show cho player riêng vì WE không có hỗ trợ phần này =)).Ta có thể chỉnh dòn Text như sau
Mã:
Game - Display to (All players) the text: ((Name of (Triggering player)) + ( da chon  + (Name of (Triggering unit))))

Hề hề :)..Còn về sound thì chỉ có thể import Mp3 thôi :8..Hình như thế:-??
 
Mã:
Điều thứ 2

Code:
Events
        Player - Player 1 (Red) types a chat message containing -rg as An exact match
        
    Conditions
    Actions
        Game - Display to (All players) the text: Lenh -rg da duoc ki...
        Trigger - Turn off Tao NV sau 10s <gen>
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Player((Integer A))) slot status) Equal to Is playing
                    Then - Actions
                        Set Random_Hero = (Random integer number between 1 and Random_Count)
                        Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
                        Selection - Select (Last created unit) for (Owner of (Last created unit))
                        Game - Display to (All players) the text: (Co nguoi da chon  + (Name of (Last created unit)))
                        Set Random_Data[Random_Hero] = Random_Count
                        Set Random_Count = (Random_Count - 1)
                    Else - Actions
                        Do nothing
        Trigger - Turn off (This trigger)Sao lại dùng rồi mới đặt
đã thử lại set truớc mà vẫn vậy bạn thử tét hộ mình xem
.
___________Auto Merge________________

.
mình đã thử rồi mà sao vẫn ko đc
Mã:
StackChargedItem
    Events
        Unit - A unit Acquires an item
    Conditions
        And - All (Conditions) are true
            Conditions
                (Item-type of TempItem2) Equal to (Item-type of TempItem)
                TempItem2 Not equal to TempItem
        (Charges remaining in (Item being manipulated)) Greater than 0
    Actions
        Set TempUnit2 = (Hero manipulating item)
        Set TempItem = (Item being manipulated)
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                Set TempItem2 = (Item carried by TempUnit in slot (Integer A))
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        And - All (Conditions) are true
                            Conditions
                    Then - Actions
                        Item - Set charges remaining in TempItem2 to ((Charges remaining in TempItem2) + (Charges remaining in TempItem))
                        Item - Remove TempItem
                        Skip remaining actions
                    Else - Actions
 
Mã:
(Item-type of (Item being manipulated)) Equal to {[B]Item name[/B]}
mình tạo ra nhiều loại kiếm khác nhau mà cái này chỉ có đồ giống hệt nhau mới Drop thôi thì phải
 
lệnh random cho hero tavern nè , nhớ post rồi mà ta :|
Mã:
Events
    Player - Player 1 (Red) types a chat message containing -random as An exact match
    Player - Player 2 (Blue) types a chat message containing -random as An exact match
    Player - Player 3 (Teal) types a chat message containing -random as An exact match
    Player - Player 4 (Purple) types a chat message containing -random as An exact match
    Player - Player 5 (Yellow) types a chat message containing -random as An exact match
    Player - Player 6 (Orange) types a chat message containing -random as An exact match
Conditions
    (Number of units in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) Equal to 0
Actions
    Set Random_Hero = (Random integer number between 1 and Random_Count)
    Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
    Game - Display to (All players) the text: (A player has randomed  + (Name of (Last created unit)))
    Selection - Select (Last created unit) for (Owner of (Last created unit))
    Player - Add -425 to (Triggering player) Current gold
    Player Group - Pick every player in (All players) and do (Actions)
        Loop - Actions
            Player - Make (Unit-type of (Last created unit)) Unavailable for training/construction by (Picked player)
    Set Random_Data[Random_Hero] = Random_Count
    Set Random_Count = (Random_Count - 1)
 
Mã:
Điều thứ 2

Code:
Events
        Player - Player 1 (Red) types a chat message containing -rg as An exact match
        
    Conditions
    Actions
        Game - Display to (All players) the text: Lenh -rg da duoc ki...
        Trigger - Turn off Tao NV sau 10s <gen>
        For each (Integer A) from 1 to 10, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Player((Integer A))) slot status) Equal to Is playing
                    Then - Actions
                        Set Random_Hero = (Random integer number between 1 and Random_Count)
                        Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
                        Selection - Select (Last created unit) for (Owner of (Last created unit))
                        Game - Display to (All players) the text: (Co nguoi da chon  + (Name of (Last created unit)))
                        Set Random_Data[Random_Hero] = Random_Count
                        Set Random_Count = (Random_Count - 1)
                    Else - Actions
                        Do nothing
        Trigger - Turn off (This trigger)Sao lại dùng rồi mới đặt
đã thử lại set truớc mà vẫn vậy bạn thử tét hộ mình xem
.
___________Auto Merge________________

.
mình đã thử rồi mà sao vẫn ko đc
Mã:
StackChargedItem
    Events
        Unit - A unit Acquires an item
    Conditions
        And - All (Conditions) are true
            Conditions
                (Item-type of TempItem2) Equal to (Item-type of TempItem)
                TempItem2 Not equal to TempItem
        (Charges remaining in (Item being manipulated)) Greater than 0
    Actions
        Set TempUnit2 = (Hero manipulating item)
        Set TempItem = (Item being manipulated)
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                Set TempItem2 = (Item carried by TempUnit in slot (Integer A))
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        And - All (Conditions) are true
                            Conditions
                    Then - Actions
                        Item - Set charges remaining in TempItem2 to ((Charges remaining in TempItem2) + (Charges remaining in TempItem))
                        Item - Remove TempItem
                        Skip remaining actions
                    Else - Actions

???
Mã:
StackChargedItem
    Events
        Unit - A unit Acquires an item
    Conditions
        And - All (Conditions) are true
            Conditions
                (Item-type of TempItem2) Equal to (Item-type of TempItem)
                TempItem2 Not equal to TempItem
        (Charges remaining in (Item being manipulated)) Greater than 0
    Actions
        Set TempUnit2 = (Hero manipulating item)
        Set TempItem = (Item being manipulated)
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                Set TempItem2 = (Item carried by TempUnit in slot (Integer A))
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        And - All (Conditions) are true
                            [SIZE="4"][B]Conditions[/B][/SIZE]
                    Then - Actions
                        Item - Set charges remaining in TempItem2 to ((Charges remaining in TempItem2) + (Charges remaining in TempItem))
                        Item - Remove TempItem
                        Skip remaining actions
                    Else - Actions

Hai cai kiem tra dau,bảo nhét vào dưới lệnh này mà :|
 
lệnh random cho hero tavern nè , nhớ post rồi mà ta :|
Mã:
Events
    Player - Player 1 (Red) types a chat message containing -random as An exact match
    Player - Player 2 (Blue) types a chat message containing -random as An exact match
    Player - Player 3 (Teal) types a chat message containing -random as An exact match
    Player - Player 4 (Purple) types a chat message containing -random as An exact match
    Player - Player 5 (Yellow) types a chat message containing -random as An exact match
    Player - Player 6 (Orange) types a chat message containing -random as An exact match
Conditions
    (Number of units in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True))) Equal to 0
Actions
    Set Random_Hero = (Random integer number between 1 and Random_Count)
    Unit - Create 1 Hero_Array[Random_Data[Random_Hero]] for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
    Game - Display to (All players) the text: (A player has randomed  + (Name of (Last created unit)))
    Selection - Select (Last created unit) for (Owner of (Last created unit))
    Player - Add -425 to (Triggering player) Current gold
    Player Group - Pick every player in (All players) and do (Actions)
        Loop - Actions
            Player - Make (Unit-type of (Last created unit)) Unavailable for training/construction by (Picked player)
    Set Random_Data[Random_Hero] = Random_Count
    Set Random_Count = (Random_Count - 1)

mình muốn host chỉnh random thôi chứ không phải ai thích random ko thì thôi nếu thế mình làm đc
 
Mã:
(Item-type of (Item being manipulated)) Equal to {[B]Item name[/B]}
mình tạo ra nhiều loại kiếm khác nhau mà cái này chỉ có đồ giống hệt nhau mới Drop thôi thì phải

À uhwfm nhầm.Nhưng mà đối v Drop item còn một cách khác nữa nhưng thôi ông thích thì dùng loop cũng ddc :X
----------------------------
Muốn làm random hero thì không dùng cách đó được.Phải có cách khác ..Thui hỏi mấy a pro đi ngại làm lắm ..Híc híc :((
 
Mã:
StackChargedItem
    Events
        Unit - A unit Acquires an item
    Conditions
        (Charges remaining in (Item being manipulated)) Greater than 0
    Actions
        Set TempUnit2 = (Hero manipulating item)
        Set TempItem = (Item being manipulated)
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                Set TempItem2 = (Item carried by TempUnit in slot (Integer A))
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        And - All (Conditions) are true
                            Conditions
                                TempItem2 Not equal to TempItem
                                (Item-type of TempItem2) Equal to (Item-type of TempItem)
                    Then - Actions
                        Item - Set charges remaining in TempItem2 to ((Charges remaining in TempItem2) + (Charges remaining in TempItem))
                        Item - Remove TempItem
                        Skip remaining actions
                    Else - Actions
như cậy đúng chưa nhưng mà vẫn không đc hixhix
 
Status
Không mở trả lời sau này.
Back
Top