Global_hasReset = 0 --定义了一个可供所有lua脚本都使用的开关变量,他被menu中的exit和characterchange以及下文的march start调用 Global_replay = 0 --定义了一个可供所有lua脚本都使用的开关变量,用于replay function full(p) local oldid = id() if player(p) then setLife(lifemax()) setPower(powermax()) setGuardPoints(guardpointsmax()) setDizzyPoints(dizzypointsmax()) setRedLife(lifemax()) removeDizzy() if helper(99999) then mapSet('costNumber', 99) end playerid(oldid) end end function fullAll() full(1) full(2) full(3) full(4) full(5) full(6) full(7) full(8) setTime(getRoundTime()) debugFlag(1) debugFlag(2) clearConsole() end --;=========================================================== --; MATCH LOOP --;=========================================================== local endFlag = false --function called during match via config.ini CommonLua function loop() hook.run("loop") --match start if roundstart() then if Global_replay == 1 then for i = 1,8,1 do player(i) mapSet('isReplay', 1) mapSet('_iksys_trainingFrameData', replayFrameData and 1 or 0) mapSet('_iksys_trainingInputData', replayInputData and 1 or 0) mapSet('_iksys_trainingComboData', replayComboData and 1 or 0) mapSet('_iksys_isArkUnScreenPack', 1) end end setLifebarElements({bars = main.lifebar.bars}) if roundno() == 1 then speedMul = 1 speedAdd = 0 start.victoryInit = false start.resultInit = false start.continueInit = false start.hiscoreInit = false endFlag = false if gamemode('training') then menu.f_trainingReset_New() end end start.turnsRecoveryInit = false start.dialogueInit = false end end