修改帝进来!!!
能否把养蜂帽改成蜜蜂为你战斗或者牛帽改成耗牛为你战斗就像蜘蛛帽那样?:dizzy::dizzy: 养蜂帽改成蜘蛛为你战斗好改 别的就太蛋疼了!因为没哪项指令字符串~! heart13 发表于 2013-5-5 15:26 static/image/common/back.gif养蜂帽改成蜘蛛为你战斗好改 别的就太蛋疼了!因为没哪项指令字符串~!
求问:给冬帽或者背包加防御语句怎么加呢? MattLorge 发表于 2013-5-5 16:57 static/image/common/back.gif
求问:给冬帽或者背包加防御语句怎么加呢?
local function winter() 这个是冬帽
local inst = simple()
inst:AddComponent("dapperness") 这个是特殊装备
inst.components.dapperness.dapperness = TUNING.DAPPERNESS_TINY
inst:AddComponent("insulator")
inst.components.insulator.insulation = TUNING.INSULATION_MED
inst:AddComponent("fueled")
inst.components.fueled.fueltype = "USAGE"
inst.components.fueled:InitializeFuelLevel(TUNING.WINTERHAT_PERISHTIME)
inst.components.fueled:SetDepletedFn(generic_perish)
return inst
end
local function football() 这个是猪皮帽
local inst = simple()
inst:AddComponent("armor") 这个是护甲
inst.components.armor:InitCondition(TUNING.ARMOR_FOOTBALLHAT, TUNING.ARMOR_FOOTBALLHAT_ABSORPTION)要修改得添加运行这条 指向TUNING的护甲模块! 但复制只能算把冬帽变成猪皮帽! 除非自己在TUNING里写入 ARMOR_WINTERHAT*HEALTH=WILONhp*50.5 神马的 这条格式错误的别复制粘贴啊!
return inst
end
local function feather_equip(inst, owner)
onequip(inst, owner)
local ground = GetWorld()
if ground and ground.components.birdspawner then
ground.components.birdspawner:SetSpawnTimes(TUNING.BIRD_SPAWN_DELAY_FEATHERHAT)
ground.components.birdspawner:SetMaxBirds(TUNING.BIRD_SPAWN_MAX_FEATHERHAT)
end
而且修改玩会弹出 却一个神马运行文件呢 但是猪皮改冬帽应该可行
heart13 发表于 2013-5-5 17:27 static/image/common/back.gif
local function winter() 这个是冬帽
local inst = simple()
inst:AddComponent("dapperness") ...
其实这样算是给冬帽附加了装甲,不过冬帽的恢复精神的属性还在,把上面的加到背包里面试试了
heart13 发表于 2013-5-5 15:26 static/image/common/back.gif
养蜂帽改成蜘蛛为你战斗好改 别的就太蛋疼了!因为没哪项指令字符串~!
可以改的,就是改动太大,要改牛和蜜蜂的brain,另外还要增加属性和状态,参照蜘蛛改的话还是可行的;
简单改的话就是带帽子进入战斗状态时,将范围内的蜜蜂或牛牛的攻击target设成主角的,这点可以参照偷高鸟蛋时的高鸟目标设置,或者二哥们的同类受伤互助设置,但貌似不能主动战斗。
页:
[1]