查看: 4690|回复: 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         # 逃走
*/



点击展开/收起
  1. /*:
  2. *
  3. * @plugindesc サイドビュー戦闘にて、スキル・アイテム使用時の武器アニメーションを設定するプラグイン
  4. * @author hiz
  5. *
  6. * @help
  7. *
  8. * アイテム (スキル) メモ:
  9. *   <hzwamin:[motion],[wtypeid]>   # モーション[motion]・武器[wtypeid]の武器アニメーションを表示
  10. *                                  # ※ [motion]・[wtypeid]は省略可(通常攻撃のアニメーションを使用)
  11. *                                  #  モーションの指定はモーション一覧参照。
  12. *                                  #  武器の指定は、データベース[システム]の[SV]攻撃モーションの画像リスト
  13. *                                  #  1番上(なし)を0として上から順に0・1・2・・・を指定。
  14. * 例)
  15. *   <hzwanim>              # 通常攻撃時の武器アニメーションを表示
  16. *   <hzwanim:thrust>       # 通常攻撃時の武器で突きモーションを表示
  17. *   <hzwanim:swing,3>      # フレイルの振りモーションを表示
  18. *   <hzwanim:guard>        # 防御モーションを表示
  19. *   
  20. * モーション一覧
  21. * ・攻撃モーション
  22. *   thrust         # 突き
  23. *   swing          # 振り
  24. *   missile        # 飛び道具
  25. * ・その他モーション
  26. *   guard          # 防御
  27. *   spell          # 魔法
  28. *   skill          # スキル
  29. *   item           # アイテム
  30. *   damage         # ダメージ
  31. *   evade          # 回避
  32. *   victory        # 勝利
  33. *   escape         # 逃走
  34. */

  35. (function() {
  36.     var _Game_Actor_performAction = Game_Actor.prototype.performAction;
  37.     Game_Actor.prototype.performAction = function(action) {
  38.         var parm = action.item().meta.hzwanim;
  39.         if(parm !== undefined) {
  40.             var parms = parm.split !== undefined ? parm.split(",") : [];
  41.             // 武器画像IDの設定
  42.             var wtypeId = 0;
  43.             if(parms.length > 1) {
  44.                 // モーションの手動設定
  45.                 wtypeId = Number(parms[1]);
  46.             } else {
  47.                 // 通常攻撃の武器画像ID設定
  48.                 var weapons = this.weapons();
  49.                 wtypeId = weapons[0] ? weapons[0].wtypeId : 0;
  50.             }
  51.             // モーションの設定
  52.             var motion = "";
  53.             if(parms.length > 0) {
  54.                 // モーションの手動設定
  55.                 motion = parms[0];
  56.             } else {
  57.                 // 通常攻撃のモーション設定
  58.                 var weapons = this.weapons();
  59.                 var attackMotion = $dataSystem.attackMotions[wtypeId];
  60.                 if (attackMotion) {
  61.                     if (attackMotion.type === 0) {
  62.                         motion = 'thrust';
  63.                     } else if (attackMotion.type === 1) {
  64.                         motion = 'swing';
  65.                     } else if (attackMotion.type === 2) {
  66.                         motion = 'missile';
  67.                     }
  68.                     this.startWeaponAnimation(attackMotion.weaponImageId);
  69.                 }
  70.             }
  71.             if(motion === 'thrust' || motion === 'swing' || motion === 'missile') {
  72.                 //
  73.                 // 武器モーションの場合
  74.                 //
  75.                
  76.                 // 武器画像を表示するための準備
  77.                 var weapons = this.weapons();
  78.                 var attackMotion = $dataSystem.attackMotions[wtypeId];
  79.                 // モーションを設定
  80.                 this.requestMotion(motion);
  81.                 // 武器画像を表示
  82.                 this.startWeaponAnimation(attackMotion.weaponImageId);
  83.             } else {
  84.                 //
  85.                 // 武器モーション以外の場合
  86.                 //
  87.                
  88.                 // モーションを設定
  89.                 this.requestMotion(motion);
  90.             }
  91.         } else {
  92.             _Game_Actor_performAction.call(this, action);
  93.         }
  94.     };
  95. })();
复制代码

点评

哦哦,是这样啊!原来如此。那我另一个改不了颜色怎么办,是破解版有问题还是下载的东西有问题啊?果然最终还是需要买正版  发表于 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.

在本版发帖返回顶部