Topic hỏi đáp về cách làm map | version 14

Status
Không mở trả lời sau này.
Cho hỏi cách chọn Hero từ 1 nhà. thay vì phải xài con cừu hay click để tiết kiệm chỗ :D

Sau khi chọn hero thì sẽ hiện về đúng vị trí nhà của team đó

Tạo 1 vùng cấm bằng regitor (Nếu 1 hero của team nào đó chạy vào region đó thì sẽ lập tự bị bật trở lại vị trí cũ.

Tạo regin biến cửa và không cho con boss ở trong đó sử dụng region để biến đi biến lại. Chỉ hero mới được phép đi qua region đó

Mong giúp :D
 
Cho hỏi cách chọn Hero từ 1 nhà. thay vì phải xài con cừu hay click để tiết kiệm chỗ :D
Sau khi chọn hero thì sẽ hiện về đúng vị trí nhà của team đó
Tạo 1 vùng cấm bằng regitor (Nếu 1 hero của team nào đó chạy vào region đó thì sẽ lập tự bị bật trở lại vị trí cũ.
Tạo regin biến cửa và không cho con boss ở trong đó sử dụng region để biến đi biến lại. Chỉ hero mới được phép đi qua region đó
Học, đọc, suy nghĩ, hiểu:
1) Hero Tarvern
2) Về nhà
2+3+4) Sử dụng event unit enter <region>, thêm vào điều kiện phù hợp (or/ and hoặc 0)
[spoil]
Mã:
(Owner of (Buying Unit) is an Ally of (Player 11 (Sentinel)) equal to true
(Entering unit) is a hero equal to True
Unit-type of (Entering unit) is not equal to Athas (Boss)
(Entering unit) is a hero equal to True
...blah ..blah...
[/spoil]

3) "bật trở lại vị trí cũ": move unit to <loc>. Biến loc này là vị trí sẽ "trở lại", xác định bởi:
- loc này có thể là vị trí nhà (town hall);
- loc có thể là center của 1 region bạn vẽ thêm (not recommend)
- loc có thể xác định bởi Point with polar offset

cho em hỏi làm thế nào để tạo tướng bán lan trong map green thế
Bắn lan có nhiều kiểu.
- Barage (bắn nhiều missle)
- 1 missle, nhảy wa các mục tiêu: chỉnh Combat - Attack 1 - Weapon type là bounce, Combat - Attack 1 - maximum number of target là số unit bị "lan". Tham khảo thêm Huntress trong melee của Night Elf.
- 1 missle, nổ khi chạm mục tiêu: Chỉnh gần như trên nhưng Missle (splash). Tham khảo thêm Boulder Tower trong campaign - building của Human.
[spoil]
Mã:
Weapon Type : cái này khác với Attack Type..chú ý đừng nhầm. Bao gồm :
-- Normal : cận chiến bình thường
-- Instant: đánh trực tiếp, không cần projectile chuyển động mà ghim thẳng vào Impact của đối thủ. Như kiểu Riflemen của HU, bắn phát ăn luôn
-- Artilery : đánh kiểu pháo - như Mortar, Demolish ( có chức năng Attack Ground)
-- Artilery Line : đánh kiểu pháo, lan theo đường thẳng như Glaive Thrower ( có Ground Attack
-- Missile : đánh kiểu tầm xa, có projectile
-- Missile Splash : bắn lan thành vùng kiểu Frost Wyrm.
-- Missile Line : bắn lan theo đường nhưng không có chức năng Ground Attack
Missile Bouce : bắn nhiều mục tiêu kiểu unit Huntress
[/spoil]
(Nghiên cứu)
 
Chỉnh sửa cuối:
ai giúp phần add tiếng việt với

Import khi bật UNSWE thì nó lỗi tigger database error.
Ai biết fix không hix

Không import được. hiện thiếu hết cả object không thể add item vô tay hero được :-s
 
Mã:
Cuong Loi Dia Hao
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Cuång L«i §Þa H·o 
    Actions
        Set MUI[1] = (MUI[1] + 1)
        Set CasterMUI[MUI[1]] = (Learning Hero)
        Set LevelMUI[MUI[1]] = (Level of Cuång L«i §Þa H·o  for CasterMUI[MUI[1]])
        Set RealMUI[MUI[1]] = (1.00 + (0.50 x (Real(LevelMUI[MUI[1]]))))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (CLDH Loop 1 <gen> is on) Equal to False
            Then - Actions
                Trigger - Turn on CLDH Loop 1 <gen>
            Else - Actions
Mã:
CLDH Loop 1
    Events
        Time - Every 0.25 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to MUI[1], do (Actions)
            Loop - Actions
                Set LocMUI[(Integer A)] = (Position of CasterMUI[(Integer A)])
                Set GroupMUI[(Integer A)] = (Units within 900.00 of LocMUI[(Integer A)] matching ((((Matching unit) belongs to an enemy of (Owner of CasterMUI[(Integer A)])) Equal to True) and (((Matching unit) has buff Cuång L«i §Þa H·o ) Equal to True)))
                Unit Group - Pick every unit in GroupMUI[(Integer A)] and do (Actions)
                    Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                ((Matching unit) has buff Cuång L«i §Þa H·o ) Equal to True
                            Then - Actions
                                Trigger - Add to CLDH Loop 2 <gen> the event (Unit - (Picked unit) Starts the effect of an ability)
                            Else - Actions
Mã:
CLDH Loop 2
    Events
    Conditions
    Actions
        For each (Integer A) from 1 to MUI[1], do (Actions)
            Loop - Actions
                Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) - (((Life of (Triggering unit)) / 100.00) x RealMUI[(Integer A)]))
cho hỏi vì s học r`, đối thủ có buff xài skill r`, mà nó không mất giọt máu nào ?
 
Ai là chuyên gia trigger giúp mình với @@ đây là cái trigger open/close gate trên hiveworkshop mà mình dùng nó cho mode của mình thì cái cửa bay tung té @@, bạn nào pro xem và chỉ mình sửa lại cái (cái aminton sai mà ko bik sửa @@)

Mã:
Initialize Gates
 Events
 Map initialization
 Conditions
 Actions
 Hashtable - Create a hashtable
 Set GateHash = (Last created hashtable)
 Set GateOpenRange = 300.00
 Set GatePickingArea = 1000.00
 Set TempDestructibleType = Demonic Gate (Diagonal 1)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Demonic Gate (Diagonal 2)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Demonic Gate (Horizontal)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Demonic Gate (Vertical)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Elven Gate (Diagonal 1)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Elven Gate (Diagonal 2)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Elven Gate (Horizontal)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Elven Gate (Vertical)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Gate (Diagonal 1)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Gate (Diagonal 2)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Gate (Horizontal)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Gate (Vertical)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Iron Gate (Diagonal 1)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Iron Gate (Diagonal 2)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Iron Gate (Horizontal)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Iron Gate (Vertical)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempDestructibleType = Iron Gate (Vertical)
 Custom script: call SaveInteger(udg_GateHash,udg_TempDestructibleType,0,1)
 Set TempPoint = (Center of (Playable map area))
 Set GateRect = (Region centered at TempPoint with size (GatePickingArea, GatePickingArea))
 Custom script: call RemoveLocation(udg_TempPoint)
 Custom script: call DestroyTrigger(GetTriggeringTrigger())

Mã:
Gate Open And Close
 Events
 Time - Every 0.30 seconds of game time
 Conditions
 Actions
 Custom script: set bj_wantDestroyGroup = true
 Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) is A flying unit) Equal to False) and (((Matching unit) is dead) Equal to False))) and do (Actions)
 Loop - Actions
 Set TempPoint = (Position of (Picked unit))
 Region - Center GateRect on TempPoint
 Destructible - Pick every destructible in GateRect and do (Actions)
 Loop - Actions
 Set TempDestructible = (Picked destructible)
 Set TempDestructibleType = (Destructible-type of TempDestructible)
 Custom script: set udg_TempInteger = LoadInteger(udg_GateHash,udg_TempDestructibleType,0)
 If (All Conditions are True) then do (Then Actions) else do (Else Actions)
 If - Conditions
 TempInteger Equal to 1
 Then - Actions
 Set TempPoint2 = (Position of TempDestructible)
 Set TempReal = (Distance between TempPoint and TempPoint2)
 If (All Conditions are True) then do (Then Actions) else do (Else Actions)
 If - Conditions
 TempReal Less than or equal to GateOpenRange
 Then - Actions
 -------- Insert a condition here. Like if you want it to only open for 1 player or something. --------
 Destructible - Open TempDestructible
 Else - Actions
 Destructible - Close TempDestructible
 Custom script: call RemoveLocation(udg_TempPoint2)
 Else - Actions
 Custom script: call RemoveLocation(udg_TempPoint)
 
Chỉnh sửa cuối:
cho hỏi vì s học r`, đối thủ có buff xài skill r`, mà nó không mất giọt máu nào ?
Mã:
CLDH Loop 1
    Events
        Time - Every 0.25 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to MUI[1], do (Actions)
            Loop - Actions
                Set LocMUI[(Integer A)] = (Position of CasterMUI[(Integer A)])
                Set GroupMUI[(Integer A)] = (Units within 900.00 of LocMUI[(Integer A)] matching ((((Matching unit) belongs to an enemy of (Owner of CasterMUI[(Integer A)])) Equal to True) and (((Matching unit) has buff Cuång L«i §Þa H·o ) Equal to True)))
                Unit Group - Pick every unit in GroupMUI[(Integer A)] and do (Actions)
                    Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (([COLOR="#FF0000"]Matching unit[/COLOR]) has buff Cuång L«i §Þa H·o ) Equal to True
                            Then - Actions
                                Trigger - Add to CLDH Loop 2 <gen> the event (Unit - (Picked unit) Starts the effect of an ability)
                            Else - Actions

Chỗ màu đỏ phải là Picked Unit.
Nhưng mà cách bạn làm hơi dài đấy. Nếu spell của bạn là 1 aura, tất cả enemy trong aura mà cast spell thì nhận damage, theo tôi nên làm thế này

Mã:
CLDH
    Events
        Unit starts effect of an ability
    Conditions
        ((Triggering unit) has buff Cuång L«i §Þa H·o ) equal to true
    Actions
        Set Temp Point = (Position of (triggering unit))
        Set TempGroup = Unit in <range của aura> of TempPoint
        Unit Group - Pick every unit in TempGroup
            Loop - Actions
                If - then - else
                    If - Conditions
                        ((Picked unit) belongs to enemy of (Owner of (triggering unit))) equal to true
                        (Level of (Cuång L«i §Þa H·o) for (Picked unit)) greater than 0
                    Then - Actions
                        Unit - Cause picked unit deal damage to triggering unit...
                    Else - Actions
        <Remove leak>
 
Mình muốn làm 1 item hồi sinh nhưng ko mất nhưng có cooldown. Nhưng khi chết hs lại thì chỉ cần bỏ ra là cd tự reset. Có thể nào làm hero chết có thể bỏ ra nhưng khi nhặt hay mua cái khác nó vẫn cd không ?
 
Mã:
CLDH Loop 1
    Events
        Time - Every 0.25 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to MUI[1], do (Actions)
            Loop - Actions
                Set LocMUI[(Integer A)] = (Position of CasterMUI[(Integer A)])
                Set GroupMUI[(Integer A)] = (Units within 900.00 of LocMUI[(Integer A)] matching ((((Matching unit) belongs to an enemy of (Owner of CasterMUI[(Integer A)])) Equal to True) and (((Matching unit) has buff Cuång L«i §Þa H·o ) Equal to True)))
                Unit Group - Pick every unit in GroupMUI[(Integer A)] and do (Actions)
                    Loop - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                (([COLOR="#FF0000"]Matching unit[/COLOR]) has buff Cuång L«i §Þa H·o ) Equal to True
                            Then - Actions
                                Trigger - Add to CLDH Loop 2 <gen> the event (Unit - (Picked unit) Starts the effect of an ability)
                            Else - Actions

Chỗ màu đỏ phải là Picked Unit.
Nhưng mà cách bạn làm hơi dài đấy. Nếu spell của bạn là 1 aura, tất cả enemy trong aura mà cast spell thì nhận damage, theo tôi nên làm thế này

Mã:
CLDH
    Events
        Unit starts effect of an ability
    Conditions
        ((Triggering unit) has buff Cuång L«i §Þa H·o ) equal to true
    Actions
        Set Temp Point = (Position of (triggering unit))
        Set TempGroup = Unit in <range của aura> of TempPoint
        Unit Group - Pick every unit in TempGroup
            Loop - Actions
                If - then - else
                    If - Conditions
                        ((Picked unit) belongs to enemy of (Owner of (triggering unit))) equal to true
                        (Level of (Cuång L«i §Þa H·o) for (Picked unit)) greater than 0
                    Then - Actions
                        Unit - Cause picked unit deal damage to triggering unit...
                    Else - Actions
        <Remove leak>

mìnk biết ..... nhưng mà nếu làm như v. thì nó sẽ k tìm dc giá trị Level, vì mìnk deal damg theo Level Ability mà

------------------------------------------------------------------------------
Sr LeoNguyen, nhìn kĩ lại trigger r` :) ....... nhờ a Tom hoặc ai có khả năng del bài này dùm
 
Chỉnh sửa cuối:
ai trả lời giúp mình 1 vài câu hỏi với
+làm sao cho tường thành link không đi qua đươc
+cho sao phóng to model, unit khác ko đi xuyên qua
 
Cho hỏi cách chọn Hero từ 1 nhà. thay vì phải xài con cừu hay click để tiết kiệm chỗ :D

Sau khi chọn hero thì sẽ hiện về đúng vị trí nhà của team đó

Tạo 1 vùng cấm bằng regitor (Nếu 1 hero của team nào đó chạy vào region đó thì sẽ lập tự bị bật trở lại vị trí cũ.

Tạo regin biến cửa và không cho con boss ở trong đó sử dụng region để biến đi biến lại. Chỉ hero mới được phép đi qua region đó

Mong giúp :D

cho em hỏi làm thế nào để tạo tướng bán lan trong map green thế

ai trả lời giúp mình 1 vài câu hỏi với
+làm sao cho tường thành link không đi qua đươc
+cho sao phóng to model, unit khác ko đi xuyên qua

chỉnh selection scale cho nó to lên
 
+làm sao cho tường thành link không đi qua đươc
+cho sao phóng to model, unit khác ko đi xuyên qua


cùng 1 đáp án là:
- Dùng Pathing - Pathing Texture trong object đó: Chọn cái nào phù hợp với độ to của model
Cách này thì model to lên ko cản được nhiều hơn
- Dùng doodads có tên Pathing Blocker để chặn unit và đặt theo hình dáng, kích cỡ model
Both : chặn cả unit bay lẫn unit đi bộ
Ground: Chắn unit đi bộ
Air: Chắn unit bay

Chi tiết hơn thì xem ở đây: http://forums.gamevn.com/showpost.php?p=18685829
 
Chỉnh sửa cuối:
mình xây map, camera trong game nó nằm hơi nghiêm sát map tầm 40 độ,muốn cho người chơi nhìn hướng cao hơn (75~80 độ) thì sao bạn
còn hiệu ứng âm thanh 3d,trược nhẹ khi nhấn nút lên xuống trái phải nữa :( mình ko biết nó ở đâu
 
^
Camera - Set camera field (Timed)
=>
Camera - Set Player 1 (Red)'s camera Angle of attack to 255.0~260.0 over 0.00 seconds

255.0~260.0 = 75~80
270 = nhìn từ trên xuống
0 = nhìn ngang mặt đất
 
Chỉnh sửa cuối:
Mình muốn làm 1 item hồi sinh nhưng ko mất nhưng có cooldown. Nhưng khi chết hs lại thì chỉ cần bỏ ra là cd tự reset. Có thể nào làm hero chết có thể bỏ ra nhưng khi nhặt hay mua cái khác nó vẫn cd không ?
Quote lại câu hỏi, mình hỏi thêm ? 1 spell lúc nào MUI sẵn lúc nào cần MUI vậy ?
 
Quote lại câu hỏi, mình hỏi thêm ? 1 spell lúc nào MUI sẵn lúc nào cần MUI vậy ?

Nói đơn giản thế này:
- 1 spell không dùng wait/every time/timer thì có thể không cần MUI (MUI sẵn), vì hầu hết các hoạt động đều diễn ra + kết thúc ngay lập tức.
- Ngược lại, nếu spell có dùng wait/every time/timer thì phải làm MUI, vì nếu không MUI thì trong thời gian wait sẽ (có thể) mất dữ liệu.
 
Đang có thắc mắc là làm thế nào để cho máy nó sử dụng đúng loại Item mình muốn nó dùng nhỉ? Dùng Order ID thì sợ skill trong Item nó trùng với ID skill của hero. Dùng Use item in slot 1 2 3 4 5 hoặc 6 cũng k ổn thì item thay đổi vị trí tùm lum.
 
Đang có thắc mắc là làm thế nào để cho máy nó sử dụng đúng loại Item mình muốn nó dùng nhỉ? Dùng Order ID thì sợ skill trong Item nó trùng với ID skill của hero. Dùng Use item in slot 1 2 3 4 5 hoặc 6 cũng k ổn thì item thay đổi vị trí tùm lum.

mình mặc định cho máy chỉ mua 1 loại item đó và sắp nó vào chỗ đó. rồi dùng lệnh như bạn đã nói
p.s: như IF, AI chỉ biết mua đúng 1 loại item và ở vị trí đó, như thế nó mới biết use item
 
Đang có thắc mắc là làm thế nào để cho máy nó sử dụng đúng loại Item mình muốn nó dùng nhỉ? Dùng Order ID thì sợ skill trong Item nó trùng với ID skill của hero. Dùng Use item in slot 1 2 3 4 5 hoặc 6 cũng k ổn thì item thay đổi vị trí tùm lum.

sao dùng Order ID để dùng item đc, với lại ability vào item thì đâu dùng Order ID của nó nữa

trigger:
Hero - Use Item On A Unit
Hero - Use Item On A Point
Hero - Use Item On A Destructible
Hero - Use Item

tha hồ mà chọn =))

sợ item in slot 1, 2,... ko ổn thì dùng: Item Carried By Hero Of Type >:D<

mình mặc định cho máy chỉ mua 1 loại item đó và sắp nó vào chỗ đó. rồi dùng lệnh như bạn đã nói
p.s: như IF, AI chỉ biết mua đúng 1 loại item và ở vị trí đó, như thế nó mới biết use item

"mua" ?
chắc tôi đọc nhầm?

Đang có thắc mắc là làm thế nào để cho máy nó sử dụng đúng loại Item mình muốn nó dùng nhỉ? Dùng Order ID thì sợ skill trong Item nó trùng với ID skill của hero. Dùng Use item in slot 1 2 3 4 5 hoặc 6 cũng k ổn thì item thay đổi vị trí tùm lum.
 
Chỉnh sửa cuối:
làm đc 1 AI pro ko phải là chuyện dễ đâu bạn
vì vậy mình khuyên bạn nên chọn 1 trong 2:
1. làm AI... siêu ngu (chỉ có mặt cho có hình thức chứ ko giúp ích đc gì) ;))
2. làm 1 map dành riêng cho ng chơi, AI ko có
p.s: dùng lệnh Order Item On A Unit là ok nhất (nếu nó cast nhầm creep cũng ko sao, có gì mình... "biện luận" là... đôi khi ng ta cũng nhấn lộn :))
 
Status
Không mở trả lời sau này.
Back
Top