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

注册 登录

QQ登录

只需一步,快速开始

查看: 1784|回复: 0
打印 上一主题 下一主题

[求助] 【MOD求助】怎么通过mod修改target的值?

[复制链接]

10

主题

215

帖子

365

积分

高级玩家

Rank: 4

贡献度
15
金元
3047
积分
365
精华
0
注册时间
2008-1-2
跳转到指定楼层
主题
发表于 2013-5-21 21:41 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我想通过mod修改icestaff.lua的内容
想通过mod修改红色字体部分,改为 target.components.freezable:AddColdness(10)


local function onattack(inst, attacker, target)

    if attacker and attacker.components.sanity then
        attacker.components.sanityoDelta(-TUNING.SANITY_SUPERTINY)
    end

    if target.components.freezable then
        target.components.freezable:AddColdness(1)
        target.components.freezable:SpawnShatterFX()
    end




请问各位大侠,modmain.lua里应该怎么写。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-21 09:00 , Processed in 0.089767 second(s), 14 queries , Memcache On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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