3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 8332|回复: 4
打印 上一主题 下一主题

[修改] 非mod无脑无节操修改,慎用!!!!采集一个物品得到所有物品方法.

[复制链接]

14

主题

368

帖子

509

积分

高级玩家

Rank: 4

贡献度
18
金元
4373
积分
509
精华
0
注册时间
2013-3-18
跳转到指定楼层
主题
发表于 2013-5-29 15:05 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
       送给不喜欢装mod的玩家
非mod修改,所有版本通用........

此修改会使游戏变得非常简单.....慎用

用记事本打开游戏目录下 data\scripts\components\pickable.lua  文件

找到 picker.components.inventory:GiveItem(loot, nil, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())))
然后在下面增加:  picker.components.inventory:GiveItem(SpawnPrefab("物品名称"), nil, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())))

    其中 物品名称 填写 你需要增加采集的物品英文名称 比如 原木=log  石头=rocks  大便=poop 金子=goldnugget
例子:   当采集物品除了得到你当前采集的物品,还会额外得到
    额外采集一个木头  添加一行:   picker.components.inventory:GiveItem(SpawnPrefab("log"), nil, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())))
    额外采集一个石头  添加一行:   picker.components.inventory:GiveItem(SpawnPrefab("rocks"), nil, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())))
    额外采集一个大便  添加一行:   picker.components.inventory:GiveItem(SpawnPrefab("poop"), nil, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())))
    额外采集一个金子  添加一行:   picker.components.inventory:GiveItem(SpawnPrefab("goldnugget"), nil, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())))   
    额外得到一个兔子  添加一行:   picker.components.inventory:GiveItem(SpawnPrefab("rabbit"), nil, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())))
这五行全加上...就是同时额外得到1个木头,1个石头,1个大便,1个金子,1个兔子
    多采集一个就添加一行,想采集10个就添加10行
    物品的英文名称存放在 data\string.lua文件 或者 data\scripts\prefabs 目录里,每一个文件名称对应一个物品或者怪物的名称......
    懂英文可以很容易找到对应物品的英文名,不懂得就在线翻译慢慢找吧...

修改前注意备份原文件,电脑盲改错了又不会改回来会很悲剧的...

附送部分实用物品英文
charcoal 木炭
log 原木

livinglog 活木头
cutreeds 割好的芦苇
pinecone 松果
flint  燧石
goldnugget  金子
rocks  石头
bluegem  蓝宝石
redgem  红宝石
marble 大理石
mandrake  蔓得拉草

bee 蜜蜂
butter 黄油
butterfly 蝴蝶
cutgrass 割好的干草
egg  蛋
fish 鱼
froglegs 青蛙腿
nightmarefuel 噩梦燃料
pigskin 猪皮
twigs  树枝
tentaclespike  狼牙棒
armor_sanity   暗夜甲
nightsword     暗夜剑
amulet         护身符
silk           蜘蛛丝
meats          肉

评分

1

查看全部评分

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-3-24 18:43 , Processed in 0.030156 second(s), 19 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表