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

Status
Không mở trả lời sau này.
Em đang làm một map RPG nhưng em không biết tạo trigger mà món đồ của hero này mà hero khác không cầm được
VD:class chiến binh không cầm được vũ khí class phù thủy

Ai giúp em với
 
Nghĩa là như vậy
Cậu 1 : Mình tạo 1 dummy là 1 hỏa tiễn khi nó bay chạm vào mục tiêu thì sẽ gây ra những hiệu ứng stun, nổ...
Cầu 2 : thực sự là như thế
Giống skill x2 damage cho 15% cơ nó x2 . Giớ mình không phải x2 mà là cho 15% cơ hội gây thêm 150 sát thương

1/ Move dummy to point dummy offset by number angle from point dummy to point target.
Thực hiện liên tục lệnh trên với:
dummy: hỏa tiễn
point dummy: vị trí dummy
point target: vị trí của địch dính spell
number: khoảng cách dịch chuyển dummy mỗi khi thực hiện lệnh
Khi khoảng cách giữa dummy và target < number thì dừng và gây effect.
2/
IF: Random number from 1 to 100 =< 15
THEN: Do action...
 
Mã:
Bossdie
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Sylvanas Windrunner
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Owner of (Triggering unit)) is in Gryffindor) Equal to True
            Then - Actions
                Unit - Move (Triggering unit) instantly to (Center of PickGry <gen>)
                Camera - Pan camera for (Owner of (Triggering unit)) to (Center of PickGry <gen>) over 0.00 seconds
            Else - Actions
                Unit - Move (Triggering unit) instantly to (Center of PickSly <gen>)
                Camera - Pan camera for (Owner of (Triggering unit)) to (Center of PickSly <gen>) over 0.00 seconds
lỗi nào mà khi con Sylvanas Windrunner die nó hok có move hero vậy mấy a?
 
Em đang làm một map RPG nhưng em không biết tạo trigger mà món đồ của hero này mà hero khác không cầm được
VD:class chiến binh không cầm được vũ khí class phù thủy

Nếu nói 1 cách đơn giản thì:
Event Unit acquired an item
Condition Item-type of item being manipulated equal to Gậy
Action
If Unit type of Triggering unit not equal to Pháp sư
then Hero - drop item being manipulated from Triggering unit


2/
IF: Random number from 1 to 100 =< 15
THEN: Do action...

Chiêu Critical Strike sửa Damage multiply=0, chance = 15% và Damage Bonus= 150 thôi bác. :(
 
Chỉnh sửa cuối:
Mã:
Bossdie
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Sylvanas Windrunner
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Owner of (Triggering unit)) is in Gryffindor) Equal to True
            Then - Actions
                Unit - Move (Triggering unit) instantly to (Center of PickGry <gen>)
                Camera - Pan camera for (Owner of (Triggering unit)) to (Center of PickGry <gen>) over 0.00 seconds
            Else - Actions
                Unit - Move (Triggering unit) instantly to (Center of PickSly <gen>)
                Camera - Pan camera for (Owner of (Triggering unit)) to (Center of PickSly <gen>) over 0.00 seconds
lỗi nào mà khi con Sylvanas Windrunner die nó hok có move hero vậy mấy a?

Chết rồi ko revive thì move kiểu gì
 
thank em làm được rồi cho em hỏi thêm câu nữa em muốn làm kiểu move giong vầy
VD: -move pokemon (thì nó sẽ chuyển tới nơi mình chỉ định)
 
1) Dùng default hero và skill sẵn trong WE, không thì làm ngày đêm là ra \:D/
2) Tìm và import tileset vào và sử dụng. Cái tileset sắt hình như hive có.
3) Hồi sinh bằng gì ? Hỏi mà cứ như không.
4) Import file sound.mp3 vào, set đường dẫn. Trigger dùng action Sound - Play Sound



[Spell]Sanity's Eclipse_Elipse_Lucent Beam_Fissue.rar
[Spell]Rexxar.rar

cái nhạc bạn giải thích rõ hơn với cái Trigger suonds ko thể chọn sound được
 
em làm 1 spell kiểu trói rồi kéo về phía mình, về cơ bản là hoàn thành nhưng sao khi cast vào creep thì creep bị move (em dùng unit-move unit) sẽ ko chịu quay về lại vị trí cũ nữa (creep starting location), và nếu cứ cast típ thì nó có thể đến nhà mình luôn o.O
Ai zup em giải quyết vụ này với...T.T. tks
 
hok ý mình nói ở đó là khi con Sylvanas Windrunner chết thì sẽ move các hero trên map để các vị trí đã xét, mình mới sửa lại nhưng vẫn hok hoạt động ai bík chỉ mình với.
Mã:
Bossdie
    Events
        Unit - A unit owned by Neutral Hostile Dies
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Unit-type of (Dying unit)) Equal to Sylvanas Windrunner
                        ((Owner of (Picked unit)) is in Gryffindor) Equal to True
                    Then - Actions
                        Unit - Move (Picked unit) instantly to (Center of PickGry <gen>)
                        Camera - Pan camera for (Owner of (Picked unit)) to (Center of PickGry <gen>) over 0.00 seconds
                    Else - Actions
                        Unit - Move (Picked unit) instantly to (Center of PickSly <gen>)
                        Camera - Pan camera for (Owner of (Picked unit)) to (Center of PickSly <gen>) over 0.00 seconds


---------- Post added at 15:00 ---------- Previous post was at 14:50 ----------

TRIGGER NÀY e vừa sửa nhưng sao nó cũng hok hoạt động, ai chỉnh giùm e với
Mã:
Bossdie
    Events
        Unit - A unit owned by Neutral Hostile Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Sylvanas Windrunner
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Owner of (Picked unit)) is in Gryffindor) Equal to True
                    Then - Actions
                        Unit - Move (Picked unit) instantly to (Center of PickGry <gen>)
                        Camera - Pan camera for (Owner of (Picked unit)) to (Center of PickGry <gen>) over 0.00 seconds
                    Else - Actions
                        Unit - Move (Picked unit) instantly to (Center of PickSly <gen>)
                        Camera - Pan camera for (Owner of (Picked unit)) to (Center of PickSly <gen>) over 0.00 seconds
 
[/COLOR]TRIGGER NÀY e vừa sửa nhưng sao nó cũng hok hoạt động, ai chỉnh giùm e với
Mã:
Bossdie
    Events
        Unit - A unit owned by Neutral Hostile Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Sylvanas Windrunner
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Owner of (Picked unit)) is in Gryffindor) Equal to True
                    Then - Actions
                        Unit - Move (Picked unit) instantly to (Center of PickGry <gen>)
                        Camera - Pan camera for (Owner of (Picked unit)) to (Center of PickGry <gen>) over 0.00 seconds
                    Else - Actions
                        Unit - Move (Picked unit) instantly to (Center of PickSly <gen>)
                        Camera - Pan camera for (Owner of (Picked unit)) to (Center of PickSly <gen>) over 0.00 seconds

sao move lắm picker unit thế? pick 1 con move đi tới 2 nơi biết đường nào. bạn nên dùng If/then/else để cho nó thành 1 đi
 
sao move lắm picker unit thế? pick 1 con move đi tới 2 nơi biết đường nào. bạn nên dùng If/then/else để cho nó thành 1 đi

Player Group - Pick every player in (All players) and do (Actions)
Cái này thì...... Pick player ko phải pick unit thì picked unit ở đâu ra vậy bạn?
 
hok ý mình nói ở đó là khi con Sylvanas Windrunner chết thì sẽ move các hero trên map để các vị trí đã xét, mình mới sửa lại nhưng vẫn hok hoạt động ai bík chỉ mình với.
Xét hàm if làm j khi cả 2 phần thenelse như nhau ??
Mã:
Events
        Unit - A unit owned by Neutral Hostile Dies
Conditions
        (Unit-type of (Dying unit)) Equal to Sylvanas Windrunner
Actions
        Player Group - Pick every player in (Griffindor) and do (Actions)
            Loop - Actions
              Unit Group - Pick every unit owned by (Picked player) and do (Actions)
                     Loop - Actions
                        Unit - Move (Picked unit) instantly to (Center of PickGry <gen>)
                        Camera - Pan camera for (Owner of (Picked unit)) to (Center of PickGry <gen>) over 0.00 seconds
Note: Nếu phần trên không như ý bạn muốn thì bạn nên trình bày rõ ý định của mình khi làm trigger này.
 
Chỉnh sửa cuối:
TRIGGER NÀY e vừa sửa nhưng sao nó cũng hok hoạt động, ai chỉnh giùm e với
Mã:
Bossdie
    Events
        Unit - A unit owned by Neutral Hostile Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Sylvanas Windrunner
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Owner of (Picked unit)) is in Gryffindor) Equal to True
                    Then - Actions
                        Unit - Move (Picked unit) instantly to (Center of PickGry <gen>)
                        Camera - Pan camera for (Owner of (Picked unit)) to (Center of PickGry <gen>) over 0.00 seconds
                    Else - Actions
                        Unit - Move (Picked unit) instantly to (Center of PickSly <gen>)
                        Camera - Pan camera for (Owner of (Picked unit)) to (Center of PickSly <gen>) over 0.00 seconds

Không phải pick player mà là pick unit (Unit Group - Pick every unit in (vùng nào đấy matching (điều kiện)) and do...)

@lone: then với else nó nhác nhau đấy chứ cậu nhìn ko rõ rồi :)) PickGry với PickSly khó nhìn thật :))
 
Cho hỏi làm sao để knockback 1 hero hoặc unit ra xa 300 phạm vi thế :D facing mình nhé
 
Status
Không mở trả lời sau này.
Back
Top