Dark Gamer
Legend of Zelda
- 26/8/07
- 1,125
- 29
- Thread starter
- #3,061
tớ làm tất lun cho xong vì câu hỏi nài có 3 ng` hỏi tớ ồi ( 2 pm nick chat , 1 ở đây ) , làm cái demo map post vào kia lun cho đỡ hỏi nhiều
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Của dota Impale không phải là chiêu melee đâu, nó là 1 chiêu tạo từ JASS.
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![]()
vậy là sao mọi người sai chỗ nào à
(Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)



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
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)
local timer t = CreateTimer()
local unit u = GetSpellAbilityUnit()
local unit v = GetSpellTargetUnit()
local location l = GetUnitLoc(v)

: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.
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 ?
. Mà chọn con Abomination rồi xem Animation, cần gì phải lên tận đây hỏi
.