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

Status
Không mở trả lời sau này.
Cho em hỏi cách làm spell cloak của con ghost trong star như thế nào (biết là xài immolation rồi, hướng dẫn trigger thôi)

miêu tả thử xem :-?
à khi nào tui ngủ dậy sẽ làm giúp cho
 
Chỉnh sửa cuối:
miêu tả thử xem :-?
à khi nào tui ngủ dậy sẽ làm giúp cho

Là kiểu active và deactive invisibility ý, active thì invi nhưng mất mana dần đến hết, mình có ý định cho nó làm mất 100/80/60 mana mỗi giây :-"
 
Là kiểu active và deactive invisibility ý, active thì invi nhưng mất mana dần đến hết, mình có ý định cho nó làm mất 100/80/60 mana mỗi giây :-"

Begin
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to (Order(immolation))
Actions
Unit - Add Permanent Invisibility to (Triggering unit)

Begin Copy
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to (Order(unimmolation))
Actions
Unit - Remove Permanent Invisibility from (Triggering unit)

Chỉnh mana,chỉnh duration của perma xuống còn 0.01
 
Cho mình hỏi cái string ghi la tên của skill mình đã sửa hay là skill gốc??
 
Cho mình hỏi cái string ghi la tên của skill mình đã sửa hay là skill gốc??

cái string là cái lệnh để khởi động/tắt :|

à , ông bạn có thể cho tui mượn acc để chơi rep đc ko , nếu đc thì pm qua tin nhắn của tui nha :)
 
Cho em hỏi :
1. Làm sao để có thể target vào unit có skill locust
2. Làm sao để tạo 1 skill có thể remove locust cho 1 target hoặc 1 vùng aoe xung quanh :|
 
Cho hỏi cái Loop này:
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
và loop này:
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Khác nhau chổ nào ?
 
^^
Remove Locust bằng lệnh
Mã:
call UnitRemoveAbility( unit, 'Aloc' )
Tuy nhiên, dùng lệnh trên vẫn kô thể "select" unit đó đc.

^
Trông thế cần gì phải hỏi nữa ? Như trên thì khác gì copy nguyên lại rồi bảo so sánh à ?
 
có ai biết lệnh cho AI tới gần nhặt item lên ko ?
 
Ý mình là khác cách dùng chổ nào ấy :|
 
Mọi người ơi cho hỏi có cái system nào mà được dùng để làm mấy cái dạng như Chance % to lightning, shockwave,......mà là lúc take damage í chứ không phải dùng A Unit Attacked đâu, ví dụ như món đồ cậy búa set trong Dota chẳng hạn...làm ơn ai biết chỉ mình với
 
Sao ko có ai vậy? mình tạo map chỉ có 1 player thôi, mấy con hero không ra skill mà chỉ đánh thường, ai biết chỉnh sao ko. Mình làm trigger attrack unit rồi mà cũng ko dc.
 
Mọi người ơi cho hỏi có cái system nào mà được dùng để làm mấy cái dạng như Chance % to lightning, shockwave,......mà là lúc take damage í chứ không phải dùng A Unit Attacked đâu, ví dụ như món đồ cậy búa set trong Dota chẳng hạn...làm ơn ai biết chỉ mình với

Orb of Slow [Alsb]
...............................
 
Bỏ cái dấu chân lửa của con Terror Blade trong Dota đi ntn nhỉ?
 
Giúp Dragon với,map Dragon làm ko chạy :| :((
Mình đã kiểm tra và ko có bug gì cả ?để mình send lên
GIúp mình nhá ! KasthalQuestII.w3x
 
@ZhengHe: Hai cái giống y hệt nhau từ đầu đến cuối, chẳng lẽ "cách dùng" lại khác ?
@KuKulKan: Dùng Orb of Lightning (new) 'AIll' . Chỉnh Data - Effect Ability thành Chain Lightning thì nó sẽ đánh ra sét giống như cái búa trong DotA.
 
Sorry copy nhầm :(. Lần này thì chính xác nè :D.
Cho hỏi cái Loop này:

For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
và loop này:

For each (Integer Variable) from 1 to 10, do (Actions)
Loop - Actions
Khác nhau chổ nào ?
 
Sao unit đã tắt collision khi move vẫn bị vướng vào map nhỉ?
 
Sorry copy nhầm :(. Lần này thì chính xác nè :D.

Chỉ là biến Integer A thì bạn ko tự tiện thay đổi nó được để ngừng vòng lặp,còn nếu loop = variable(biến) thì bạn có thể ngừng loop bất cứ lúc nào.

VD bạn có 1 trigger ,muốn deal dame cho 1 group,nhưng chỉ nhiều nhất là 10 target.

Nếu là bình thường:

Loop integer a from 1 to 10-->Pick 1 unit trong group đấy deal dame.

Nếu group có nhiều hơn 10 unit thì ko nói làm gì,vd group đó chỉ có 5 unit,thì vòng lặp chạy 5 lần đầu ok,5 lần sau là vô tác dụng.->chậm map.

Nếu làm = loop variable A from 1 to 10 thì vd sau mỗi lần pick bạn kiểm tra xem nếu hết target rồi thì set variable A = 10 nó sẽ tự dừng vòng lặp luôn.
 
Sao unit đã tắt collision khi move vẫn bị vướng vào map nhỉ?

Hỏi thêm câu này nữa:D
2 trig sau làm spell dựa trên Carrion Swarm:
PHP:
TS Int
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Tsunami (AOW)(U)
    Actions
        Set MUI[8] = (MUI[8] + 1)
        -------- Caster&Level --------
        Set TS_Caster[MUI[8]] = (Casting unit)
        Set TS_Level[MUI[8]] = (Level of Tsunami (AOW)(U) for TS_Caster[MUI[8]])
        -------- Check --------
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        TS_Caster[MUI[8]] Equal to HeroesUnit[(Integer A)]
                    Then - Actions
                        Set TS_WaterOfCaster[MUI[8]] = Heroes_Water[(Integer A)]
                    Else - Actions
        -------- Point --------
        Set TS_CasterPoint[MUI[8]] = (Position of TS_Caster[MUI[8]])
        Set TS_TargetPoint[MUI[8]] = (Target point of ability being cast)
        -------- Dummy --------
        Unit - Create 1 Tsunami for (Owner of TS_Caster[MUI[8]]) at TS_CasterPoint[MUI[8]] facing (Angle from TS_CasterPoint[MUI[8]] to TS_TargetPoint[MUI[8]]) degrees
        Set TS_Dummy[MUI[8]] = (Last created unit)
        Unit Group - Add (Last created unit) to Spell_Dummies_Missle
        Unit Group - Add (Last created unit) to Spell_Dummies_NoColour
        Unit - Add Crow Form to (Last created unit)
        Unit - Remove Crow Form from (Last created unit)
        Animation - Change (Last created unit) flying height to (Current flying height of TS_Caster[MUI[8]]) at 0.00
        -------- Countdown --------
        Set TS_Countdown[MUI[8]] = 25
        -------- Timer --------
        Countdown Timer - Start TS_Timer as a One-shot timer that will expire in 0.03 seconds
PHP:
TS Damage
    Events
        Time - TS_Timer expires
    Conditions
    Actions
        For each (Integer A) from 1 to MUI[8], do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        TS_Countdown[(Integer A)] Less than 0
                    Then - Actions
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                TS_Countdown[(Integer A)] Equal to 0
                            Then - Actions
                                Set TS_Countdown[(Integer A)] = (TS_Countdown[(Integer A)] - 1)
                                Unit - Remove TS_Dummy[(Integer A)] from the game
                                Custom script:   call DestroyGroup(udg_TS_VicCreepGroupDone[GetForLoopIndexA()])
                                Custom script:   call RemoveLocation(udg_TS_CasterPoint[GetForLoopIndexA()])
                                Custom script:   call RemoveLocation(udg_TS_TargetPoint[GetForLoopIndexA()])
                            Else - Actions
                                Set TS_Countdown[(Integer A)] = (TS_Countdown[(Integer A)] - 1)
                                -------- Move --------
                                Set TS_DummyStartPoint[(Integer A)] = (Position of TS_Dummy[(Integer A)])
                                Set TS_DummyEndPoint[(Integer A)] = (TS_DummyStartPoint[(Integer A)] offset by (40.00 + (Real((Level of Heart of Tide (AOW)(T) for TS_Caster[(Integer A)])))) towards (Facing of TS_Dummy[(Integer A)]) degrees)
                                Destructible - Pick every destructible within ((10.00 x (Real(((25 - TS_Countdown[(Integer A)]) + (Level of Heart of Tide (AOW)(T) for TS_Caster[(Integer A)]))))) + 40.00) of TS_DummyEndPoint[(Integer A)] and do (Actions)
                                    Loop - Actions
                                        Destructible - Kill (Picked destructible)
                                Unit - Move TS_Dummy[(Integer A)] instantly to TS_DummyEndPoint[(Integer A)]
                                -------- Damage Creeps --------
                                Set TS_Damage[(Integer A)] = (50.00 + ((15.00 x (Real(TS_Level[(Integer A)]))) + ((Real((TS_WaterOfCaster[(Integer A)] / 3))) + (5.00 x (Real((Level of Heart of Tide (AOW)(T) for TS_Caster[(Integer A)])))))))
                                Set TS_VicCreepGroup[(Integer A)] = (Units within (40.00 + (10.00 x (Real(((25 - TS_Countdown[(Integer A)]) + (Level of Heart of Tide (AOW)(T) for TS_Caster[(Integer A)])))))) of TS_DummyEndPoint[(Integer A)] matching ((((((Matching unit) is A Hero) Equal to False) and (((Matching unit) is A st
                                Unit Group - Pick every unit in TS_VicCreepGroup[(Integer A)] and do (Actions)
                                    Loop - Actions
                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            If - Conditions
                                                ((Picked unit) is in TS_VicCreepGroupDone[(Integer A)]) Equal to True
                                            Then - Actions
                                            Else - Actions
                                                Unit Group - Add (Picked unit) to TS_VicCreepGroupDone[(Integer A)]
                                                Unit - Cause TS_Caster[(Integer A)] to damage (Picked unit), dealing TS_Damage[(Integer A)] damage of attack type Hero and damage type Normal
                                Custom script:   call DestroyGroup(udg_TS_VicCreepGroup[GetForLoopIndexA()])
                                -------- Leak --------
                                Custom script:   call RemoveLocation(udg_TS_DummyStartPoint[GetForLoopIndexA()])
                                Custom script:   call RemoveLocation(udg_TS_DummyEndPoint[GetForLoopIndexA()])
                                -------- Timer --------
                                Countdown Timer - Start TS_Timer as a One-shot timer that will expire in 0.03 seconds
Sao lần cast thứ 2,3,...n thì nó lại dam lên 2,3,...n lần nhỉ?:((
 
Status
Không mở trả lời sau này.
Back
Top