|
[codes=jass]function Trig_SW2_Actions takes nothing returns nothing
local unit SWmb = GetDyingUnit()
local integer SWsjs = GetRandomInt(1, 100)
local Location SWmbd = GetUnitLoc(SWmb)
local integer SWxhs = 0
loop
exitwhen SWxhs > 5
if ( not ( GetUnitTypeId(SWmb) == udg_UT_Hero_Type[SWxhs] ) ) then
if ( not ( UnitHasBuffBJ(SWmb, 'Bcri') == true ) ) then
if ( not ( SWsjs <= 20 ) ) then
call ReviveHeroLoc( SWmb, SWmbd, true )
else
call CreateNUnitsAtLoc( 1, 'e001', GetOwningPlayer(SWmb), SWmbd, bj_UNIT_FACING )
endif
else
call CreateNUnitsAtLoc( 1, 'e001', GetOwningPlayer(SWmb), SWmbd, bj_UNIT_FACING )
endif
else
endif
set SWxhs = SWxhs + 1
endloop
endfunction[/codes]
我知道语法上肯定有大错,但是是错在哪呢?菜鸟问题~ |
|