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.
ai làm giúp bjn cái đc k: Khi đánh chết một con quái sẽ hiện số Exp nhận được trên đâu như sau : + x EXP (x là số exp nhận được) màu vàng. Bằng GUi hay Jass (Jass càng tốt sẵn học lun ^^) cũng đc tks nhìu
call Texttag_Unit(GetKillerUnit(),"+" + I2S(R2I(giá trị đã tính))+ " EXP","mã màu sắc")
Đọc mãi chả hiểu!Xin hỏi làm spell remove sao zậy, chỉ thấy remove chứ ko thấy lệnh cho unit way lại ? Thanks nhìu

scope GE initializer init
private function GEcon takes nothing returns boolean
return GetSpellAbilityId() == 'A20P'
endfunction
private function GEcheck takes nothing returns boolean
return IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) and (not(IsUnitType(GetFilterUnit(), UNIT_TYPE_DEAD) and GetUnitTypeId(GetFilterUnit()) != 0))
endfunction
private function GEact takes nothing returns nothing
local unit u = GetTriggerUnit()
local location p = GetSpellTargetLoc()
local unit d
local unit enum
local group G = CreateGroup()
local real dame = ( ( 400.00 + ( 100.00 * I2R(GetUnitAbilityLevel(u, 'A20P')) ) ) + ( 3.50 * I2R(GetHeroAgi(u, true)) ) )
call CreateNUnitsAtLoc(1, 'h00P', GetOwningPlayer(u), p, bj_UNIT_FACING)
set d = GetLastCreatedUnit()
call SetUnitScalePercent(d, 100.00, 100.00, 100.00)
call TriggerSleepAction(0.5)
call SetUnitScalePercent(d, 150.00, 150.00, 150.00)
call TriggerSleepAction(0.5)
call SetUnitScalePercent(d, 200.00, 200.00, 200.00)
call TriggerSleepAction(0.5)
call SetUnitScalePercent(d, 250.00, 250.00, 250.00)
call TriggerSleepAction(0.5)
call SetUnitScalePercent(d, 300.00, 300.00, 300.00)
call RemoveUnit(d)
call GroupEnumUnitsInRange(G, GetUnitX(GetTriggerUnit()), GetUnitY(GetTriggerUnit()), 400, Condition(function GEcheck))
loop
set enum = FirstOfGroup(G)
exitwhen (enum == null)
call CreateNUnitsAtLoc(1, 'h002', GetOwningPlayer(u), p, bj_UNIT_FACING)
call UnitAddAbilityBJ('A02R', GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A02R', GetLastCreatedUnit(), GetUnitAbilityLevelSwapped('A02N', u))
call IssuePointOrderLocBJ(GetLastCreatedUnit(), "flamestrike", p)
call UnitApplyTimedLifeBJ(1, 'BTLF', GetLastCreatedUnit())
call UnitDamageTarget(GetTriggerUnit(), enum, dame, false, false, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_ENHANCED, null)
call GroupRemoveUnit(G, enum)
endloop
call GroupClear(G)
set enum = null
call DestroyGroup(G)
call RemoveLocation(p)
set u = null
endfunction
//***********************************************************************
private function init takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(t, Condition(function GEcon))
call TriggerAddAction(t, function GEact)
set t = null
endfunction
endscope
Mình xem qua và có nhận xét thế này!ai xem giúp bjn cái trigger trên lỗi gì? Mà khi vào game k có dame, effect và fix giúp bjn lun nha tks
Mô tả như sau: Khi cast spell thì tạo một quả cầu tại điểm cast, cứ mỗi 0.5s thì quả cầu lại to lên khi đạt đên size 300% thì remove nó ra khỏi game, loop trong group tạo dummy add ability cho dummy là một vụ nổ và gây dame.
globals
[B]private unit caster[/B]
endglobals
//============================================
private function Check takes nothing returns nothing
return [B]IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(caster))[/B]
endfunction
private function ActionsTrigg takes nothing returns nothing
[B]set caster=GetTriggerUnit()[/B]
// đặt hàm Group Enum Units của bạn tại đây!
endfunction
YAN[asian];18531820 nói:Ý mình là "item illustions" cơ, vì nó ko có sẵn lệnh trong GUI nên phải dùng custom script.
cho ngoc hỏi nhé , ngoc muốn làm 1 trigger như sau , như player đặt một món item vào trong một region thì sẽ xuất hiện một con lính ( chổ xuất hiện thì không quan trọng) , ai chỉ ngoc với , hiên giờ đang pó tay !!!
Events
Unit - A unit Loses an item
Conditions
(Item being manipulated) Equal to Item XX
((Region 001) contains (Triggering unit)) Equal to True
Actions
Set Point = .....
Unit - Create 1 Footman for Player XXX at (Point) facing Default building facing degrees
Call RemoveLocation(udg_Point)
[spoil][/spoil]Mã:Events Unit - A unit Loses an item Conditions (Item being manipulated) Equal to Item XX ((Region 001) contains (Triggering unit)) Equal to True Actions Set Point = ..... Unit - Create 1 Footman for Player XXX at (Point) facing Default building facing degrees Call RemoveLocation(udg_Point)