Topic hỏi đáp (tập 4) về cách làm map

Status
Không mở trả lời sau này.
Sao mình làm Spell như này : Tăng giáp cho unit dần dần từ 1,2,3,4... đến max 20 (ở lvl 4), sau mỗi lần unit nhận dam thì - số giáp đi 1. Ko hiểu sao sau khi hú giáp lần đầu, mỗi lần nhận dam thì giáp - đi 1, hú giáp lần 2, nhận dam thì giáp lại -2 mỗi hit, lần 3 thì -3,... Xem đi xem lại vẫn ko hiểu sai ở đâu, ai giúp fix dùm cái...

Trigger 1[spoil]
Mã:
[INDENT][SIZE="3"]Untitled Trigger 018 Copy Copy
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to ArmorStack 
    Actions
        Set HWUnit[0] = (Triggering unit)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Armor Stack (+2) for HWUnit[0]) Greater than 0
            Then - Actions
            Else - Actions
                Unit - Add Armor Stack (+2) to HWUnit[0]
        Animation - Change HWUnit[0]'s animation speed to 50.00% of its original speed
        Trigger - Turn off Untitled Trigger 056 <gen>
        Trigger - Turn on Untitled Trigger 018 Copy 2 <gen>
        Trigger - Add to Untitled Trigger 018 Copy 2 <gen> the event (Time - Every (0.60 - ((Real((Level of ArmorStack  for HWUnit[0]))) x 0.10)) seconds of game time)[/SIZE][/INDENT]
[/spoil]
Trigger 2[spoil]
Mã:
[INDENT][SIZE="3"]Untitled Trigger 018 Copy 2
    Events
    Conditions
    Actions
        Set ArmorLevel = (Level of Armor Stack (+2) for HWUnit[0])
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ArmorLevel Equal to ((4 x (Level of ArmorStack  for HWUnit[0])) + 5)
            Then - Actions
                Unit - Order HWUnit[0] to Stop
            Else - Actions
                Unit - Set level of Armor Stack (+2) for HWUnit[0] to (ArmorLevel + 1)[/SIZE][/INDENT]
[/spoil]
Trigger 3[spoil]
Mã:
[INDENT][SIZE="3"]Untitled Trigger 071
    Events
        Unit - A unit Stops casting an ability
    Conditions
        (Ability being cast) Equal to ArmorStack 
    Actions
        Trigger - Turn off Untitled Trigger 018 Copy 2 <gen>
        Animation - Change HWUnit[0]'s animation speed to 100.00% of its original speed
        Trigger - Turn on Untitled Trigger 056 <gen>
        Trigger - Add to Untitled Trigger 056 <gen> the event (Unit - HWUnit[0] Takes damage)[/SIZE][/INDENT]
[/spoil]
Trigger 4[spoil]
Mã:
[INDENT][SIZE="3"]Untitled Trigger 056
    Events
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Level of Armor Stack (+2) for HWUnit[0]) Equal to 1
            Then - Actions
            Else - Actions
                Set ArmorLevel = (Level of Armor Stack (+2) for HWUnit[0])
                Unit - Set level of Armor Stack (+2) for HWUnit[0] to (ArmorLevel - 1)[/SIZE][/INDENT]
[/spoil]
 
Chỉnh sửa cuối:
Mỗi lần add 1 cái event thế kia mỗi lần nhận dame nó tính làm 2-3-4 lần lại chẳng trừ 2-3-4.

Thêm 1 cái biến gán với unit đó rằng nó đã đc add vào event kia chưa,nếu chưa thì mới add.
 
À, ra thế, fix đc rồi. Thế còn vụ play animation walk thì thế nào?

YAN[asian];15200505 nói:
À, ý mình là làm trong trigger ấy, play animation nào cũng đc, chỉ làm cho nó chạy là ko biết cách nào.
 
Sao mình mở Warcraf III Viewer lên, vào Unit/NightElf thì ko tìm thấy Warden đâu nhỉ?
 
Đây là skill Lightning Bolt của em (chưa thử nên ko biết có được ko).
Mã:
Unit - A unit Starts the effect of an ability
(Ability being cast) Equal to Lightning Bolt
Set LightningBolt = (Target unit of ability being cast)
Set LightningBolt_Copy = (Casting unit)
Set TargetPoint_Copy = (Position of LightningBolt)
Unit - Create 1 Dummy for (Owner of LightningBolt_Copy) at TargetPoint_Copy facing 0.00 degrees
Set Dummy2 = (Last created unit)
Unit - Add a 15.00 second Generic expiration timer to Dummy2
Unit - Add Chain Lightning (Neutral Hostile 3) to Dummy2
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning LightningBolt
Wait 2.00 seconds
Custom script:     call RemoveLocation(udg_TargetPoint_Copy)
 
Chưa thử thì sao kô thử đi ? Post lên đây định nhờ người khác thử hộ à ?
Với cả
Mã:
Unit - A unit Starts the effect of an ability
(Ability being cast) Equal to Lightning Bolt
Set LightningBolt = (Target unit of ability being cast)
Set LightningBolt_Copy = (Casting unit)
Set TargetPoint_Copy = (Position of LightningBolt)
Unit - Create 1 Dummy for (Owner of LightningBolt_Copy) at TargetPoint_Copy facing 0.00 degrees
Set Dummy2 = (Last created unit)
Unit - Add a 1.00 second Generic expiration timer to Dummy2
Unit - Add Chain Lightning (Neutral Hostile 3) to Dummy2
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning LightningBolt
Custom script:     call RemoveLocation(udg_TargetPoint_Copy)

thế này là đc rồi, kô cần Wait đâu :-ss.
Life Time của Dummy tầm 1s là cùng, để 15s làm gì thế ?
 
Cho hỏi cách làm 1 hệ thống:
+ khi 1 unit chết có % tạo ra :
1/ Ngọc hồi máu
2/ Ngọc hồi mana
+ 1 hero đến gần ngọc nào thì hồi máu hay mana cho hero.
Thêm 1 câu hỏi nữa là có cách nào làm damage spell = damage hero ko ??
Cho hỏi thêm 1 vấn đề là cách làm skill: khi turn on thì add vào hero skill cleave khi turn off thì remove skill cleave đi. Thank
 
1.Unit chết thì random int 0,100 ra,nếu nhỏ hơn xx thì create unit hình ngọc tại vị trí nó chết.Unit hình ngọc này có thể add skill nổ bom chỉ có tác dụng với hero.Thêm 1 event unit ngọc chết thì restore máu mana aoe đó.
2-Damage hero thì làm dựa trên arrow 0 damage. Còn nếu spell cast thì phải tự tính damage hero thôi @_@,phức tạp lắm bỏ đi :D.
3-Tùy skill đấy là gì ví dụ immolation on off thì event là unit is issue an order điều kiện là order string equal to activeimmolation thì add skill....
 
Cho mình hỏi phát về cái skill Incinerate của Fire Lordlà khi mình tạo skill custom mới trên skill Incinerate thì nó lại ko có bonus dmg cho mỗi hit như skill chính mà chỉ có mỗi dmg khi unit death thôi :(
 
uh, skill đó như vậy đấy (bug vậy)

chỉ có skill có sẵn mới có cộng dmg còn skill custom thì chỉ có nổ.
 
@Luci: em làm giống vậy rồi mà sao nó ko add skill cleave vào hero đc :(
 
Các anh chỉ cho em biết cách nào mà khi mang vũ khí vào tự động giảm số Atk speed xuống không, hay là giảm Amour, Attack, Damg. Em tìm trong WE mò hoài không ra.
 
Tại sao khi cast Locust Swarm, những unit như Gargoyle (con dơi) hay Obsidian Statue đều trở thành dạng biến hình (dơi thì ở dạng dơi đá, Obsidian thì ở dạng Destroyer) khi ko di chuyển? Có cách nào khắc phục điều này ko?
 
khi unit Start Effect của ability Locust Swarm, chạy dòng lệnh Remove Animation Tag, remove "alternate" đi.

làm sao để ghép model thú cưỡi cho 1 hero ạ :-s

cái này liên quan tới modeling, vào topic tổng hợp các bài hướng dẫn, có 2 topic về modeling đó, đọc và "luyện" đi, sau đó sẽ làm đc :-j
 
Status
Không mở trả lời sau này.
Back
Top