饑荒控制臺作弊及指令代碼
- 來源:著迷網(wǎng)
- 作者:奧丁之淵
- 編輯:奧丁之淵

3.關(guān)于對玩家使用的控制臺指令
①顯示/隱藏界面
顯示或隱藏游戲界面,例如物品欄,時鐘,制作欄之類的
指令:
隱藏【GetPlayer().HUD:Hide()】
顯示【GetPlayer().HUD:Show()】
②建筑模式
說白了就是解鎖全科技,不過在聯(lián)機里有些特殊的東西不能直接制作,比如雕塑
聯(lián)機里好幾個制作欄還疊到了一起,這時需要按“Caps Lock”鍵來選擇制作
指令:【GetPlayer().components.builder:GiveAllRecipes()】
③設(shè)置最大生命,饑餓,精神
指令:
【GetPlayer().components.health:SetMaxHealth(數(shù)值)】
【GetPlayer().components.hunger:SetMax(數(shù)值)】
【GetPlayer().components.sanity:SetMax(數(shù)值)】
例:設(shè)置最大生命為2000【GetPlayer().components.health:SetMaxHealth(2000)】
④停止饑餓
指令:【GetPlayer().components.hunger:Pause(true)】
⑤伍迪變成海貍
指令:【GetPlayer().components.beaverness:SetPercent(1)】
4.關(guān)于世界的控制臺指令
①傳送至物體
使用指令后會有一個代碼列表,如果是多個物體,會按照代碼列表上的順序傳送
指令:【c_gonext("代碼")】
例:傳送至一只弗牛的旁邊【c_gonext("beefalo")】
②刪除物體
刪除鼠標下的一個物體
好多人和我說這個指令用不了,所以這里需要強調(diào)一下那個是"in",不是"Ln"
指令:【TheInput:GetWorldEntityUnderMouse():Remove()】
③地圖全開
在單機里可以看到地圖上所有東西,聯(lián)機里只能看到地形
代碼:【GetWorld().minimap.MiniMap:ShowArea(0,0,0,10000)】
④跳時間
跳過一定時間,一格時間數(shù)值是30
指令:【LongUpdate(數(shù)值)】
例:跳過一天【LongUpdate(480)】
⑤調(diào)到下一時間段
指令:【GetClock():NextPhase()】
⑥設(shè)置時間段
以時鐘的格子為單位,一共16個格
指令:【GetClock():SetSegs(白天,黃昏,夜晚)】
例:設(shè)置超長夜晚【GetClock():SetSegs(1,1,14)】
⑦更改季節(jié)
要注意的是,原版無DLC只有“夏季”和“冬季”,所以拿夏季指令而不是秋季指令
指令:
春季【GetSeasonManager():StartSpring()】
夏季【GetSeasonManager():StartSummer()】
秋季【GetSeasonManager():StartAutumn()】
冬季【GetSeasonManager():StartWinter()】
溫季【GetSeasonManager():StartMild()】
風(fēng)季【GetSeasonManager():StartWet()】
雨季【GetSeasonManager():StartGreen()】
干季【GetSeasonManager():StartDry()】
⑧開始/停止下雨
指令:
開始【GetSeasonManager():StartPrecip()】
停止【GetSeasonManager():StopPrecip()】
⑨雷擊
指令:【GetSeasonManager():DoLightningStrike(Vector3(GetPlayer().Transform:GetWorldPosition()))】
⑩火山爆發(fā)
指令:【GetVolcanoManager():StartEruption(smokeduration,ashduration,firerainduration,firerockspersecond)】
5.關(guān)于一些其他的控制臺指令
①更換角色
更改當前角色,需要重進來實現(xiàn)
指令:【GetPlayer().prefab = "角色代碼"】
②解鎖人物
指令:
【GetPlayer().profile:UnlockCharacter("角色代碼")
GetPlayer().profile:Save()】
例:解鎖人物麥斯威爾
【GetPlayer().profile:UnlockCharacter("waxwell")
GetPlayer().profile:Save()】
③解鎖全部人物
指令:【GetPlayer().profile:UnlockEverything()】
④清空停尸房
需要重啟游戲
指令:【ErasePersistentString("morgue")】
以上為常用的幾個控制臺指令,對于單機版都可以用,聯(lián)機版不一定能用

玩家點評 (0人參與,0條評論)
熱門評論
全部評論