logoHourGlass
Battle.UseTechById

Battle.UseTechById

Battle.UseTechById(CharIndex, TechId, Target)

函數功能

讓對象執行指定的戰鬥技能釋放,必須在對象Battle.IsWaitingCommand(index)返回值爲1時纔可以有效使用。

參數說明

  • CharIndex數值型 玩家對象index
  • TechId數值型 指定的TechID,TechId是gmsv中tech.txt中定義的技能ID
  • Target數值型 施法目標對象在戰場中的位置

返回值

0 失敗, 1 成功