游戏达人
![Rank: 7](static/image/common/star_level3.gif) ![Rank: 7](static/image/common/star_level2.gif) ![Rank: 7](static/image/common/star_level1.gif)
- 贡献度
- 80
- 金元
- 18897
- 积分
- 2220
- 精华
- 1
- 注册时间
- 2010-11-27
|
靚仔 发表于 2013-9-15 00:25 ![](static/image/common/back.gif)
有没有种猴子,吞噬者,喷射蜘蛛,白蜘蛛,洞穴蜘蛛,萤火虫,猪王,巨型触手,远古犀牛。。。
问的太多了 ...
请总结种植语句的规律,下次就可以自己随便种任何东西了
一.用便便种猴子
用记事本打开游戏目录\data\scripts\prefabs\poop.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local monkey = SpawnPrefab("monkey")
if monkey then
monkey:PushEvent("growfrompoop")
monkey.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
二.用芦苇种吞噬者
用记事本打开游戏目录\data\scripts\prefabs\cutreeds.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local slurper = SpawnPrefab("slurper")
if slurper then
slurper:PushEvent("growfromcutreeds")
slurper.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
三.用蛛丝种喷射蜘蛛
用记事本打开游戏目录\data\scripts\prefabs\silk.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local spider_spitter = SpawnPrefab("spider_spitter")
if spider_spitter then
spider_spitter:PushEvent("growfromsilk")
spider_spitter.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
四.用蜘蛛腺体种白蜘蛛
用记事本打开游戏目录\data\scripts\prefabs\spidergland.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local spider_dropper = SpawnPrefab("spider_dropper")
if spider_dropper then
spider_dropper:PushEvent("growfromspidergland")
spider_dropper.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
五.用蜂刺种洞穴蜘蛛
用记事本打开游戏目录\data\scripts\prefabs\stinger.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local spider_hider = SpawnPrefab("spider_hider")
if spider_hider then
spider_hider:PushEvent("growfromstinger")
spider_hider.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
六.用花瓣种萤火虫
用记事本打开游戏目录\data\scripts\prefabs\petals.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local fireflies = SpawnPrefab("fireflies")
if fireflies then
fireflies:PushEvent("growfrompetals")
fireflies.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
七.用黄金种猪王(猪王不能移动,所以种在合适的地方)
用记事本打开游戏目录\data\scripts\prefabs\goldnugget.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local pigking = SpawnPrefab("pigking")
if pigking then
pigking:PushEvent("growfromgoldnugget")
pigking.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
八.用木头种巨型触手
用记事本打开游戏目录\data\scripts\prefabs\log.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local tentacle_garden = SpawnPrefab("tentacle_garden")
if tentacle_garden then
tentacle_garden:PushEvent("growfromlog")
tentacle_garden.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
九.用树杈种远古犀牛
用记事本打开游戏目录\data\scripts\prefabs\twigs.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
local minotaur = SpawnPrefab("minotaur")
if minotaur then
minotaur:PushEvent("growfromtwigs")
minotaur.Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
|
|