请选择 进入手机版 | 继续访问电脑版

站内搜索

搜索
热搜: 活动 交友 discuz

iFAction 世界需要你的想象力!

[官方] 物品实体化与敌人实体物品掉落MOD 使用方法

 

20

主题

209

帖子

1361

积分

管理员

Rank: 22Rank: 22Rank: 22Rank: 22Rank: 22Rank: 22

积分
1361

iFAction官方导师

发表于 2020-4-1 23:15:20 | 显示全部楼层 |阅读模式
物品实体化与敌人实体物品掉落MOD 使用方法介绍
MOD名称/ Name物品实体化与敌人实体物品掉落MOD /Enemy Drop Visible Items and Generate Visible Items
MOD适用平台/ PlatformACT,ARPG
MOD是否开源/ Whether open source是/ Yes
MOD是否存在触发器/ Trigger command是/ Yes
MOD是否存在外接DLL/ External DLL否/ No


使用说明 / Instructions

1、指令概览 / Preview
中文English



2、使用 / Use

指令 / command中文English
生成实体物品/武器/防具
Generate Visible Item/Weapon/Armor


你可以用这个指令将你配置在设置里的物品、武器、防具在场景中指定的位置生成实体,默认生成的是你为该物品配置的图标
注:位置xy从0开始计数,所以最左最上的坐标xy是(0,0)




You can use this command to generate items, weapons, and armors which you set in the Settings at the position you prefered in the scene.

The default image is the icon you configured for the item in Settings.

Note: The Target xy starts from 0, so the leftmost and topmost coordinate xy is (0,0)
变量生成实体物品/武器/防具
Generate Visible Item/Weapon/Armor(V)

你可以用这个指令将你配置在设置里的物品、武器、防具在场景中变量位置生成实体,而这个物品你也同样可以用变量来选择。默认生成的是你为该物品配置的图标




You can use this command to generate items, weapons, and armors which you set in the Settings at the variable position in the scene. Items/weapons/armors can also be selected with variables.

The default image is the icon you configured for the item in Settings.
配置数据和选项/Data and Options
你可以在脚本里的DItemDropV中修改所有参数,包括是否开启敌人掉落实体物品模式,是否播放动画等等,上面有详细的注释供你参考。

*如果你想要生成你自己定义的图片,那么请你新建一个文件夹,然后修改DItemDropMoonV.path所对应的地址为你的文件夹名,然后在里面让你想生成的图片命名与设置里物品的icon保持一致就可以了。




You can change all the parameters in DItemDropV in the script, including whether to enable the enemy to drop the visible item, whether to play the animation, etc. There are detailed notes for your reference.

*If you want to generate other images, please create a new folder, and then change DItemDropMoonV.path to your folder name.Finally,you need to give your image the same name as the icon you set in Settings.

如何添加捡拾物品音效/How to add SE for picking up items
在LItemBlock 的第212行添加 RV.GameSet.playSE("音效文件地址" , 音量),
如:
RV.GameSet.playSE("Audio/SE/" + "com-gain_1.mp3" , 100);
Add following code at line 212 in LItemBlock
RV.GameSet.playSE("SE file path" , volume),
Example:
RV.GameSet.playSE("Audio/SE/" + "com-gain_1.mp3" , 100);

出现血条残留情况/If Hp bar can not be cleared
替换以下脚本到系统脚本LEnemy的499-518行
    this.load = function(info){
        char.getCharacter().x = info.x;
        char.getCharacter().y = info.y;
        char.camp = info.camp;
        _sf.hp = info.hp;
        _sf.mp = info.mp;
        _sf.visible = info.visible;
        _sf.activity = info.activity;
        _sf.isDie = info.isDie;
        if(_sf.isDie){
            char.isDie = _sf.isDie;
            char.getCharacter().getSpirte().opacity = 0;
        }else{
            hpBar.visible = _sf.hp < cof.maxHp;
            hpBar.setValue(_sf.hp,cof.maxHp);
            if(_sf.hp == -1){
                hpBar.visible = false;
            }
        }
    };
Replace following code at line 499-518 of default script LEnemy
    this.load = function(info){
        char.getCharacter().x = info.x;
        char.getCharacter().y = info.y;
        char.camp = info.camp;
        _sf.hp = info.hp;
        _sf.mp = info.mp;
        _sf.visible = info.visible;
        _sf.activity = info.activity;
        _sf.isDie = info.isDie;
        if(_sf.isDie){
            char.isDie = _sf.isDie;
            char.getCharacter().getSpirte().opacity = 0;
        }else{
            hpBar.visible = _sf.hp < cof.maxHp;
            hpBar.setValue(_sf.hp,cof.maxHp);
            if(_sf.hp == -1){
                hpBar.visible = false;
            }
        }
    };





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

14

主题

150

帖子

1868

积分

iF城镇

Rank: 6Rank: 6

积分
1868
发表于 2020-4-1 23:24:15 | 显示全部楼层
本帖最后由 御丶 于 2020-4-1 23:25 编辑

谢谢MOON姐姐 看到了

点评

嗯嗯,我刚想回复你_(:з」∠)_  发表于 2020-4-1 23:26
莫问,问就是在偷懒

16

主题

46

帖子

1721

积分

iF城镇

Rank: 6Rank: 6

积分
1721
发表于 2020-4-2 08:01:02 | 显示全部楼层
哇,辛苦了Moon姐姐姐最棒~~!

10

主题

48

帖子

318

积分

iF平原

次元文明-Original Sin

Rank: 4

积分
318
发表于 2020-4-2 08:35:14 | 显示全部楼层
辛苦了moon姐姐

27

主题

86

帖子

266

积分

iF平原

Rank: 4

积分
266
发表于 2020-4-2 19:43:17 | 显示全部楼层
从哪下载?

点评

到时候会直接在游戏资源商店MOD资源里面上架的吧 应该在审核中 一般他们发了教程马上就会上架  发表于 2020-4-2 20:25

27

主题

86

帖子

266

积分

iF平原

Rank: 4

积分
266
发表于 2020-4-3 16:47:55 | 显示全部楼层

哦,好的,谢谢

16

主题

46

帖子

1721

积分

iF城镇

Rank: 6Rank: 6

积分
1721
发表于 2020-4-7 04:10:43 | 显示全部楼层
本帖最后由 y543037 于 2020-4-7 06:15 编辑

。。。。操作失误。对不起。知道哪里改动了~!

27

主题

86

帖子

266

积分

iF平原

Rank: 4

积分
266
发表于 2020-4-9 21:55:16 | 显示全部楼层
我想说 能不能捡到道具时播个声音 ,好有个捡到东西的感觉

点评

我在主楼最后加了方法吼,修改一下就好  详情 回复 发表于 2020-4-9 22:33
+1  发表于 2020-4-9 22:27

20

主题

209

帖子

1361

积分

管理员

Rank: 22Rank: 22Rank: 22Rank: 22Rank: 22Rank: 22

积分
1361

iFAction官方导师

 楼主| 发表于 2020-4-9 22:33:13 | 显示全部楼层
a798777544 发表于 2020-4-9 21:55
我想说 能不能捡到道具时播个声音 ,好有个捡到东西的感觉

我在主楼最后加了方法吼,修改一下就好

27

主题

86

帖子

266

积分

iF平原

Rank: 4

积分
266
发表于 2020-4-10 20:03:43 | 显示全部楼层
moon 发表于 2020-4-9 22:33
我在主楼最后加了方法吼,修改一下就好

好的 谢谢
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系我们
QQ群:977585123
iFAction下载
Windows客户端
反馈
意见建议
iFAction

iFAction

京ICP备15053274号-1

Powered by Discuz! X3.4 © 2001-2013 Comsenz Inc.