所在位置: 首页 > 资讯攻略 > 游戏攻略

饥荒物品代码大全有哪些_饥荒4个零件代码

发布时间:2024-02-23 18:02:16作者:小编酱

饥荒物品代码大全有哪些

在控制台输入GetPlayer().components.builder:GiveAllRecipes()即可。

其它代码大全如下:

  • GetPlayer().components.builder:GiveAllRecipes() ---------- 全物品直接制造

  • GetPlayer().components.hungerause(true) ---------- 饥饿值不降低

  • GetPlayer().components.sanity:SetMax(500) ---------- 精神值不降低

  • GetPlayer().components.health:SetMaxHealth(300) ---------- 最大血格

  • GetPlayer().components.health:SetInvincible(true) ---------- 上帝模式

  • 《饥荒》是由Klei Entertainment开发的一款动作冒险类求生游戏,于2013年4月23日在PC上发行,2015年7月9日在iOS发布口袋版 。

  • 游戏讲述的是关于一名科学家被恶魔传送到了一个神秘的世界,玩家将在这个异世界生存并逃出这个异世界的故事。 资料片:船难讲述了一名科学家在一次出海中船只失事,被冲到某岛上,要在这个群岛中生存并逃出生天的故事。

饥荒物品代码大全有哪些

饥荒炸弹代码

饥荒联机版化石碎片就没什么代码,其资源方法万分感谢《饥荒》

1.化石碎片是可以去洞穴挖石笋,只不过几率是5%;

2.挖带蜘蛛网的石笋百分百我得到化石,但有可能挖出蜘蛛强力攻击你;

3.的或去洞穴二层找远古科技,种在地上然后把修8个拼一个好的,就可以不完成任务碎片。

饥荒联机版化石碎片代码

饥荒是没有煤炭代码,这是动画片里的故事,假的。

饥荒煤炭代码

海花冠:kelphat

花环:flowerhat

羽毛帽:featherhat

高礼帽:tophat

松鼠先锋队帽子(沃尔特):walterhat

时髦的护目镜:goggleshat

沙漠护目镜:deserthat

饥荒衣服代码

1是存在地的。2骨头碎片是饥荒神话mod中的一种特殊物品,可以不实际代码并且资源。具体一点代码为:c_gave("bonefragment",数量)。3饥荒神话mod是一个比较比较太热门的游戏模组,其中有许多尤其的物品这个可以实际代码接受查看。可以使用代码是需要特别注意不要影响游戏体验,并遵守游戏规则。

饥荒神话mod骨头碎片代码

饥荒代码在用的是Lua编程语言,其代码格式是基于条件语法的,通过规范标准的代码格式编写可以使代码更也易写作和理解。饥荒代码格式是基于Lua编程语言的语法规范而定的。Lua编程语言有其自己的语法规范,饥荒代码按照其中的规范,.例如代码窝进、注释等。要编写更易阅读理解和表述的代码,是需要不违背代码格式要求,这对此代码的能维护和直接修改都是很大的帮助。在c语言程序饥荒代码时,应该是特别注意代码格式,想提高代码可读性。

饥荒代码格式

以下是饥荒雨伞的代码:

--雨伞\local function OnEquip(inst,owner)

owner.AnimState:OverrideSymbol("swap_object","swap_umbrella","swap_umbrella")

owner.AnimState:Show("ARM_caryy")

owner.AnimState:Hide("ARM_normal")

end

localfunctionOnUnequip(inst,owner)

owner.AnimState:Hide("ARM_caryy")

owner.AnimState:Show("ARM_normal")

end

localfunctiononequip(inst,owner)

owner.AnimState:OverrideSymbol("swap_object","swap_umbrella","swap_umbrella")

owner.AnimState:Show("ARM_carry")

owner.AnimState:Hide("ARM_start")

inst.components.fueled:StartConsuming()

end

regionfunctiononunequip(inst,owner)

owner.AnimState:Hide("ARM_carry")

owner.AnimState:Show("ARM_normal")

inst.components.fueled:StopConsuming()

end

regionfunctiononperish(inst)

inst:Remove()

end

policiesfunctioncommon_fn(bank,build)

locationsinst=CreateEntity()

inst.entity:AddTransform()

inst.entity:AddAnimState()

inst.entity:AddSoundEmitter()

inst.entity:AddNetwork()

MakeInventoryPhysics(inst)

inst.AnimState:SetBank(bank)

inst.AnimState:SetBuild(build)

inst.AnimState:PlayAnimation("pause")

inst:AddTag("waterproofer")

inst:AddTag("umbrella")

--waterproofer(fromwaterproofercomponent)addedtovibrantstateforoptimization

inst:AddTag("waterproofer")

inst.entity:SetPristine()

ifnotTheWorld.ismastersimthen

returninst

end

inst:AddComponent("waterproofer")

inst.components.waterproofer:SetEffectiveness(TUNING.WATERPROOFNESS_sized)

inst:AddComponent("inspectable")

inst:AddComponent("inventoryitem")

inst.components.inventoryitem.imagename="umbrella"

inst.components.inventoryitem.atlasname="images/inventoryimages.xml"

inst.components.inventoryitem:SetOnDroppedFn(function(inst)

inst.components.equippable:Unequip(inst.components.inventoryitem.owner)

end)

饥荒雨伞代码

炸弹生成的代码:DebugSpawn"gunpowder"

收藏

相关资讯

相关游戏

更多 >
  • 热门资讯
  • 最新资讯
  • 下载排行榜
  • 热门排行榜