查看: 4602|回复: 4

[已经解决] 我在网上找了一下武器动画但是怎么使用

[复制链接]
梦石
0
星屑
50
在线时间
19 小时
注册时间
2014-10-19
回帖
8
发表于 2016-5-20 03:05:58 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

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

×
本以为导入就可以了,没想到并不可以。武器动作只有原始的可以选,自己添加的没用,而且我改了名字也一样根本选不到,不知道如何添加武器动作的动画
梦石
0
星屑
22879
在线时间
8598 小时
注册时间
2011-12-31
回帖
3270
发表于 2016-5-20 09:24:29 | 显示全部楼层
你要先説用了那個武器动画脚本
回复

使用道具 举报

梦石
0
星屑
50
在线时间
19 小时
注册时间
2014-10-19
回帖
8
 楼主| 发表于 2016-5-20 20:48:29 | 显示全部楼层
tseyik 发表于 2016-5-20 09:24
你要先説用了那個武器动画脚本

就是那个yep嘛,我有啊!下载了啊!
回复

使用道具 举报

梦石
0
星屑
22879
在线时间
8598 小时
注册时间
2011-12-31
回帖
3270
发表于 2016-5-20 21:44:58 | 显示全部楼层
我喜歡用這個
* 物品 (技能) 註:
*   <hzwamin:[motion],[wtypeid]>   # 動作[motion]・武器[wtypeid]武器動画表示
*                                  # ※ [motion]・[wtypeid]省略可(省略時使用通常攻撃動画)
*                                  #  指定動作参照動作一覧。
*                                  #  武器指定、使用資料參中[系統]的[SV]攻撃 動作的画像列表
*                                  #  1番上(無)0,順に0・1・2・・・指定。
* 例)
*   <hzwanim>              # 通常攻撃時武器動作的画像表示
*   <hzwanim:thrust>       # 通常攻撃時武器前突表示
*   <hzwanim:swing,3>      # フレイルの振りモーションを表示
*   <hzwanim:guard>        # 防御動作表示
*   
* モーション一覧
* ・攻撃モーション
*   thrust         # 突き
*   swing          # 振り
*   missile        # 飛び道具
* ・その他モーション
*   guard          # 防御
*   spell          # 魔法
*   skill          # スキル
*   item           # アイテム
*   damage         # ダメージ
*   evade          # 回避
*   victory        # 勝利
*   escape         # 逃走
*/



点击展开/收起[pre lang="javascript"]/*:
*
* @plugindesc サイドビュー戦闘にて、スキル・アイテム使用時の武器アニメーションを設定するプラグイン
* @author hiz
*
* @help
*
* アイテム (スキル) メモ:
*   <hzwamin:[motion],[wtypeid]>   # モーション[motion]・武器[wtypeid]の武器アニメーションを表示
*                                  # ※ [motion]・[wtypeid]は省略可(通常攻撃のアニメーションを使用)
*                                  #  モーションの指定はモーション一覧参照。
*                                  #  武器の指定は、データベース[システム]の[SV]攻撃モーションの画像リスト
*                                  #  1番上(なし)を0として上から順に0・1・2・・・を指定。
* 例)
*   <hzwanim>              # 通常攻撃時の武器アニメーションを表示
*   <hzwanim:thrust>       # 通常攻撃時の武器で突きモーションを表示
*   <hzwanim:swing,3>      # フレイルの振りモーションを表示
*   <hzwanim:guard>        # 防御モーションを表示
*   
* モーション一覧
* ・攻撃モーション
*   thrust         # 突き
*   swing          # 振り
*   missile        # 飛び道具
* ・その他モーション
*   guard          # 防御
*   spell          # 魔法
*   skill          # スキル
*   item           # アイテム
*   damage         # ダメージ
*   evade          # 回避
*   victory        # 勝利
*   escape         # 逃走
*/

(function() {
    var _Game_Actor_performAction = Game_Actor.prototype.performAction;
    Game_Actor.prototype.performAction = function(action) {
        var parm = action.item().meta.hzwanim;
        if(parm !== undefined) {
            var parms = parm.split !== undefined ? parm.split(",") : [];
            // 武器画像IDの設定
            var wtypeId = 0;
            if(parms.length > 1) {
                // モーションの手動設定
                wtypeId = Number(parms[1]);
            } else {
                // 通常攻撃の武器画像ID設定
                var weapons = this.weapons();
                wtypeId = weapons[0] ? weapons[0].wtypeId : 0;
            }
            // モーションの設定
            var motion = "";
            if(parms.length > 0) {
                // モーションの手動設定
                motion = parms[0];
            } else {
                // 通常攻撃のモーション設定
                var weapons = this.weapons();
                var attackMotion = $dataSystem.attackMotions[wtypeId];
                if (attackMotion) {
                    if (attackMotion.type === 0) {
                        motion = 'thrust';
                    } else if (attackMotion.type === 1) {
                        motion = 'swing';
                    } else if (attackMotion.type === 2) {
                        motion = 'missile';
                    }
                    this.startWeaponAnimation(attackMotion.weaponImageId);
                }
            }
            if(motion === 'thrust' || motion === 'swing' || motion === 'missile') {
                //
                // 武器モーションの場合
                //
               
                // 武器画像を表示するための準備
                var weapons = this.weapons();
                var attackMotion = $dataSystem.attackMotions[wtypeId];
                // モーションを設定
                this.requestMotion(motion);
                // 武器画像を表示
                this.startWeaponAnimation(attackMotion.weaponImageId);
            } else {
                //
                // 武器モーション以外の場合
                //
               
                // モーションを設定
                this.requestMotion(motion);
            }
        } else {
            _Game_Actor_performAction.call(this, action);
        }
    };
})();[/pre]

点评

哦哦,是这样啊!原来如此。那我另一个改不了颜色怎么办,是破解版有问题还是下载的东西有问题啊?果然最终还是需要买正版  发表于 2016-5-20 23:22
回复

使用道具 举报

梦石
0
星屑
50
在线时间
19 小时
注册时间
2014-10-19
回帖
8
 楼主| 发表于 2016-5-20 22:55:43 | 显示全部楼层
tseyik 发表于 2016-5-20 21:44
我喜歡用這個
* 物品 (技能) 註:
*      # 動作[motion]・武器[wtypeid]武器動画表示

完全不懂,这个用了会怎么样??

点评

寫在 物品 (技能) 的註中,在戰鬥中使用技能/物品時就會用指定的武器和動作,  发表于 2016-5-20 23:02
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部