初级玩家

- 贡献度
- 0
- 金元
- 1205
- 积分
- 61
- 精华
- 0
- 注册时间
- 2013-6-25
|
死亡自动读档(死亡不删档)
用记事本打开游戏目录\data\DLC0001\scripts\gamelogic.lua文件,将下列内容:
local playtime = GetTimePlaying()
playtime = math.floor(playtime*1000)
SetTimingStat("time", "scenario", playtime)
SendTrackingStats()
local days_survived, start_xp, reward_xp, new_xp, capped = CalculatePlayerRewards(wilson)
ProfileStatsSet("xp_gain", reward_xp)
ProfileStatsSet("xp_total", new_xp)
SubmitCompletedLevel() --close off the instance
wilson.components.health.invincible = true
wilson.profile:Save(function()
SaveGameIndex:EraseCurrent(function()
scheduler:ExecuteInTime(3, function()
TheFrontEnd ushScreen(DeathScreen(days_survived, start_xp, nil, capped))
end)
end)
end)
替换为:
StartNextInstance({reset_action=RESET_ACTION.LOAD_SLOT, save_slot = SaveGameIndex:GetCurrentSaveSlot()}, true)
即可死亡自动读档,死后游戏会卡一会儿,不要动,是在读档
死后不删档也是 死后重新开始 按了F5保存了 |
|