Theo mình biết thì không thể![]()
vậy bạn xem cái video trong này xem ???
http://gamek.vn/20100112093659438/tu-thiet-ke-world-of-warcraft-bang-warcraft-editor.chn
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.
Theo mình biết thì không thể![]()
vậy bạn xem cái video trong này xem ???
http://gamek.vn/20100112093659438/tu-thiet-ke-world-of-warcraft-bang-warcraft-editor.chn


bạn có thể làm như thế nàyai chỉ dùm khi 1 unit nào đó mua item sẽ mất rồi sau 3s xuất hiện unit khác tại chỗ unit biến mất
dk là unit mua item giúp với
trigger
Events
Unit - A unit Sells an item (from shop)
Conditions
(Item-type of (Sold Item)) Equal to Slippers of Agility +3
Actions
Set Untis_Value[(Player number of (Owner of (Buying unit)))] = (Buying unit)
Wait 3.00 seconds
Unit - Remove Untis_Value[(Player number of (Owner of (Buying unit)))] from the game
Unit - Create 1 Footman for (Owner of Untis_Value[(Player number of (Owner of (Buying unit)))]) at (Position of Untis_Value[(Player number of (Owner of (Buying unit)))]) facing Default building facing degrees
vậy bạn xem cái video trong này xem ???
http://gamek.vn/20100112093659438/tu-thiet-ke-world-of-warcraft-bang-warcraft-editor.chn
ai giúp lên tiền giống map troll úp nhà nhảy tiền
Poll
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set UntisGroup_Value = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Town Hall) and (((Matching unit) is alive) Equal to True)))
Unit Group - Pick every unit in UntisGroup_Value and do (Actions)
Loop - Actions
Player - Add 100 to (Owner of (Picked unit)) Current gold
Floating Text - Create floating text that reads 100 at (Position of (Picked unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Set Text_Value = (Last created floating text)
Floating Text - Set the velocity of Text_Value to 64.00 towards 90.00 degrees
Floating Text - Change the lifespan of Text_Value to 4.00 seconds
Floating Text - Change Text_Value: Disable permanence

vậy bạn xem cái video trong này xem ???
http://gamek.vn/20100112093659438/tu-thiet-ke-world-of-warcraft-bang-warcraft-editor.chn

@Dethlv3
bạn có thể làm như thế này
Mã:trigger Events Unit - A unit Sells an item (from shop) Conditions (Item-type of (Sold Item)) Equal to Slippers of Agility +3 Actions Set Untis_Value[(Player number of (Owner of (Buying unit)))] = (Buying unit) Wait 3.00 seconds Unit - Remove Untis_Value[(Player number of (Owner of (Buying unit)))] from the game Unit - Create 1 Footman for (Owner of Untis_Value[(Player number of (Owner of (Buying unit)))]) at (Position of Untis_Value[(Player number of (Owner of (Buying unit)))]) facing Default building facing degrees
Bạn có để ý phần mặt + skin của Unit ở cái ô kế bản đồ ko?? Đó là hình một model không có skin vì vậy mình nghĩ việc thay skin là có thể, bằng chứng là http://www.wc3c.net/showthread.php?t=103071 nhưng mình không biết xài.Cái đó thực ra là khi unit dùng item thì nó add 1 model áo giáp hoặc nón cho unit đó thôi. Không phải skin
Ai chỉ giúp chổ sai với.Code:
scope Spell initializer JassSpell
function Spell_Conditions takes nothing returns boolean
if GetSpellAbilityId() == 'A000' then
return true
endif
return false
endfunction
struct spell
unit caster
unit target
string ma
integer i
endstruct
function Action takes nothing returns nothing
call GetTimerData(t)
if s.i > 3 then
call spell.destroy()
call ReleaseTimer(t)
else
set s.i = s.i + 1
call FireProjectile( s.caster, s.target, 0, 400, 0.15, true, s.ma)
call UnitDamageTargetEX( s.caster, s.target, 25, true, true)
endif
endfunction
function Spell_Actions takes nothing returns nothing
local spell
set s = spell.create()
set s.caster = GetSpellAbilityUnit()
set s.target = GetSpellTargetUnit()
set s.ma = "Abilities\\Weapons\\SpiritOfVengeanceMissile\\SpiritOfVengeanceMissile.mdl"
local timer t = GetExpiredTimer()
set t = NewTimer()
call SetTimerData (t, 1)
set s.i = 0
endfunction
//===========================================================================
function JassSpell takes nothing returns nothing
local trigger g = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( g, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( g, Condition( function Spell_Conditions ) )
call TriggerAddAction( g, function Spell_Actions )
endfunction
endscope
Ai rành xem giúp mình tìm chổ sai, vì khi save nó báo "s (biến struct) is not type allow . syntax". Cụ thể mình muốn làm spell mỗi 1s bắn đạn vào target, bắn 3 lần.
Link sai rồi kìa, mình up lại cho.http://www.wc3c.net/showthread.php?t=103071Bạn có để ý phần mặt + skin của Unit ở cái ô kế bản đồ ko?? Đó là hình một model không có skin vì vậy mình nghĩ việc thay skin là có thể, bằng chứng là http://www.wc3c.net/showthread.php?t=103071 nhưng mình không biết xài
Ai chỉ giúp chổ sai với.

Trigger Database Error
[TriggerActions] - SaveWidgetHandleBJ
Data section and text section have differing numbers of parameters (3, 4)
Trigger Database Error
[TriggerActions] - SaveAbilityHandleBJ
Data section and text section have differing numbers of parameters (3, 4)
Trigger Database Error
[TriggerActions] - SaveTriggerEventHandleBJ
Data section and text section have differing numbers of parameters (3, 4)
Trigger Database Error
[TriggerActions] - SaveRegionHandleBJ
Data section and text section have differing numbers of parameters (3, 4)
Trigger Database Error
[TriggerActions] - SaveUnitPoolHandleBJ
Data section and text section have differing numbers of parameters (3, 4)
Trigger Database Error
[TriggerActions] - SaveItemPoolHandleBJ
Trigger Database Error
[TriggerActions] - SaveMultiboardItemHandleBJ
Data section and text section have differing numbers of parameters (3, 4)
Trigger Database Error
[TriggerActions] - SaveTrackableHandleBJ
Data section and text section have differing numbers of parameters (3, 4)

Khi open map mình gặp các lỗi sau đây
Có cách nào sửa khôngMã:Trigger Database Error [TriggerActions] - SaveWidgetHandleBJ Data section and text section have differing numbers of parameters (3, 4) Trigger Database Error [TriggerActions] - SaveAbilityHandleBJ Data section and text section have differing numbers of parameters (3, 4) Trigger Database Error [TriggerActions] - SaveTriggerEventHandleBJ Data section and text section have differing numbers of parameters (3, 4) Trigger Database Error [TriggerActions] - SaveRegionHandleBJ Data section and text section have differing numbers of parameters (3, 4) Trigger Database Error [TriggerActions] - SaveUnitPoolHandleBJ Data section and text section have differing numbers of parameters (3, 4) Trigger Database Error [TriggerActions] - SaveItemPoolHandleBJ Trigger Database Error [TriggerActions] - SaveMultiboardItemHandleBJ Data section and text section have differing numbers of parameters (3, 4) Trigger Database Error [TriggerActions] - SaveTrackableHandleBJ Data section and text section have differing numbers of parameters (3, 4)![]()


War3 mình 1.24![]()
Trigger Database Error
[TriggerActions] - SaveUnitPoolHandleBJ
Data section and text section have differing numbers of parameters (3, 4)

scope Spell initializer JassSpell
private function Spell_Conditions takes nothing returns boolean
return GetSpellAbilityId() == 'A000'
endfunction
struct spell
unit caster
unit target
string ma
integer i
endstruct
private function Action takes nothing returns nothing
local timer t = GetExpiredTimer()
local spell s = GetTimerData(t)
if s.i > 3 then
call spell.destroy()
call ReleaseTimer(t)
else
set s.i = s.i + 1
call FireProjectile( s.caster, s.target, 0, 400, 0.15, true, s.ma)
call UnitDamageTargetBJ(s.caster,s.target,25,ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC)
endif
endfunction
private function Spell_Actions takes nothing returns nothing
local spell s
local unit a = GetSpellAbilityUnit()
local unit b = GetSpellTargetUnit()
local timer t = NewTimer()
set s = spell.create()
set s.caster = a
set s.target = b
set s.ma = "Abilities\\Weapons\\SpiritOfVengeanceMissile\\SpiritOfVengeanceMissile.mdl"
set s.i = 0
call SetTimerData(t, s)
call TimerStart( t, 1.0, true, function Action )
set a = null
set b = null
set t = null
endfunction
//===========================================================================
private function JassSpell takes nothing returns nothing
local trigger g = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( g, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( g, Condition( function Spell_Conditions ) )
call TriggerAddAction( g, function Spell_Actions )
set g = null
endfunction
endscope