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

Status
Không mở trả lời sau này.
ai biết trigger mình đứng trên cao ko nhìn đc bên trong đen thui như vùng cấm như rosan trong dota ko
 
Cho e hỏi tý trog war movement max là 522 tại sao khi e check -ms nó max ms nó lại chỉ có 400 ?_? zúp e vs thanks mấy bác

vào Advabced \ Gameplay Constants... tìm Movement - Unit Speed - Maximum chỉnh thành 522

ai biết trigger mình đứng trên cao ko nhìn đc bên trong đen thui như vùng cấm như rosan trong dota ko

vào mục Pathing Blockers của Doodad PaletteLight of Sight Blocker đặt xung quanh vùng cấm đó.

^
cái đó là cây che mất sight chứ trigger, vùng cấm gì :-??

rồi sao? người ta hỏi cách làm chứ có đúng là vùng cấm hay không thì ảnh hưởng gì?
 
ai biết làm cách nào để iteam mình mình xài và người khác nhặt ko sử dụng và bán được không như dota ấy
 
chỉ mình cách làm 1 leaderboard như dota nhưng chỉ hiện K, D và name player (có thể tắt mở), như sau:
------------------------------------------
| andybi |
------------------------------------------
Team 1 K D
abc 1 1
def 1 0
chỉ cần như thế là đủ :D
TKS!!!

---------- Post added at 12:39 ---------- Previous post was at 11:39 ----------

mình cần giúp rõ những cái này, ai làm đc mình hậu tạ 500 ~.~
1) khi giết đc 1 unit hoặc 1 hero thì cho tiền killing unit (give bounty gold)
2) 1 cái leaderboard bình thường (cái trigger leaderboard của Tom mình nhìn vô muốn mù @@)
3) làm 1 unit là của chung (giống mấy shop bán đồ trong dota) và 1 unit là của mình mà mình ko đk đc nhưng lại nhấn vào đc
4) phóng ra 1 cục băng, đóng băng tất cả unit trong xxx AOE trong vòng x giây (từ skill Cluster Rockets)
trong x giây đó, unit bị đóng băng nhận thêm 10/20/30/40% damage phép

TKS!!! (đc thì hậu tạ cái card mobi 10k ~.~)
 
^
what the hell is going here :-??

---------- Post added at 13:34 ---------- Previous post was at 12:58 ----------

quote lại lần nữa
1) khi giết đc 1 unit hoặc 1 hero thì cho tiền killing unit (give bounty gold)
2) 1 cái leaderboard bình thường (cái trigger leaderboard của Tom mình nhìn vô muốn mù @@)
3) làm 1 unit là của chung (giống mấy shop bán đồ trong dota) và 1 unit là của mình mà mình ko đk đc nhưng lại nhấn vào đc
4) phóng ra 1 cục băng, đóng băng tất cả unit trong xxx AOE trong vòng x giây (từ skill Cluster Rockets)
trong x giây đó, unit bị đóng băng nhận thêm 10/20/30/40% damage phép
này anh Hoàng, rốt cuộc anh có giúp đc ko đấy :-??
 
@andybi: Nói chuyện bố láo thế kia thì ko ai giúp đâu.
Card ở đây ko là gì cả, đừng đem nó vào làm reward. Đây là topic hỏi đáp ko phải topic nhận request or blah blah blah...
1. Vào trigger bật bounty on cho tất cả player, sau đó vào chỉnh tiền nhận trong Gold Bounty Award của creep. Đối với hero thì xài trigger
Player - Turn Gives bounty On for Player 1 (Red)
 
có ai giúp không? làm sao khi giảm STATS = trigger lại như cũ sau khi đã tăng ( Skill Ensecne Shift của Slark trong dota ấy)???
 
Đây mọi người xem giúp sai chỗ nào, mình chịu rồi :|. Dummy Bay Mau là unit với model nào đó có ability base từ Unholy Aura của Undead để giảm ms enemy
Mã:
Bay Mau
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Bay Mau 
    Actions
        Set Unit_Skill[8] = (Casting unit)
        Set Real_Skill[3] = ((Real((Level of Bay Mau  for Unit_Skill[8]))) x 5.00)
        Trigger - Turn on Bay Mau 2 <gen>
Mã:
Bay Mau 2
    Events
        Time - Every 0.50 seconds of game time
    Conditions
        (Unit_Skill[8] has buff |cffEA151EBÉy M¸u|r ) Equal to True
    Actions
        Set Real_Skill[3] = (Real_Skill[3] - 0.50)
        Set Point_Skill[10] = (Position of Unit_Skill[8])
        Unit - Create 1 Dummy Bay Mau for (Owner of Unit_Skill[8]) at Point_Skill[10] facing Default building facing degrees
        Set Dummy_Baymau[Integer_Baymau] = (Last created unit)
        Unit - Add Bay Mau  to Dummy_Baymau[Integer_Baymau]
        Unit - Add a ((Real((Level of Bay Mau  for Unit_Skill[8]))) x 5.00) second Generic expiration timer to Dummy_Baymau[Integer_Baymau]
        Set Point_Skill[11] = (Position of Dummy_Baymau[Integer_Baymau])
        Set Group_Skill[4] = (Units within 350.00 of Point_Skill[11] matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of Unit_Skill[8])) Equal to True)))
        Unit Group - Pick every unit in Group_Skill[4] and do (Actions)
            Loop - Actions
                Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (5.00 x (Real((Level of Bay Mau  for Unit_Skill[8])))))
                Special Effect - Create a special effect attached to the chest of (Picked unit) using Objects\Spawnmodels\Human\HumanBlood\HumanBloodFootman.mdl
                Special Effect - Destroy (Last created special effect)
        Set Integer_Baymau = (Integer_Baymau + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Real_Skill[3] Less than or equal to 0.00
            Then - Actions
                Trigger - Turn off (This trigger)
                Custom script:   call RemoveLocation(udg_Point_Skill[10])
            Else - Actions
                Custom script:   call RemoveLocation(udg_Point_Skill[11])
                Custom script:   call DestroyGroup(udg_Group_Skill[4])

Quote Quote
....................................................
 
@andybi: Nói chuyện bố láo thế kia thì ko ai giúp đâu.
Card ở đây ko là gì cả, đừng đem nó vào làm reward. Đây là topic hỏi đáp ko phải topic nhận request or blah blah blah...
1. Vào trigger bật bounty on cho tất cả player, sau đó vào chỉnh tiền nhận trong Gold Bounty Award của creep. Đối với hero thì xài trigger

Events - Eplase game time is 0
Action - Turn on gives bounty gold ...
cái trigger như vậy hả?

---------- Post added at 15:59 ---------- Previous post was at 15:47 ----------

Mã:
Untitled Trigger 003
    Events
        Time - Elapsed game time is 0.00 seconds
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for (Picked player))
phải mở bounty gold cho từng player hay là làm theo kiểu này (trước mắt là thấy kiểu này ko đc ~.~)

---------- Post added at 16:15 ---------- Previous post was at 15:59 ----------

bó tay, cả cách bạn lẫn cách mình đều ko đc, ai giúp với [-O<

---------- Post added at 17:01 ---------- Previous post was at 16:15 ----------

ôi chán quá, ng onl thì ít mà comment giúp lại ko đc bao nhiêu, toàn là comment hỏi (:|(:|(:|
 
andybi : thế này
Mã:
Tien
    Events
        Map initialization
    Conditions
    Actions
        Player - Turn Gives bounty On for Player 1 (Red)
        Player - Turn Gives bounty On for Player 2 (Blue)
        Player - Turn Gives bounty On for Player 3 (Teal)
        Player - Turn Gives bounty On for Player 4 (Purple)
        Player - Turn Gives bounty On for Player 5 (Yellow)
        Player - Turn Gives bounty On for Player 6 (Orange)
        Player - Turn Gives bounty On for Player 7 (Green)
        Player - Turn Gives bounty On for Player 8 (Pink)
        Player - Turn Gives bounty On for Player 9 (Gray)
        Player - Turn Gives bounty On for Player 10 (Light Blue)
        Player - Turn Gives bounty On for Player 11 (Dark Green)
        Player - Turn Gives bounty On for Player 12 (Brown)
        Player - Turn Gives bounty On for Neutral Hostile
        Player - Turn Gives bounty On for Neutral Victim
        Player - Turn Gives bounty On for Neutral Extra
        Player - Turn Gives bounty On for Neutral Passive
       [code/]
 
^
cám ơn rất nhiều :3cool_nosebleed:

---------- Post added at 18:04 ---------- Previous post was at 17:54 ----------

sẵn cho mình cái code khi 1 team giết đc 100 mạng hero (đc tính = leaderboard) thì team đó sẽ thắng còn lại là thua
 
Tạo 2 biến Integer,một biến cho team 1,một biến cho team 2

Tạo 1 trigger event unit dies,nếu owner of killing belong an ally of team 1 thì set biến integerteam1 = (integerteam1 + 1),khi biến đủ 100 thì set victory thôi
 
^
cái bước đầu thì đc rồi đấy nhưng bước sau code như thế nào ?
 
^
cái bước đầu thì đc rồi đấy nhưng bước sau code như thế nào ?

Mã:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A Hero) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Dying unit) belongs to an ally of Player 1 (Red)) Equal to True
            Then - Actions
                Set Integer2 = (Integer2 + 1)
            Else - Actions
                Set Integer = (Integer + 1)

Mã:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A Hero) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Integer Equal to 100
            Then - Actions
                Game - Victory Player 1 (Red) (Show dialogs, Show scores)
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Integer2 Equal to 100
                    Then - Actions
                        Game - Victory Player 7 (Green) (Show dialogs, Show scores)
                    Else - Actions



Đây mọi người xem giúp sai chỗ nào, mình chịu rồi :|. Dummy Bay Mau là unit với model nào đó có ability base từ Unholy Aura của Undead để giảm ms enemy
Mã:
Bay Mau
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Bay Mau 
    Actions
        Set Unit_Skill[8] = (Casting unit)
        Set Real_Skill[3] = ((Real((Level of Bay Mau  for Unit_Skill[8]))) x 5.00)
        Trigger - Turn on Bay Mau 2 <gen>
Mã:
Bay Mau 2
    Events
        Time - Every 0.50 seconds of game time
    Conditions
        (Unit_Skill[8] has buff |cffEA151EBÉy M¸u|r ) Equal to True
    Actions
        Set Real_Skill[3] = (Real_Skill[3] - 0.50)
        Set Point_Skill[10] = (Position of Unit_Skill[8])
        Unit - Create 1 Dummy Bay Mau for (Owner of Unit_Skill[8]) at Point_Skill[10] facing Default building facing degrees
        Set Dummy_Baymau[Integer_Baymau] = (Last created unit)
        Unit - Add Bay Mau  to Dummy_Baymau[Integer_Baymau]
        Unit - Add a ((Real((Level of Bay Mau  for Unit_Skill[8]))) x 5.00) second Generic expiration timer to Dummy_Baymau[Integer_Baymau]
        Set Point_Skill[11] = (Position of Dummy_Baymau[Integer_Baymau])
        Set Group_Skill[4] = (Units within 350.00 of Point_Skill[11] matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of Unit_Skill[8])) Equal to True)))
        Unit Group - Pick every unit in Group_Skill[4] and do (Actions)
            Loop - Actions
                Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (5.00 x (Real((Level of Bay Mau  for Unit_Skill[8])))))
                Special Effect - Create a special effect attached to the chest of (Picked unit) using Objects\Spawnmodels\Human\HumanBlood\HumanBloodFootman.mdl
                Special Effect - Destroy (Last created special effect)
        Set Integer_Baymau = (Integer_Baymau + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Real_Skill[3] Less than or equal to 0.00
            Then - Actions
                Trigger - Turn off (This trigger)
                Custom script:   call RemoveLocation(udg_Point_Skill[10])
            Else - Actions
                Custom script:   call RemoveLocation(udg_Point_Skill[11])
                Custom script:   call DestroyGroup(udg_Group_Skill[4])

Quote lần 3
 
^
rất cám ơn, tưởng ông từ tui rồi chứ :)
----------
cho mình hỏi cách làm leaderboard như thế này:
team 1 5
abc 2
def 3
...
Đầu leaderboard là team của các player, kế bên đó là tổng số lần giết của tất cả player trong team cộng lại. Dưới là tên từng player trong team và kế bên là số lần giết. Nếu bạn nào tốt nữa thì chỉ mình cách làm leaderboard tắt mở
p/s: hỏi thật nhé evil, ông có thật sự nóng lòng sốt ruột khi đã quote đến 3 lần mà ko ai giúp chưa? :->

---------- Post added at 19:59 ---------- Previous post was at 19:25 ----------

Ai làm dùm mình cái trigger để bắt dummy creep cast skill. Mình làm sao ấy mà dummy cast skill ko tăng damage theo lv của skill thực
 
Chỉnh sửa cuối:
Cái này là giới hạn chỉ cho mua tối đa 2 con Peasant thôi mà :(

Mình muốn mua bao nhiêu Peasant cũng dc, nhưng chỉ 1 lúc có 2 con sửa dc nhà thôi ấy????????????????

Code đây:
Mã:
Worker Begin
    Events
        Unit - A unit Begins channeling an ability
    Conditions
        (Ability being cast) Equal to Repair (Human)
    Actions
        Set Worker_Count[0] = (Player number of (Owner of (Triggering unit)))
        Set Worker_Count[Worker_Count[0]] = (Worker_Count[Worker_Count[0]] + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Worker_Count[Worker_Count[0]] Less than or equal to 2
            Then - Actions
            Else - Actions
                Unit - Order (Triggering unit) to Stop
                Game - Display to (All players) the text: Can not use more th...
Mã:
Worker End
    Events
        Unit - A unit Stops casting an ability
    Conditions
        (Ability being cast) Equal to Repair (Human)
    Actions
        Set Worker_Count[0] = (Player number of (Owner of (Triggering unit)))
        Set Worker_Count[Worker_Count[0]] = (Worker_Count[Worker_Count[0]] - 1)

Đây mọi người xem giúp sai chỗ nào, mình chịu rồi :|. Dummy Bay Mau là unit với model nào đó có ability base từ Unholy Aura của Undead để giảm ms enemy

Chính xác thì nó bị lỗi gì?
 
Status
Không mở trả lời sau này.
Back
Top