|
if GetItemCharges(GetManipulatedItem()) != 0 then
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 6
if GetManipulatedItem() != UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA()) then
if GetItemTypeId(GetManipulatedItem()) == GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA())) then
if GetItemCharges(GetManipulatedItem()) + GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA())) >= 1 then
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call SetItemCharges( UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA()), ( GetItemCharges(GetManipulatedItem()) + GetItem Charges(UnitItemInSlotBJ(GetTriggerUnit(), GetForLoopIndexA())) ) )
call RemoveItem( GetManipulatedItem() )
return
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
else
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call DoNothing( )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endif
endif
endif
endif
~~~~~~~~为一个循环A 1~6做多样动作~~~~如果条件成立做动作1否则做动作2~~为什么只能对捡到的第一件物品可以叠加?
对其它的物品没用~~是不是写错了? 试了很久都没解决~~想各位帮下忙~~~~ |
|