魔兽争霸地图 jass问题
我复制的U9下载的技能每次都提示callDamageEnemiesArea(u,S,GetUnitX(v),GetUnitY(v),R,false,true,ATTACK...
我复制的U9下载的技能 每次都提示call DamageEnemiesArea(u, S, GetUnitX(v), GetUnitY(v), R, false, true, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC, WEAPON_TYPE_AXE_MEDIUM_CHOP) 的函数名错误。
//Variable Configuration:
constant function Frost_Death_SpellId takes nothing returns integer
return 'A005' //Rawcode of the ability being cast
endfunction
function Frost_Death_DummyID takes nothing returns integer
return 'u000' //Rawcode for the Frost Death (Dummy) unit
endfunction
constant function Frost_Death_Rings takes integer Level returns integer
return 4 + Level * 1 //Number of nova rings
endfunction
constant function Frost_Death_Amount takes integer Level returns integer
return 8 + Level * 2 //Number of novas per ring
endfunction
constant function Frost_Death_Distance takes integer Level returns integer
return 75 + Level * 0 //Distance between rings
endfunction
constant function Frost_Death_Wait takes integer Level returns real
return .07 - Level * 0 //Wait between each ring
endfunction
constant function Frost_Death_Damage takes real Level returns real
return 25 + Level * 25 //Damage done by each nova
endfunction
constant function Frost_Death_Radius takes real Level returns real
return 100 + Level * 0 //Radius of damage for each nova
endfunction
//Spell:
function Frost_Death_Actions takes nothing returns nothing
local unit u = GetTriggerUnit()
local unit v
local integer i = GetUnitAbilityLevel(u, Frost_Death_SpellId())
local integer k = Frost_Death_DummyID()
local integer l = Frost_Death_Rings(i)
local integer m = 0
local integer n = 50
local integer o = Frost_Death_Amount(i)
local integer q = 0
local integer r = Frost_Death_Distance(i)
local integer s = 360 / o
local real R = Frost_Death_Damage(i)
local real S = Frost_Death_Radius(i)
local real T = Frost_Death_Wait(i)
local location L = GetUnitLoc(u)
local player p = GetOwningPlayer(u)
loop
set m = m + 1
exitwhen m > l
loop
set q = q + 1
exitwhen q > o
set v = CreateUnitAtLoc(p, k, PolarProjectionBJ(L, n, ( s * I2R(q) )), bj_UNIT_FACING )
call IssueTargetOrder( v, "frostnova", v )
call DamageEnemiesArea(u, S, GetUnitX(v), GetUnitY(v), R, false, true, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC, WEAPON_TYPE_AXE_MEDIUM_CHOP)
call UnitApplyTimedLife( v, 'BTLF', 1.00 )
endloop
call TriggerSleepAction( T )
set q = 0
set n = n + r
endloop
set u = null
set v = null
call RemoveLocation(L)
set L = null
set p = null
endfunction
如果可以不用jass, 该怎么做,有图最好 展开
//Variable Configuration:
constant function Frost_Death_SpellId takes nothing returns integer
return 'A005' //Rawcode of the ability being cast
endfunction
function Frost_Death_DummyID takes nothing returns integer
return 'u000' //Rawcode for the Frost Death (Dummy) unit
endfunction
constant function Frost_Death_Rings takes integer Level returns integer
return 4 + Level * 1 //Number of nova rings
endfunction
constant function Frost_Death_Amount takes integer Level returns integer
return 8 + Level * 2 //Number of novas per ring
endfunction
constant function Frost_Death_Distance takes integer Level returns integer
return 75 + Level * 0 //Distance between rings
endfunction
constant function Frost_Death_Wait takes integer Level returns real
return .07 - Level * 0 //Wait between each ring
endfunction
constant function Frost_Death_Damage takes real Level returns real
return 25 + Level * 25 //Damage done by each nova
endfunction
constant function Frost_Death_Radius takes real Level returns real
return 100 + Level * 0 //Radius of damage for each nova
endfunction
//Spell:
function Frost_Death_Actions takes nothing returns nothing
local unit u = GetTriggerUnit()
local unit v
local integer i = GetUnitAbilityLevel(u, Frost_Death_SpellId())
local integer k = Frost_Death_DummyID()
local integer l = Frost_Death_Rings(i)
local integer m = 0
local integer n = 50
local integer o = Frost_Death_Amount(i)
local integer q = 0
local integer r = Frost_Death_Distance(i)
local integer s = 360 / o
local real R = Frost_Death_Damage(i)
local real S = Frost_Death_Radius(i)
local real T = Frost_Death_Wait(i)
local location L = GetUnitLoc(u)
local player p = GetOwningPlayer(u)
loop
set m = m + 1
exitwhen m > l
loop
set q = q + 1
exitwhen q > o
set v = CreateUnitAtLoc(p, k, PolarProjectionBJ(L, n, ( s * I2R(q) )), bj_UNIT_FACING )
call IssueTargetOrder( v, "frostnova", v )
call DamageEnemiesArea(u, S, GetUnitX(v), GetUnitY(v), R, false, true, ATTACK_TYPE_MAGIC, DAMAGE_TYPE_MAGIC, WEAPON_TYPE_AXE_MEDIUM_CHOP)
call UnitApplyTimedLife( v, 'BTLF', 1.00 )
endloop
call TriggerSleepAction( T )
set q = 0
set n = n + r
endloop
set u = null
set v = null
call RemoveLocation(L)
set L = null
set p = null
endfunction
如果可以不用jass, 该怎么做,有图最好 展开
3个回答
展开全部
这。。。
也许你的版本和他的不一样或者他加密了等
也许你的版本和他的不一样或者他加密了等
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
e!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询