Battle.FinishPlayerBattle
Battle.FinishPlayerBattle(CharIndex)
函數功能
結束當前戰鬥並退出(該函數會讓角色直接脫離戰鬥)
參數說明
CharIndex:數值型 玩家對象index
返回值
0 失敗, 1 成功
範例
battle.lua
if( Battle.GetBattleMode(index) == %戰鬥狀態_結束% ) then
Battle.FinishPlayerBattle(index);
end
HourGlass結束當前戰鬥並退出(該函數會讓角色直接脫離戰鬥)
CharIndex:數值型 玩家對象index0 失敗, 1 成功
battle.lua
if( Battle.GetBattleMode(index) == %戰鬥狀態_結束% ) then
Battle.FinishPlayerBattle(index);
end