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

Status
Không mở trả lời sau này.
mấy cái spell trong map demo Tut bạn post mình copy qua map mình và dựa vào đó làm thêm mấy cái nữa, nhưng tại sao sau khi sử dụng chiêu tạo bỏi các trigger đó lại gây lag dễ sợ @@

Đưa cho mình xem bạn "dựa vào đó thêm mấy cái nữa" là gì, vì những spell này không cẩn thận thì leak vài trăm point/ lần cast đấy.

Gold:

Mã:
        Set CriticalGroup = ( Units in (Playable map area))
        Unit Group - Pick every unit in CriticalGroup and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) has buff Critical ) Equal to True
                    Then - Actions
                        Unit - Add Critical (hider)  to (Picked unit)
                        Unit - Set level of Critical Strike for (Picked unit) to (Level of Critical  for CriticalCaster)
                        Player - Disable Critical (hider)  for (Owner of (Picked unit))
                    Else - Actions
                        Unit - Remove Critical (hider)  from (Picked unit)
       Call DestroyGroup (udg_CriticalGroup)

Đây nè, thêm cái If thứ 2 chi cho mệt. (Cũng chưa test :D). Mà SFX hình như là special effect đấy :-?.
 
ai làm dc những spell dưới đây chỉ mình với
-Khi dùng spell này thì unit gần mình nhất thì bị chết trc xa mình nhất thì bị chết sau ai làm dc chỉ mình với nha
-Khi dùng spell này vào unit sẽ biến tới unit đó và random điểm xung quanh unit đó
-Và cuối cùng skill until của blood ( bửa bạn lonewoft chỉ mà làm có dc đâu :|)
sẳn cho hỏi làm đồng hồ đếm time chơi game giống dota
thank nhiều :d
 
Nah, sorry vì chưa test, nó không hoạt động vì damage gây ra lớn hơn 200. :D
Rupture - Bloodseeker
[Spoil]
Mã:
trigger 1
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Rupture 
    Actions
        Set R_Caster = (Casting unit)
        Set R_Level = (Level of (Ability being cast) for R_Caster)
        Set R_Target = (Target unit of ability being cast)
        Set R_Damage = (50.00 + ((Real(R_Level)) x 100.00))
        Set R_Loc[1] = (Position of R_Target)
        Unit - Cause R_Caster to damage R_Target, dealing R_Damage damage of attack type Chaos and damage type Universal
        Unit - Create 1 Peasant for (Owner of R_Target) at R_Loc[1] facing Default building facing degrees
        Set R_Dummy = (Last created unit)
        Unit - Add a (3.00 + ((Real(R_Level)) x 2.00)) second Generic expiration timer to R_Dummy
        Unit - Set level of Rupture Buff  for R_Dummy to R_Level
        Trigger - Turn on Untitled Trigger 001 <gen>
[/Spoil]
[Spoil]
Mã:
Untitled Trigger 001
    Events
        Time - Every 0.25 seconds of game time
    Conditions
    Actions
        Set R_Loc[2] = (Position of R_Target)
        Set R_Damage = (Distance between R_Loc[1] and R_Loc[2])
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                R_Damage Less than or equal to 200.00
                R_Damage Greater than 0.00
            Then - Actions
                Unit - Cause R_Caster to damage R_Target, dealing R_Damage damage of attack type Spells and damage type Magic
                Special Effect - Create a special effect attached to the head of R_Target using Objects\Spawnmodels\Orc\Orcblood\BattrollBlood.mdl
                Special Effect - Destroy (Last created special effect)
                Custom script:   call RemoveLocation( udg_R_Loc[1] )
                Custom script:   call RemoveLocation( udg_R_Loc[2] )
                Set R_Loc[1] = (Position of R_Target)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (R_Dummy is alive) Equal to False
                        (R_Target is alive) Equal to False
            Then - Actions
                Custom script:   call RemoveLocation( udg_R_Loc[1] )
                Custom script:   call RemoveLocation( udg_R_Loc[2] )
                Unit - Remove Rupture buff from R_Target
                Trigger - Turn off (This trigger)
            Else - Actions
[/Spoil]

1_ Bao lâu mới chết, khái niêm trước-sau hơi nhạt bạn ơi :(
[Spoil]
Mã:
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to .... 
    Actions
        Set Caster = (Casting unit)
        Set Loc = (Position of Caster)
        For each (Integer A) from 1 to 5, do (Actions)
              Loop - Actions
                  Set Group[IntegerA] = Units within (100 x IntegerA) of Loc matching condition (Owner of matching unit) is enemy of (Owner of Caster) equal to true and (Matching unit is alive) equal to true
                  Unit Group - Pick every unit in Group[IntegerA] and do (Actions)
                        Loop - Actions
                                  Unit - Cause Caster to damage Picked unit, dealing 999999 damage of attack type Chaos and damage type Universal
                  Custom script: call DestroyGroup(udg_Group[bj_forLoopAIndex])
                  Wait 2s
        Call RemoveLocation( udg_Loc )
[/Spoil]

2_[Spoil]
Mã:
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to RandomBlink
    Actions
        Set Loc = (Position of (Target unit of ability being cast))
        Unit - Move (Triggering unit) instantly to (Loc) offset by (Random real number between 0.00 and 300.00) towards (Random real number between 0.00 and 360.00) degrees), facing (Loc)
        Call RemoveLocation( udg_Loc )
[/Spoil]
 
Cái đồng hồ thì bạn tạo 1 timer 60s. 1 trigger hết timer thì add 1 gỗ sau đó lại chạy lại timer 60s cứ như vậy 60s 1 lần add là có đồng hồ :))
 
Sao cứ cho Bloodhood(Tauren Chieftain) hoặc Grom hellsream abitily cleaving attack cùng critical strike thì lúc đánh quái nó cứ play animation slam suốt , ko hề dùng animation attack 1 tí nào , làm sao để nó đánh bình thường giờ , chỉ lúc nào critical mới dùng animation slam thôi .:(
 
Tại cái Cleaving Attack đấy, nó dùng animation Slam mà, bỏ cái đó ra là crit sẽ như thường.
@meomeo: cái hệ thống kích hoạt dòng lần trước ông còn phát triển không vậy:( cho mượn tham khảo với
 
ọc , ý mình là làm nó ko slam khi đánh bình thường nữa chứ bỏ cleaving attack là hạ sách roài :|
 
ọc , ý mình là làm nó ko slam khi đánh bình thường nữa chứ bỏ cleaving attack là hạ sách roài :|

Bảo bạn bỏ animation chứ có bảo bỏ cái spel đó đâu, Vào spell Cleaving attack , vào Art - Animation names , bỏ cái string "slam" đi

---------- Post added at 17:37 ---------- Previous post was at 17:32 ----------

làm sao để không chia tiền được thế??

Bạn thử vào "Game constant..." trên menu "Advanced" ngay 2 đầu tiên là dòng share tiền đó. Chỉnh về 0 hết là được. Trước khi chỉnh nhớ thêm cái dấu check vào ô Checkbox là "Use custom values" hay đại loại. Hem nhớ tên chuẩn
 
Cái kích hoạt dòng mình để mở có khóa đâu bạn cứ vào cái chủ đề cũ của mình mà lôi về.
 
mình dựa hẳn vào Trigger của bạn, chỉ thay đổi chỗ, Create Unit và Specail Effect thui, còn lại vẫn để nguyên.
Để là 2 trigger mình dựa vào trigger của bạn làm nè.
Trigger 1:
Mã:
Events
    Unit - A unit Starts the effect of an ability
Conditions
    (Ability being cast) Equal to Excalibur 
Actions
    -------- SET Bien --------
    Set K_Caster = (Casting unit)
    Set K_Point[0] = (Position of K_Caster)
    Set K_Point[1] = (Target point of ability being cast)
    Set K_Angle = (Angle from K_Point[0] to K_Point[1])
    Set K_Damage = (4000.00 + (1000.00 x (Real((Level of Excalibur  for K_Caster)))))
    Set K_Size = 300.00
    -------- -------------------------------------------------------------- --------
    Unit - Create 1 Super Light Angel 1 for (Owner of K_Caster) at K_Point[0] facing K_Angle degrees
    Unit - Add a 4.00 second Generic expiration timer to (Last created unit)
    Animation - Change (Last created unit)'s size to (K_Size%, K_Size%, K_Size%) of its original size
    Unit - Create 1 Super Light Angel 2 for (Owner of K_Caster) at K_Point[0] facing K_Angle degrees
    Unit - Add a 4.00 second Generic expiration timer to (Last created unit)
    Animation - Change (Last created unit)'s size to (K_Size%, K_Size%, K_Size%) of its original size
    For each (Integer A) from 2 to (((Level of (Ability being cast) for K_Caster) x 3) + 3), do (Actions)
        Loop - Actions
            Set K_Point[(Integer A)] = (K_Point[0] offset by (100.00 x (Real((Integer A)))) towards K_Angle degrees)
            Environment - Create a 2.00 second Normal ripple deformation at K_Point[(Integer A)] with starting radius 100.00, ending radius 200.00, and depth 20.00, using 0.50 second ripples spaced 512.00 apart
            Set K_Group[1] = (Units within (100.00 x (Real((Level of (Ability being cast) for K_Caster)))) of K_Point[(Integer A)] matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is in K_Group[2]) Equal to False)) and (((Owner of (Matching unit)) is an enemy o
            Unit Group - Pick every unit in K_Group[1] and do (Actions)
                Loop - Actions
                    Unit - Cause K_Caster to damage (Picked unit), deal
Trigger 2:
Mã:
Events
    Unit - A unit Starts the effect of an ability
Conditions
    (Ability being cast) Equal to Mana Burts 
Actions
    -------- SET Bien --------
    Set K_Caster = (Casting unit)
    Set K_Point[0] = (Position of K_Caster)
    Set K_Point[1] = (Target point of ability being cast)
    Set K_Angle = (Angle from K_Point[0] to K_Point[1])
    Set K_Damage = (100.00 + (300.00 x (Real((Level of Mana Burts  for K_Caster)))))
    Set K_Size = 200.00
    -------- -------------------------------------------------------------- --------
    Unit - Create 1 Light Angel for (Owner of K_Caster) at K_Point[0] facing K_Angle degrees
    Unit - Add a 4.00 second Generic expiration timer to (Last created unit)
    Animation - Change (Last created unit)'s size to (K_Size%, K_Size%, K_Size%) of its original size
    For each (Integer A) from 2 to (((Level of (Ability being cast) for K_Caster) x 3) + 3), do (Actions)
        Loop - Actions
            Set K_Point[(Integer A)] = (K_Point[0] offset by (100.00 x (Real((Integer A)))) towards K_Angle degrees)
            Environment - Create a 2.00 second Normal ripple deformation at K_Point[(Integer A)] with starting radius 100.00, ending radius 200.00, and depth 20.00, using 0.50 second ripples spaced 512.00 apart
            Set K_Group[1] = (Units within (50.00 x (Real((Level of (Ability being cast) for K_Caster)))) of K_Point[(Integer A)] matching (((((Matching unit) is alive) Equal to True) and (((Matching unit) is in K_Group[2]) Equal to False)) and (((Owner of (Matching unit)) is an enemy of
            Unit Group - Pick every unit in K_Group[1] and do (Actions)
                Loop - Actions
                    Unit - Cause K_Caster to damage (Picked unit), dealing K_Damage damage of attack type Chaos and damage type Universal
                    Camera - Shake the camera for (Owner of (Picked unit)) with magnitude 3.00
                    Camera - Sway the camera target for (Owner of (Picked unit)) with magnitude 20.00 and velocity 5.00
P/s : Làm giúp mình spell này lun nha : Khi cast spell Thunder Clap thì những unit xung quanh hero sẽ bị bay lên trời, cho mình hỏi thêm leak là gì ?:D
 
^
Vào mục Tổng hợp Link và hướng dẫn xem hướng dẫn Leak và Custom Script của anh Tom đại ka. Toàn bộ spell bạn làm leak group, point.. cả, thế thì cast máy đơ ra là phải ;;)

Bảo bạn bỏ animation chứ có bảo bỏ cái spel đó đâu, Vào spell Cleaving attack , vào Art - Animation names , bỏ cái string "slam" đi


Thử chưa mà hùng hồn thế =)). Nó thuộc phần core rồi, không đổi được.
 
Chỉnh sửa cuối:
thế phải chỉnh như thế nào, và loại bỏ leak = cách nào ??
 
đã đọc và làm được rùi thanks các bạn nhìu. Còn spell này ai làm giúp mình với: Khi dùng Thunder clap thì những unit đứng xung quanh hero sẽ bị bay lên trời. Ai chỉ mình với :((
 
Cho hỏi tại sao khi item active spell thì thời gian cooldown lại bị ảnh hưởng đến các item khác, chỉnh time cooldown cho item là cái nào vậy, lam sao để active item spell thì bị mất Mana ? Thanks x3
 
THật ra thì vấn đề này rất đơn giản chỉ cần chú ý là được :
-thấy dòng cooldown group trong item ko : chỉnh cho mỗi item có 1 cái khác nhau ( nhấn vào để chọn ), vấn đề này nhiều khi phát sinh vì base cùng 1 cái item.
-ability active là cái nào thì chỉnh cooldown vs mana cái đấy 8-}.
 
đã đọc và làm được rùi thanks các bạn nhìu. Còn spell này ai làm giúp mình với: Khi dùng Thunder clap thì những unit đứng xung quanh hero sẽ bị bay lên trời. Ai chỉ mình với :((

Spell tả không nhiều nên mình chỉ làm theo ý mình thôi. Muốn thay đổi thì chỉnh sửa số phần set biến là xong
View attachment [Spell] Warstormp with Flying Effect.rar
 
Có cao nhân nào biết làm spell Rain of Fire như dota của hero Pit ko? kỉu như lúc cast spell mà vẫn có thể di chuyển được.thanks
 
cho hỏi có skill nào thả đc 2 loại lính trở k0 lên hoặc làm trigger thế nào ai giúp với
 
Có cao nhân nào biết làm spell Rain of Fire như dota của hero Pit ko? kỉu như lúc cast spell mà vẫn có thể di chuyển được.thanks

Khi cast spell (spell của hero là dummy) tạo dummy, dummy mới cast spell chính thức. Như vậy hero vẫn di chuyển được, còn thằng dummy thì cứ yên đó mà cast
cho hỏi có skill nào thả đc 2 loại lính trở k0 lên hoặc làm trigger thế nào ai giúp với

Có cái skill kiêu xương của necromancer :))
Trigger thì đây (không có WE nên viết không được chính xác lắm nhé):
Mã:
Events: Unit starts effect of the ability
Conditions: Ability being cast equal to [B]Summon[/B]
Actions:
- Set TempPoint = Position of casting unit
- Unit - Creates 1 [B]Unit[/B] for owner of casting unit at TempPoint
- Add [B]60[/B] seconds generic time to last create unit
- Custom script: call RemoveLocation(udg_TempPoint)
Làm nhiều lần actions nếu muốn tạo nhiều loại unit :D
 
Chỉnh sửa cuối:
Status
Không mở trả lời sau này.
Back
Top