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

Mình làm một skill passive 10% cast Mana burn random 5 enemy units trong 200 AOE của Hero khi Hero tấn công.
Mã:
Passive Critical Strike
    Events
        Unit - A unit Is attacked
    Conditions
        ((Attacked unit) is A structure) Equal to False
        (Level of Critical Strike  for (Attacking unit)) Greater than or equal to 1
        (Level of Mana Burn  for (Attacking unit)) Greater than or equal to 1
        (Random percentage) Less than or equal to 10.00
    Actions
        Set Temp_Point = (Position of (Attacking unit))
        Unit - Create 1 Dummy Frozen for (Owner of (Attacking unit)) at Temp_Point facing Default building facing degrees
        Unit - Add Mana Burn <Unit>  to (Last created unit)
        Unit - Set level of Mana Burn <Unit>  for (Last created unit) to (Level of Mana Burn  for (Attacking unit))
        Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
        Set UnitGroupExplosion = (Units within 200.00 of Temp_Point matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
        Unit Group - Pick every unit in UnitGroupExplosion and do (Actions)
            Loop - Actions
                Unit - Order (Last created unit) to Night Elf Demon Hunter - Mana Burn (Picked unit)
        Custom script:   call RemoveLocation(udg_Temp_Point)
        Custom script:   call DestroyGroup( udg_UnitGroupExplosion)

Nhưng mình ko biết làm cách nào để order dummy tấn công random 5 enemy cả, trong này chỉ có random 1 enemy thôi :(, ko muốn nó bem tất cả enemy units trong Group đấy.
Bác nào giúp mình với :)
 
Nhưng mình ko biết làm cách nào để order dummy tấn công random 5 enemy cả, trong này chỉ có random 1 enemy thôi , ko muốn nó bem tất cả enemy units trong Group đấy.
Bác nào giúp mình với
sửa thành vậy

Mã:
Passive Critical Strike
    Events
        Unit - A unit Is attacked
    Conditions
        ((Attacked unit) is A structure) Equal to False
        (Level of Critical Strike  for (Attacking unit)) Greater than or equal to 1
        (Level of Mana Burn  for (Attacking unit)) Greater than or equal to 1
        (Random percentage) Less than or equal to 10.00
    Actions
        Set Temp_Point = (Position of (Attacking unit))
        [B]Set UnitGroupExplosion = (Units within 200.00 of Temp_Point matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
        Set UnitGroupExplosion5unit = (random 5 unit in UnitGroupExplosion)
        Unit Group - Pick every unit in UnitGroupExplosion5unit and do (Actions)
            Loop - Actions[/B]
            Unit - Create 1 Dummy Frozen for (Owner of (Attacking unit)) at Temp_Point facing Default building facing degrees
             Unit - Add Mana Burn <Unit>  to (Last created unit)
             Unit - Set level of Mana Burn <Unit>  for (Last created unit) to (Level of Mana Burn  for (Attacking unit))
             Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
             Unit - Order (Last created unit) to Night Elf Demon Hunter - Mana Burn (Picked unit)
        Custom script:   call RemoveLocation(udg_Temp_Point)
        Custom script:   call DestroyGroup( udg_UnitGroupExplosion)
        [B]Custom script:   call DestroyGroup( udg_UnitGroupExplosion5unit)[/B]
 
Gửi EH:http://www.mediafire.com/?0pimmt8zvmxcb4s.
Xem giúp mình 1 số skill gây lag xem có sửa đc ko nha:Earth Quake(Geodude),Hurricane(Charmander),Sand Storm(Sandshrew),Volt Tackle(Pikachu),Psychic(Abra).
Skill ko hoạt động:Mud Slap(Rattata)
Skill pick Group để damage địch trong phạm vi quanh caster ko được(khi damage cả mình và đồng đội cũng mất máu khi có kẻ địch trong phạm vi,khi ko có địch thì lại ko gay damage lên mình và đồng đội):Blast Burn(Charmander)
Cho hỏi thêm là khi mình tạo 1 con Boss xuất hiện ở phút 15 của game chẳng hạn thì làm sao để khi đánh Boss đó chết rớt ra đồ.
 
Cho Hỏi cách làm tiếng mưa nghe được trên cả map (entire hay global map j j đấy) mình dùng 1 skill channel để effect có tiếng mưa của monsoon nhưng chỉ chỗ cast mới nghe thấy kể cả AoE = 99999.
 
cho hỏi làm thế nào để sync integer nhỉ :-s hình như code này không hoạt động
Mã:
    function LoadStringSync takes integer i returns nothing
    local gamecache g =     InitGameCache("Map.w3v")
    local string key=I2S(GetPlayerId(GetLocalPlayer()))
    local string thistype ="key"
    call StoreInteger ( g,key,thistype,i)
    call TriggerSyncStart ()
        call SyncStoredInteger ( g,key,thistype)
        call TriggerSyncReady ()
    
    if HaveStoredInteger(g,key,thistype) then
    call BJDebugMsg("then")
    call I2S(GetStoredInteger(g,key,thistype))
    call BJDebugMsg(I2S(GetStoredInteger(g,key,thistype)))
    endif
    endfunction
 
cho em hỏi sao khi dùng đọan trigger sau thì tuy các missile di chuyển độc lập r nhưng mà lại ko thể dùng đc effect khi va chạm riêng vậy (tức là kiểu nếu có 2 missile đang chạy thì 1 cái phải nổ vào 1 con creep trước thì cái tiếp theo mới nổ tiếp đc, ko thì cái missile đó sẽ bay qua luôn con creep cho đến khi cái kia nổ vào 1 con khác.= =")
Cast
Mã:
Events
    Unit - A unit Starts the effect of an ability
Conditions
    (Ability being cast) Equal Spear
Actions
    Set Caster_SL = (Casting unit)
    Set Angle_SL = (Angle from (Position of Caster_SL) to (Target point of ability being cast))
    Unit - Create 1 Dummy for (Owner of Caster_SL) at ((Position of Caster_SL) offset by 75.00 towards Angle_SL degrees) facing Angle_SL degrees
    Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
    Unit Group - Add (Last created unit) to Group_SL
Loop
Mã:
Events
    Time - Every 0.02 seconds of game time
Actions
    Unit Group - Pick every unit in Group_SL and do (Actions)
        Loop - Actions
            Set Spear_SL = (Picked unit)
            Set TempLoc1 = (Position of Spear_SL)
            Set TempLoc2 = (TempLoc1 offset by 20.00 towards (Facing of Spear_SL) degrees)
            Unit - Move Spear_SL instantly to TempLoc2
            Custom script:   call RemoveLocation( udg_TempLoc1 )
            Custom script:   call RemoveLocation( udg_TempLoc2 )
Impact
Mã:
Events
    Time - Every 0.01 seconds of game time
Actions
    Unit Group - Pick every unit in (Units within 75.00 of (Position of Spear_SL)) and do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    ((Picked unit) is in Group_SL) Equal to False
                    ((Picked unit) is alive) Equal to True
                Then - Actions
                    Unit Group - Remove Spear_SL from Group_SL
                    Special Effect - Create a special effect at (Position of Spear_SL) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
                    Special Effect - Destroy (Last created special effect)
                    Unit - Remove Spear_SL from the game
                Else - Actions

do đây mới làm để test thử nên còn nhiều leak, mn thông cảm.:5cool_big_smile:
 
er 1 cái cho nó chạy vs 1 cái để khi nào chạm phải bọn xung quanh thì nổ. tại thấy ghép vào làm 1 nó hơi lằng nhằng nên tách ra 2 cho dễ hiểu:5cool_big_smile:
 
her.= =". phũ vậy. th ngồi sửa lại xem có khá khẩm hơn ko vậy.= ="
 
cho hỏi làm thế nào để sync integer nhỉ :-s hình như code này không hoạt động
Mã:
    function LoadStringSync takes integer i returns nothing
    local gamecache g =     InitGameCache("Map.w3v")
    local string key=I2S(GetPlayerId(GetLocalPlayer()))
    local string thistype ="key"
    call StoreInteger ( g,key,thistype,i)
    call TriggerSyncStart ()
        call SyncStoredInteger ( g,key,thistype)
        call TriggerSyncReady ()
    
    if HaveStoredInteger(g,key,thistype) then
    call BJDebugMsg("then")
    call I2S(GetStoredInteger(g,key,thistype))
    call BJDebugMsg(I2S(GetStoredInteger(g,key,thistype)))
    endif
    endfunction

Thì nó có bao giờ hoạt động đâu
 
Stork[gm];22527345 nói:
Cho Hỏi cách làm tiếng mưa nghe được trên cả map (entire hay global map j j đấy) mình dùng 1 skill channel để effect có tiếng mưa của monsoon nhưng chỉ chỗ cast mới nghe thấy kể cả AoE = 99999.

Thử pick all player rồi play sound đi :-?
 
Xem giúp mình 1 số skill gây lag xem có sửa đc ko nha:Earth Quake(Geodude),Hurricane(Charmander),Sand Storm(Sandshrew),Volt Tackle(Pikachu),Psychic(Abra).
Skill ko hoạt động:Mud Slap(Rattata)
Skill pick Group để damage địch trong phạm vi quanh caster ko được(khi damage cả mình và đồng đội cũng mất máu khi có kẻ địch trong phạm vi,khi ko có địch thì lại ko gay damage lên mình và đồng đội):Blast Burn(Charmander)
Cho hỏi thêm là khi mình tạo 1 con Boss xuất hiện ở phút 15 của game chẳng hạn thì làm sao để khi đánh Boss đó chết rớt ra đồ.

Skill toàn lấy trên hive hử? :|
Có một vài skill tuy remove leak đầy đủ nhưng vẫn lag, nguyên nhân do doodad nhiều hoặc time trigger loop skill đó quá ngắn (0.01s chẳng hạn) điển hình là Earth quake và Hurricane, chịu rồi :|
Volt Tackle thì bt, có lag đâu? Mấy skill kia thì lười xem quá, ko biết làm MUI chi cho rắc rối :|~
Skill Mudslap thì sai rồi, nên tạo 2 biến point cho chắc, chẳng may bị trùng biến thì sao X_X
Rồi chỗ này
Mã:
Unit Group - Pick every unit in MudSlap_Miss_Group and do (Actions)
    Loop - Actions
        Unit - Order (Last created unit) to Undead Banshee - Curse (Picked unit)
Nên để phàn này vào Loop action luôn, chứ như trên thì chỉ có một dummy mà bắt nó cast hết => ko kịp là phải
Mã:
Unit Group - Pick every unit in MudSlap_Miss_Group and do (Actions)
    Loop - Actions
        Unit - Create 1 Dummy_Mud Slap for (Owner of Caster_MudSlap) at MudSlap_Loop_Location facing (Facing of Caster_MudSlap) degrees
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Add Miss Mud Slap  to (Last created unit)
        Unit - Order (Last created unit) to Undead Banshee - Curse (Picked unit)

 
có anh nào biết làm spell
-Khi cast spell lên unit A thì sẽ move caster đến A point, xong rùi pick random 3 unit gần unit A là B C và D. Xong move caster tới từng đứa .

Nói trắng ra thì xài lên A thì move tới A và B C D.
 
Skill toàn lấy trên hive hử? :|
Có một vài skill tuy remove leak đầy đủ nhưng vẫn lag, nguyên nhân do doodad nhiều hoặc time trigger loop skill đó quá ngắn (0.01s chẳng hạn) điển hình là Earth quake và Hurricane, chịu rồi :|
Volt Tackle thì bt, có lag đâu? Mấy skill kia thì lười xem quá, ko biết làm MUI chi cho rắc rối :|~
Skill Mudslap thì sai rồi, nên tạo 2 biến point cho chắc, chẳng may bị trùng biến thì sao X_X
Rồi chỗ này
Mã:
Unit Group - Pick every unit in MudSlap_Miss_Group and do (Actions)
    Loop - Actions
        Unit - Order (Last created unit) to Undead Banshee - Curse (Picked unit)
Nên để phàn này vào Loop action luôn, chứ như trên thì chỉ có một dummy mà bắt nó cast hết => ko kịp là phải
Mã:
Unit Group - Pick every unit in MudSlap_Miss_Group and do (Actions)
    Loop - Actions
        Unit - Create 1 Dummy_Mud Slap for (Owner of Caster_MudSlap) at MudSlap_Loop_Location facing (Facing of Caster_MudSlap) degrees
        Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
        Unit - Add Miss Mud Slap  to (Last created unit)
        Unit - Order (Last created unit) to Undead Banshee - Curse (Picked unit)


Skill lấy trên Hive,Gamevn,phutu ... nhiều chỗ.Cái nào thấy hợp lí là đút zô.1 số cái đơn giản tự nghĩ rồi làm.Sai >> xóa :D.Đc cái Mudslap rồi.Còn cái Blast Burn với Sand Storm úc nào rảnh bạn coi cũng đc.2 cái đó làm chiêu cuối ngon wá ko nỡ bỏ
 
^ Thôi miêu tả 2 skill đó đi, tự làm chứ nhìn vào y như mù ấy @@
 
^ Thôi miêu tả 2 skill đó đi, tự làm chứ nhìn vào y như mù ấy @@
Oh.
Blast Burn:Tạo ra các cột lửa quanh người mình Aoe 500.Mình đi đến đâu thì lửa cũng đi đến đó.Deal damage Aoe mỗi 0.5s,trong 5s.
Sand Storm:Skill target vao 1 điểm trên mặt đất,ở vị trí đó tạo ra cơn lốc cuốn các unit địch xoay tròn dần vào điểm cast skill và gây damage liên tục trong lúc bị cuốn vào.Lốc tồn tại 4s
 
Oh.
Blast Burn:Tạo ra các cột lửa quanh người mình Aoe 500.Mình đi đến đâu thì lửa cũng đi đến đó.Deal damage Aoe mỗi 0.5s,trong 5s.
Sand Storm:Skill target vao 1 điểm trên mặt đất,ở vị trí đó tạo ra cơn lốc cuốn các unit địch xoay tròn dần vào điểm cast skill và gây damage liên tục trong lúc bị cuốn vào.Lốc tồn tại 4s

Here: http://www.mediafire.com/?ob1h6b9w6cjfwu0

Nhân tiện: ai MUI giúp mình spell này được ko? :)
http://www.mediafire.com/?kx496mv69tsvcuk
 
Chỉnh sửa cuối:
Back
Top