logoHourGlass
Battle.GetTargetSelect

Battle.GetTargetSelect

Battle.GetTargetSelect(BattleIndex, AttackerIndex, TargetIndex)

函數功能

根據進攻者和目標的位置,計算出對應的戰鬥指令中目標位置的值。

參數說明

  • BattleIndex數值型 戰鬥index,爲Encount、PVE或PVP函數的返回值。
  • AttackerIndex數值型 對象index,可以爲玩家、寵物、敵人。
  • TargetIndex數值型 對象index,可以爲玩家、寵物、敵人。

返回值

數值型,可直接作爲參數傳遞給Battle.ActionSelect函數。