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

Status
Không mở trả lời sau này.

Tom_Kazansky

<b><font color="RoyalBlue"><font face="Lucida Cons
Anh em có vấn đề gì về cách làm map hãy hỏi, ai biết sẽ trả lời.

Nghiêm cấm việc:
- ko trả lời mà cứ chat nhảm 3:-O
- trả lời ko rõ ràng :@)
- trả lời với "hình như"

Khi trả lời nếu có trigger phải cho vào code tag: [code]<trigger cho vô đây>[/code] hoặc dùng biểu tượng:
code.gif


Trả lời câu hỏi của ai, ở post nào phải quote (trích dẫn) rõ ràng. :bz

ai muốn "thank" người đã giúp mình thì thay vì post 1 bài nói thank hãy click vào biểu tượng
reputation-40b.png
để thank :) (chú ý: ai chưa post đủ 50 bài sẽ ko thấy nút "Thanks")

à trước khi hỏi gì, hãy đọc các topic chú ý:
- Một số bài viết đáng chú ý của box
- Tổng hợp các bài hướng dẫn
- WE - object toàn thư
Đồng thời tìm kiếm trong 3 topic hỏi đáp: Topic hỏi đáp 1Topic hỏi đáp 2Topic hỏi đáp 3Topic hỏi đáp 4
----
ai có vấn đề gì ở topic cũ mà chưa đc trả lời hãy quote sang đây (chỉ đc quote 24h 1 lần với mỗi vấn đề chưa đc trả lời)
 
Từ bài viết của [E]ris[Y]uki
Cho em hỏi làm cái total hero kill = tổng kill các hero trong team cho leader board kiểu gì vậy ?
Em hỏi luôn làm sao để đặt mục tiêu là kill xx hero thì win vậy???
Ai giúp em khoản này với đang cần gấp
Đây là lần thứ 3 hỏi câu này ai giúp em với
 
Cái này bên topic hỏi đáp 4
Ai sữa giùm em cái này đi:
Code:

Arcane Blast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Arcane Blast
Actions
Set AB_Caster = (Casting unit)
Set AB_Target = (Target unit of ability being cast)
Set AB_Distance = 20.00
Countdown Timer - Start AB_Timer as a Repeating timer that will expire in 0.20 seconds
Trigger - Turn on Arcane Blast Move <gen>

Code:

Arcane Blast Count
Events
Time - AB_Timer expires
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
AM_Missile Greater than 0
Then - Actions
Set AB_MUI = (AB_MUI + 1)
Set AB_Loc1[AB_MUI] = (Position of AB_Caster)
Unit - Create 1 Dummy (Arcane Missile) for (Owner of AB_Caster) at AB_Loc1[AB_MUI] facing (Facing of AB_Caster) degrees
Set AB_Dummy[AB_MUI] = (Last created unit)
Set AM_Missile = (AM_Missile - 1)
Else - Actions
Countdown Timer - Pause AB_Timer
EGUI Leak - Remove AB_Loc1[AB_MUI]

Code:

Arcane Blast Move
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Set AB_Loc1[AB_MUI] = (Position of AB_Dummy[AB_MUI])
Set AB_Loc2[AB_MUI] = (Position of AB_Target)
Set AB_Angle[AB_MUI] = (Angle from AB_Loc1[AB_MUI] to AB_Loc2[AB_MUI])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between AB_Loc1[AB_MUI] and AB_Loc2[AB_MUI]) Greater than or equal to 10.00
Then - Actions
Set AB_Loc3[AB_MUI] = (AB_Loc1[AB_MUI] offset by AB_Distance towards AB_Angle[AB_MUI] degrees)
Unit - Move AB_Dummy[AB_MUI] instantly to AB_Loc3[AB_MUI], facing AB_Angle[AB_MUI] degrees
Else - Actions
Unit - Remove AB_Dummy[AB_MUI] from the game
Unit - Cause AB_Caster to damage AB_Target, dealing (100.00 x (Real((Level of Arcane Blast for AB_Caster)))) damage of attack type Spells and damage type Normal
Special Effect - Create a special effect attached to the chest of AB_Target using Abilities\Spells\Undead\OrbOfDeath\OrbOfDeathMissile.mdl
Special Effect - Destroy (Last created special effect)
Trigger - Turn off (This trigger)
Custom script: set bj_wantDestroyGroup = true
EGUI Leak - Remove AB_Loc1[AB_MUI]
EGUI Leak - Remove AB_Loc2[AB_MUI]
EGUI Leak - Remove AB_Loc3[AB_MUI]

Đã làm MUI mà khi tạo ra 2 dummy thì nó chỉ đi 1 thằng

có người chỉ đặt Loop nhưng đặt chổ nào và làm sao để damage không dồn lên (do Loop).Thanks
 
Mã:
For each (Integer A) from 1 to AB_MUI, do (Action)
 Loop - Action
  If (All Conditions are True) then do (Then Actions) else do (Else Actions)
   If - Conditions
    (Distance between AB_Loc1[Integer A] and AB_Loc2[Integer A]) Greater than or equal to 10.00
  Then - Actions
    Set AB_Loc3[Integer A] = (AB_Loc1[Integer A] offset by AB_Distance towards AB_Angle[Integer A] degrees)
    Unit - Move AB_Dummy[Integer A] instantly to AB_Loc3[Integer A], facing AB_Angle[Integer A] degrees
  Else - Actions
    Unit - Remove AB_Dummy[Integer A] from the game
    Unit - Cause AB_Caster to damage AB_Target, dealing (100.00 x (Real((Level of Arcane Blast for AB_Caster)))) damage of attack type Spells and damage type Normal
    Special Effect - Create a special effect attached to the chest of AB_Target using Abilities\Spells\Undead\OrbOfDeath\OrbOfDeathMissile.mdl
    Special Effect - Destroy (Last created special effect)
Làm như vậy đó.
 
Cho mình hỏi cách tạo 1 bảng đi. Ko biết nói thế nào nhỉ. Vd khi bước vào 1 rect nó hiện ra cái bảng hỏi mình : bạn có muốn trở thành ... ko. Nếu nhấn yes thì biến thành con hero .... Còn nhấn no thì tắt cái bảng.
 
Cho mình hỏi cách tạo 1 bảng đi. Ko biết nói thế nào nhỉ. Vd khi bước vào 1 rect nó hiện ra cái bảng hỏi mình : bạn có muốn trở thành ... ko. Nếu nhấn yes thì biến thành con hero .... Còn nhấn no thì tắt cái bảng.

Triggers- Dialogs
từ đó tự suy ra cách làm tiếp theo của Yes - No nha ;)
 
Triggers- Dialogs
từ đó tự suy ra cách làm tiếp theo của Yes - No nha ;)

Cái thehelper.net cũng hay, mỗi tội English. Nhưng dù gì mình cũng làm được:)
thanks rongdoVN nha
À mà tại sao bước đầu tiên phải dọn dẹp nhỉ? Clear = dọn dẹp mà. Bộ mới vô cái dialog ko được sạch àh?:P Ai giải thích cho mình cái action Dialog - Clear Dialog với.
 
AI chỉ cho em cách làm như thế này với : "1 Unit mang 1 item, nếu unit đó dưới 100% máu thì item đỏ sẽ tự động drop " . Thanks Nhìu!
 
giữ Shift rồi Enter (hoặc double click) để gõ giá trị âm
 
làm sức mạnh skill tùy dame hero ai có cho 1 cái mẫu đơn giản thôi cho để tìm rồi tự mò
 
Nếu bị dồn dmg thì dùng cách này. Tạo một biến group, vd như biến A
Mã:
Unit Group - Pick every unit in (Unit within of (Ponsition  of  AB_Target) matching (((Matching unit) is in A) Equal to False)) and do (Actions)
    Loop - Actions
        Unit - Cause AB_Caster to damage (Picked unit), dealing (100.00 x (Real((Level of Arcane Blast for AB_Caster)))) damage of attack type Spells and damage type Normal
        Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Undead\OrbOfDeath\OrbOfDeathMissile.mdl
        Special Effect - Destroy (Last created special effect)
        Unit Group - Add (Picked unit) to A
 
@Raivor: Mình làm damage target chứ đâu phải damage AoE đâu mà pick Group. Raivor biết cách làm slide MUI không ??? anh Tom có hướng dẫn nhưng khó hiểu quá.
 
mình test map rồi , phải chiêu Arcane Blast ko ?
Arcane Blast Move
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Set AB_Loc2[MUI] = (Position of AB_Target)
Set AB_Loc1[AB_MUI] = (Position of AB_Dummy[(Integer A)])
Set AB_Angle[AB_MUI] = (Angle from AB_Loc1[AB_MUI] to AB_Loc2[AB_MUI])
For each (Integer A) from 1 to AB_MUI, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between AB_Loc1[(Integer A)] and AB_Loc2[(Integer A)]) Greater than or equal to 10.00
Then - Actions
Set AB_Loc3[(Integer A)] = (AB_Loc1[(Integer A)] offset by AB_Distance towards AB_Angle[(Integer A)] degrees)
Unit - Move AB_Dummy[(Integer A)] instantly to AB_Loc3[AB_MUI], facing AB_Angle[AB_MUI] degrees
Else - Actions
Unit - Remove AB_Dummy[(Integer A)] from the game
Unit Group - Remove AB_Dummy[(Integer A)] from AB_Missile
Unit - Cause AB_Caster to damage AB_Target, dealing (100.00 x (Real((Level of Arcane Blast for AB_Caster)))) damage of attack type Spells and damage type Normal
Special Effect - Create a special effect attached to the chest of AB_Target using Abilities\Spells\Undead\OrbOfDeath\OrbOfDeathMissile.mdl
Special Effect - Destroy (Last created special effect)
Trigger - Turn off (This trigger)
Custom script: set bj_wantDestroyGroup = true
EGUI Leak - Remove AB_Loc1[(Integer A)]
EGUI Leak - Remove AB_Loc2[(Integer A)]
EGUI Leak - Remove AB_Loc3[(Integer A)]

bạn nói cái này dồn damage hả :-?
bạn đã Turn Off trigger thì làm sao mà dồn damage đc ? :|

nếu không đúng ý đồ thì nói rõ ra để mình làm lại cái khác cho
 
Status
Không mở trả lời sau này.
Back
Top