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

Status
Không mở trả lời sau này.
Damage skill base sẵn của WE là dạng Type: Spell, khi gây sát thương chỉ có 70% ( 100 máu thì chỉ mất 70 máu ), mún chỉnh sửa thì vào Advanced => Gameplay Constants => Combat Damage Bonus Table Spell: rồi vào chỉnh % gây dame theo các loại Type Armor
Còn gây dame tuyệt đối thì trigger, chỉnh theo cái in đậm

Mã:
Unit - Cause (Triggering unit) to damage (Triggering unit), dealing 500.00 damage of attack type Spells and damage type [B]Universal[/B]

tks bạn, mình cũng vừa chỉnh cái đó, các skill khác thì ok , chỉ có skill Shockwave là dmg nó ko chính xác đc, tiện thể cho mình hỏi trong skill Shockwave có 2 DMG, 1 cái là Damage và 1 cái là Max Damage, ý nghĩa của Max damage ở đây là j vậy ?
 
đùa? Cậu thử tạo 1 cái skil hồi sinh và 1 dòng message mỗi giây hiện số máu xem? Thực ra unit chưa chết, mình nhớ là số máu sẽ thành 16 HP hay mấy ấy thì phải.

16 HP thì chết bằng niềm tin =))

Cho hỏi có cách nào check Armor của 1 unit ko :3cool_nosebleed:

http://www.thehelper.net/threads/armor.151003/

cách dùng thì: Custom Script: set udg_Armor = GetUnitArmor( udg_TempUnit )
Armor là biến real
TempUnit là biến unit, chứa unit cần lấy armor

tôi ko dùng cái này nên ko rõ nó hoạt động tốt ra sao, bạn tự thử nhé :)

cho hỏi event Unit take damage , thì Damage Taken ở đây là dmg chưa tính giáp, kháng phép phải ko ? Và damage gây ra bởi skill , ví dụ skill Shockwave chỉnh dmg là 100, thì khi 1 unit ko có kháng phép dính skill Shockwave sẽ mất 100 dmg, và Damage Taken sẽ là 100 fải ko ?

---------- Post added at 20:04 ---------- Previous post was at 19:55 ----------

^ vừa test thì thấy Damage skill ko fải là tuyệt đối :| , có cách nào chỉnh cho damge gây ra bởi 1 skill là tuyệt đối ko?

Damage Taken trong event Unit Takes Damage là damage đã tính giáp/kháng

tks bạn, mình cũng vừa chỉnh cái đó, các skill khác thì ok , chỉ có skill Shockwave là dmg nó ko chính xác đc, tiện thể cho mình hỏi trong skill Shockwave có 2 DMG, 1 cái là Damage và 1 cái là Max Damage, ý nghĩa của Max damage ở đây là j vậy ?

Max Damage là tổng số lượng damage có thể gây ra cho các unit dính wave.

ví dụ: wave của bạn 100 Damage, 250 Max Damage thì wave trúng 2 unit đầu tiên, mỗi unit sẽ nhận 100 dmg, unit thứ 3 chỉ nhận 50 damage.
nếu unit 2 và 3 gọi là... cùng dính wave (2 unit này đứng sát nhau), unit 1 nhận 100 dmg -> còn 150 dmg, 2 unit sau sẽ nhận 75 dmg
các unit thứ 4 trở đi sẽ không nhận dmg.
 
coi dùm mình, trong cây mình set dmg skill nhỏ hơn 0, để khi Unit Take Damage mà Damage taken < 0 thì gây thêm 1 lượng Dmg, nhưng chỉ có 2 skill là làm đc, còn 2 skill Shockwave và Blizzard là ko đc, mình nghĩ do 2 skill này có Max damage nhưng ko bít chính xác tại sao

http://www.mediafire.com/?hkyiuvprq58crew
 
coi dùm mình, trong cây mình set dmg skill nhỏ hơn 0, để khi Unit Take Damage mà Damage taken < 0 thì gây thêm 1 lượng Dmg, nhưng chỉ có 2 skill là làm đc, còn 2 skill Shockwave và Blizzard là ko đc, mình nghĩ do 2 skill này có Max damage nhưng ko bít chính xác tại sao

http://www.mediafire.com/?hkyiuvprq58crew

chỏ hỏi có 1 trigger Unit Takes Damage, thì có cách nào để biết đc Damage đó là do Skill nào gây nên ko ?
 
chỏ hỏi có 1 trigger Unit Takes Damage, thì có cách nào để biết đc Damage đó là do Skill nào gây nên ko ?
ko

Tôi ko chuyên về model, chỉ có thể chỉ bạn cách nhập model vào map.
1) Import cả 6 file vào map.
2) Tên file .mdx (Model) có thể giữ mặc định (w3mapimported....blah..blah)
3) Cần thiết là đổi tên các file .blp (Image\Texture), đúng thì model mới hiện.
3.1) fxz1.blp -> Units\creeps\SylvanusWindrunner\fxz1.blp
3.2) fxz2.blp -> Units\creeps\SylvanusWindrunner\fxz2.blp
..... tương tự với 2 files fxz3+4

Đề nghị down cái MDX pather này về để biết sửa tên file .blp của model. Cần thì xem lại mục tổng hợp: cách import model..
Câu này ko ai trả lời vì đơn giản nó nằm trong hướng dẫn và bạn đã nên tự tìm hiểu hoặc ko ai quan tâm
 
cho hỏi có 1 var int tên TempReal, có 1 trigger với action như thế này :
if TempReal = 1 then ...
if TempReal = 2 then ...
if TempReal = 3 then ...
if TempReal = 4 then ...
.............
if TempReal = 100 then...

như vậy có gây lag ko ?
 
cho hỏi có 1 var int tên TempReal, có 1 trigger với action như thế này :
if TempReal = 1 then ...
if TempReal = 2 then ...
if TempReal = 3 then ...
if TempReal = 4 then ...
.............
if TempReal = 100 then...

như vậy có gây lag ko ?

Cậu định làm gì mà cần làm thế ?

16 HP thì chết bằng niềm tin =))

Sao thế anh Tom ?
 
^ thì mình mún mỗi giá trị của TempReal sẽ làm 1 hành động riêng, ví dụ : TempReal = 1 thì set gold, TempReal = 2 thì set gỗ, TempReal = 3 thì lvl up chẳng hạn... có cách nào hay hơn ko ?
 
Sao thế anh Tom ?
Unit chỉ chết khi unit máu = 0 thôi, 16 thì vẫn sống, cái trigger event unit - a unit dies thì hp unit sẽ hiện = 0, chết hẳn là khi unit hết cái dissipate (cái mà hero chết nó bay lên trời ý), nhưng để event unit - a unit dies cũng đc, nhưng để làm skill ske thì hơi khó, bởi nếu dùng event đấy thì lúc nào con ske chết kể cả ulti chưa quay xong thì trigger vẫn hoạt động, cần phải thêm 1 số condition khác, mình đã nghĩ ra cách nhưng hơi khó 1 chút.

TOM: reincarnation demo
 
Last edited by a moderator:
^ thì mình mún mỗi giá trị của TempReal sẽ làm 1 hành động riêng, ví dụ : TempReal = 1 thì set gold, TempReal = 2 thì set gỗ, TempReal = 3 thì lvl up chẳng hạn... có cách nào hay hơn ko ?

Nếu dùng biến có array thì may ra không lag.
 
cho hỏi lỗi 5 trigger này:
2 Trigger đầu của skill Cage Of Eden
[spoil]
Mã:
Cage of Eden
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Cage Of Eden 
    Actions
        Set MUI[9] = (MUI[9] + 1)
        Set Loc[9] = (Position of (Triggering unit))
        Set LevelMUI[MUI[9]] = (Level of Cage Of Eden  for (Triggering unit))
        Set RealMUI[MUI[9]] = 5.00
        Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at Loc[9] facing Default building facing degrees
        Set DummyMUI[MUI[9]] = (Last created unit)
        Unit - Add Cage Dummy   to DummyMUI[MUI[9]]
        Unit - Set level of Cage Dummy   for DummyMUI[MUI[9]] to LevelMUI[MUI[9]]
        Set Group[2] = (Units within 500.00 of Loc[9] matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
        Unit Group - Pick every unit in Group[2] and do (Actions)
            Loop - Actions
                Unit - Order DummyMUI[MUI[9]] to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
        Custom script:   call DestroyGroup( udg_Group[2] )
        For each (Integer A) from 1 to 18, do (Actions)
            Loop - Actions
                Set Loc[10] = (Loc[9] offset by 500.00 towards ((Real((Integer A))) x 20.00) degrees)
                Destructible - Create a Summer Tree Wall at Loc[10] facing (Random angle) with scale 1.00 and variation 0
        Trigger - Turn on CoE Loop <gen>
        EGUI Leak - Remove Loc[9]
        EGUI Leak - Remove Loc[10]
Mã:
CoE Loop
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        For each (Integer MUI2[9]) from 1 to MUI[9], do (Actions)
            Loop - Actions
                Set LocMUI[MUI2[9]] = (Position of DummyMUI[MUI2[9]])
                Set RealMUI[MUI2[9]] = (RealMUI[MUI2[9]] - 1.00)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        [B]RealMUI[MUI2[9]] Equal to 0.00[/B]
                    Then - Actions
                        Unit - Remove DummyMUI[MUI2[9]] from the game
                        Destructible - Pick every destructible within 600.00 of LocMUI[MUI2[9]] and do (Actions)
                            Loop - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        (Destructible-type of (Picked destructible)) Equal to Summer Tree Wall
                                    Then - Actions
                                        Destructible - Remove (Picked destructible)
                                    Else - Actions
                        Set MUI[9] = (MUI[9] - 1)
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                MUI[9] Equal to 0
                            Then - Actions
                                Set MUI2[9] = 0
                                Trigger - Turn off (This trigger)
                            Else - Actions
                    Else - Actions
                EGUI Leak - Remove LocMUI[MUI2[9]]
[/spoil]
3 trigger tiếp theo của skill Narural Order :
[spoil]
Mã:
Nature Order
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Natural Order (Spell)
    Actions
        Set MUI[10] = (MUI[10] + 1)
        Set Destructibles[MUI[10]] = (Target destructible of ability being cast)
        Set LocMUI[MUI[10]] = (Position of Destructibles[MUI[10]])
        Set CasterMUI[MUI[10]] = (Triggering unit)
        Set RealMUI[MUI[10]] = 2.00
        Set LevelMUI[MUI[10]] = (Level of Natural Order (Spell) for CasterMUI[MUI[10]])
        Unit - Add Release  to CasterMUI[MUI[10]]
        Unit - Set level of Release  for CasterMUI[MUI[10]] to LevelMUI[MUI[10]]
        Player - Disable Natural Order (Spell) for (Owner of CasterMUI[MUI[10]])
        Trigger - Turn on Release Order <gen>
        Trigger - Turn on Nature Loop <gen>
Mã:
Nature Loop
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        For each (Integer MUI2[10]) from 1 to MUI[10], do (Actions)
            Loop - Actions
                Set RealMUI[MUI2[10]] = (RealMUI[MUI2[10]] - 1.00)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        RealMUI[MUI2[10]] Less than or equal to 0.00
                    Then - Actions
                        Set MUI[10] = (MUI[10] - 1)
                        Unit - Remove Release  from CasterMUI[MUI2[10]]
                        Player - Enable Natural Order (Spell) for (Owner of CasterMUI[MUI2[10]])
                        EGUI Leak - Remove Loc[12]
                        EGUI Leak - Remove Loc[13]
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                MUI[10] Equal to 0
                            Then - Actions
                                Set MUI2[10] = 0
                                Trigger - Turn off (This trigger)
                            Else - Actions
                    Else - Actions
Mã:
Release Order
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Release 
    Actions
        For each (Integer MUI2[10]) from 1 to MUI[10], do (Actions)
            Loop - Actions
                Set Loc[13] = (Target point of ability being cast)
                Unit - Create 1 Dummy Caster for (Owner of CasterMUI[MUI2[10]]) at LocMUI[MUI2[10]] facing Default building facing degrees
                Set Dummy[8] = (Last created unit)
                Unit - Add a 0.50 second Generic expiration timer to Dummy[8]
                Unit - Add Nature's Order  to Dummy[8]
                Unit - Set level of Nature's Order  for Dummy[8] to LevelMUI[MUI2[10]]
                Unit - Order Dummy[8] to Orc Tauren Chieftain - Shockwave Loc[13]
                [B]Set RealMUI[MUI2[10]] = 0.00[/B]
                EGUI Leak - Remove LocMUI[MUI2[10]]
                EGUI Leak - Remove Loc[13]
                Trigger - Turn off (This trigger)
[/spoil]

Skill Cage Of Eden: dùng để tạo ra 1 vòng tròn cây nhốt đối thủ lại trong 5s. Sau 5s sẽ tiêu diệt hết các cây đã tạo:
Skill Natural Order : target vào 1 cái cây sẽ cho skill dummy ( Release ) trong 2s. trong 2s đó nếu target vào ground sẽ bắn ra 1 đường shockwave r bỏ skill dummy, sau 2s nếu k target vào ground sẽ mất skill dummy.
Vấn đề : Khi sử dụng Cage Of Eden r` target Natural Order thì lập lức các cây được tạo ra từ Cage of eden lập tức biến mất. Mặc dù e đã set Loop là 2 biến For MUI2[9] ...... và For MUI2[10] riêng biệt nhau. vậy s vẫn bị đụng về biến RealMUI ở 2 trigger

Quote......... Ai giúp với !!!!!!
 
Cho mình hỏi làm cục gem trong Dota như thế nào nhỉ.,
Item khi cầm vào thấy các unit tàn hình của đối phương
 
cho mình hỏi làm thế nào để tạo 1 unit ở random trong 3 region trong bản đồ

---------- Post added at 17:21 ---------- Previous post was at 17:20 ----------

kiểu như là sau 10p vào game tạo 1 con boss nó xuất hiện ngẫu nhiên 1 trong 3 region mình đã vẽ sẵn
 
cho mình hỏi làm thế nào để tạo 1 unit ở random trong 3 region trong bản đồ

---------- Post added at 17:21 ---------- Previous post was at 17:20 ----------

kiểu như là sau 10p vào game tạo 1 con boss nó xuất hiện ngẫu nhiên 1 trong 3 region mình đã vẽ sẵn

Mã:
Events
   Eslapses 600 second
Conditions
Actions
   Set BossPoint[1] = center of rect 1
   Set BossPoint[2] = center of rect 2
   Set BossPoint[3] = center of rect 3
   Unit - Create 1 Boss at BossPoint[Random number between 1 and 3],...
 
vậy cho mình hỏi cục gem làm sao. ???

---------- Post added at 17:44 ---------- Previous post was at 17:34 ----------

cho mình hỏi thêm là làm sao để sau 10p tao 1 unit cho Neutral hostile rồi khi chết rớt random 3 item do mình đã chọn trước
 
vậy cho mình hỏi cục gem làm sao. ???

---------- Post added at 17:44 ---------- Previous post was at 17:34 ----------

cho mình hỏi thêm là làm sao để sau 10p tao 1 unit cho Neutral hostile rồi khi chết rớt random 3 item do mình đã chọn trước

Cục gem đơn giản là tạo một item rồi add các ability kiẻu true sight của human cho nó thôi là được

Mã:
Untitled Trigger 001
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Triggering unit)) Equal to Footman
    Actions
        Set TempInt = (Random integer number between 1 and 3)
        Set TempLoc = (Position of (Triggering unit))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                TempInt Equal to 1
            Then - Actions
                Item - Create Tome of Experience at TempLoc
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                TempInt Equal to 2
            Then - Actions
                Item - Create Kelen's Dagger of Escape at TempLoc
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                TempInt Equal to 3
            Then - Actions
                Item - Create Orb of Frost at TempLoc
            Else - Actions
        Custom script:   call RemoveLocation (udg_TempLoc)
 
Chỉnh sửa cuối:
Status
Không mở trả lời sau này.
Back
Top