Topic hỏi đáp cho anh em (Về cách làm map)

Status
Không mở trả lời sau này.
Mã:
Cam 1 vk
    Events
        Unit - A unit Acquires an item
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Item-class of (Item being manipulated)) Equal to Permanent
                (Item-class of (Item being manipulated)) Equal to Artifact
                (Item-class of (Item being manipulated)) Equal to Purchasable
                (Item-class of (Item being manipulated)) Equal to Miscellaneous
                (Item-class of (Item being manipulated)) Equal to Powerup
    Actions
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-class of (Item being manipulated))
                        (Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)
                    Then - Actions
                        Hero - Drop (Item being manipulated) from (Hero manipulating item)
                        Game - Display to (All players) the text: (Name of (Rally-Point of (Triggering unit) as a destructible))
                        Game - Display to (All players) the text: Ban ko the cam 2 VK...
                    Else - Actions
[CODE]
[IMG]http://c.uploadanh.com/upload/0/281/0.847110001244346611.bmp[/IMG]
vậy là sao mọi người sai chỗ nào à
 
Mã:
Cam 1 vk
    Events
        Unit - A unit Acquires an item
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Item-class of (Item being manipulated)) Equal to Permanent
                (Item-class of (Item being manipulated)) Equal to Artifact
                (Item-class of (Item being manipulated)) Equal to Purchasable
                (Item-class of (Item being manipulated)) Equal to Miscellaneous
                (Item-class of (Item being manipulated)) Equal to Powerup
    Actions
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-class of (Item being manipulated))
                        (Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)
                    Then - Actions
                        Hero - Drop (Item being manipulated) from (Hero manipulating item)
                        Game - Display to (All players) the text: (Name of (Rally-Point of (Triggering unit) as a destructible))
                        Game - Display to (All players) the text: Ban ko the cam 2 VK...
                    Else - Actions
0.847110001244346611.bmp

vậy là sao mọi người sai chỗ nào à

Mã:
(Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)

Tức là Item trong 6 slots của hero đó kô phải là Item vừa nhặt đc. Mà bạn cho nhặt toàn Item giống nhau thế kia dĩ nhiên là nó sẽ kô thực hiện Then - Acticons.
 
hjx vậy tại sao 2 cái cánh thì ko cầm đc còn kuêm đao thì cầm thoải mái
0.316117001244347719.bmp

số luợng VK có ảnh huởng không
mình làm 23 loại dao kiếm khác nhau
 
Mấy anh ơi cho em hỏi tí ,thằng Hellscream ,em gắn cho nó cái cây thương ,kết quả là nó cầm luôn cả 2 món búa và thương vậy có cách nào làm cho cây búa cũ mất đi không .
 
Chỉ có cách là bạn import 1 model không có weapon rồi attach cái thương vào thui.
 
các pro jass ơi giúp em tại sao khi cast rồi mà vẫn ko có tác dụng của DamageTarget vậy :((:((:((
Mã:
function Trig_Coc_Ghe_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'A000' ) ) then
        return false
    endif
    return true
endfunction

function Effects takes nothing returns nothing
         local timer t = GetExpiredTimer()
         local unit u = GetSpellAbilityUnit()
         local unit v = GetSpellTargetUnit()
         local location l = GetUnitLoc(v)
         call UnitDamageTargetBJ(u,v,(1.5 * DistanceBetweenPoints(GetUnitLoc(u),l) ), ATTACK_TYPE_CHAOS , DAMAGE_TYPE_UNIVERSAL )
endfunction

function Trig_Coc_Ghe_Actions takes nothing returns nothing
         local timer t
         local unit u
         local unit v 
         local location l
         set t = CreateTimer()
         set u = GetSpellAbilityUnit()
         set v = GetSpellTargetUnit()
         set l = GetUnitLoc(v)
         call TimerStart(t,0.05,true,function Effects)
         call UnitDamageTargetBJ(u,v,150,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_FIRE)
         call TriggerSleepAction(5.00)
         call PauseTimer(t)
         call DestroyTimer(t)
         set u = null
         set v = null
         set t = null
         call RemoveLocation(l)
         set l = null
endfunction

//===========================================================================
function InitTrig_Coc_Ghe takes nothing returns nothing
    local trigger tr
    set tr = CreateTrigger()
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Coc_Ghe, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( gg_trg_Coc_Ghe, Condition( function Trig_Coc_Ghe_Conditions ) )
    call TriggerAddAction( gg_trg_Coc_Ghe, function Trig_Coc_Ghe_Actions )
endfunction
 
đơn giản bởi vì khi cậu sang function khác , cái cast unit chỉ có trong function Trig_Coc_Ghe_Actions còn sang function Effect thì nó hok còn nhận đc nữa , còn 2 cái local thì dĩ nhiên là 2 biến hoàn toàn khác nhau , hok hề có dính dáng
local unit u = GetSpellAbilityUnit()
local unit v = GetSpellTargetUnit()
<~ cái nài trả biến null
khắc phục : sử dụng Store Int/Handle/Real của game cache ấy

http://forum.gamevn.com/showpost.php?p=9831894&postcount=9

btw , Jass này bạn vẫn phụ thuộc GUI quá mức , hạn chế sử dụng BJ thì hơn với cả

Mã:
         local timer t
         local unit u
         local unit v 
         local location l
         set t = CreateTimer()
         set u = GetSpellAbilityUnit()
         set v = GetSpellTargetUnit()
         set l = GetUnitLoc(v)

bạn có thể dổi thành

Mã:
         local timer t = CreateTimer()
         local unit u = GetSpellAbilityUnit()
         local unit v  = GetSpellTargetUnit()
         local location l = GetUnitLoc(v)

ngoài ra timer của bạn leak , local var xong hok set null


ps : rõ rang cậu đã từng hỏi về cái handle này ồi :-<
 
Em muốn làm cái dòng chữ mời đâu vô là nó xuất hiện thì làm sao vậy mấy anh
 
Tạo 1 Trigger Initialization (:|:
Events
Map initialization
Conditions
Actions
Game - Display to (All players) for 30.00 seconds the text: Text
 
Mã:
(Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)

Tức là Item trong 6 slots của hero đó kô phải là Item vừa nhặt đc. Mà bạn cho nhặt toàn Item giống nhau thế kia dĩ nhiên là nó sẽ kô thực hiện Then - Acticons.

Game_War có hể giúp mình chỉnh chỗ này lại được không gần xong Map mà bị kẹt chán quá
 
Các bạn cho mình hỏi điều này : các bạn có biết Animation của skill Dismember (Pudge - Butcher) trong DotA tên gì không ?
 
ai có thể chỉ mình Spawn quái đc không mình làm theo hướng dẫn của Tom rồi nhưng nó bị sao ấy mình muốn chỗ trigger lvl 1 chỉ spawn quái lvl 1 thôi mà làm xong nó spawn tùm lum hết chả đâu ra đâu hjxhjx
 
Các bạn cho mình hỏi điều này : các bạn có biết Animation của skill Dismember (Pudge - Butcher) trong DotA tên gì không ?

Stand Channel hay sao ý :-". Mà chọn con Abomination rồi xem Animation, cần gì phải lên tận đây hỏi:|.
 
À, tại vì khi mình add "Stand Channel" vào phần "Art - AnimationNames" thì không diễn ra Animation. Mình nghĩ đấy chỉ là tên trong Graphic thôi, còn tên "Raw" thì không hiện trong World Editor. Ví dụ như Animation "Spin" của Blademaster trong Graphic hiện là : "Attack Walk Stand Spin". Mình đã add "channel" vào và đã chạy tốt. Cám ơn bạn game_war48.
 
À, tại vì khi mình add "Stand Channel" vào phần "Art - AnimationNames" thì không diễn ra Animation. Mình nghĩ đấy chỉ là tên trong Graphic thôi, còn tên "Raw" thì không hiện trong World Editor. Ví dụ như Animation "Spin" của Blademaster trong Graphic hiện là : "Attack Walk Stand Spin". Mình đã add "channel" vào và đã chạy tốt. Cám ơn bạn game_war48.

Thế thì lần sau hỏi cứ ghi thêm chữ "Animation In Raw Code" thì dễ trả lời hơn kô:-".

P/s: Hôm nay vừa đi mổ lưỡi về, đau quá:((.
 
phải add: "Stand,Channel" chứ ko phải "Stand Channel" (thay dấu cách bằng dấu phẩy)
 
Mã:
Cam 1 vk
    Events
        Unit - A unit Acquires an item
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Item-class of (Item being manipulated)) Equal to Permanent
                (Item-class of (Item being manipulated)) Equal to Artifact
                (Item-class of (Item being manipulated)) Equal to Purchasable
                (Item-class of (Item being manipulated)) Equal to Miscellaneous
                (Item-class of (Item being manipulated)) Equal to Powerup
    Actions
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-class of (Item being manipulated))
                        (Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)
                    Then - Actions
                        Hero - Drop (Item being manipulated) from (Hero manipulating item)
                        Game - Display to (All players) the text: (Name of (Rally-Point of (Triggering unit) as a destructible))
                        Game - Display to (All players) the text: Ban ko the cam 2 VK...
                    Else - Actions
[CODE]
[IMG]http://c.uploadanh.com/upload/0/281/0.847110001244346611.bmp[/IMG]
vậy là sao mọi người sai chỗ nào à[/QUOTE]

hjx ai có thể chỉ mình bị sai chỗ nào không, mình nhặt 2 cái cánh thì Drop còn kiêm đao thì không đc 
ai chỉ mình phần -rg với biết trong room có người hỏi rồi nhưng mà làm theo đều thất bại hjxhjx
Spawn thì làm không đc nó spawn tùm lum hết
 
Hay là class của cái đao và kiếm đó không phải là một trong các class này: Permanent ,Artifact ,Purchasable ,Miscellaneous, Powerup.
 
Hay là class của cái đao và kiếm đó không phải là một trong các class này: Permanent ,Artifact ,Purchasable ,Miscellaneous, Powerup.

hjx đao kiếm mình cho vào nhóm Miscellaneous mà đã koi kỹ rồi không chạy đâu đc chả biết sai chỗ nào nữa chán quá
 
Vậy chịu, chỉ có 1 cách đau thương dài dòng của bọn Extreme Candy War thôi, mở map đó ra mà xem.
 
Status
Không mở trả lời sau này.
Back
Top