查看: 4482|回复: 2

[已经过期] 怎么做双手武器

[复制链接]
梦石
0
星屑
62
在线时间
62 小时
注册时间
2012-6-9
回帖
13
发表于 2016-6-27 21:36:21 | 显示全部楼层 |阅读模式

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

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

×
用了双手武器就不能装备副手装备
梦石
0
星屑
4058
在线时间
836 小时
注册时间
2013-7-29
回帖
145

开拓者

发表于 2016-6-28 11:55:29 | 显示全部楼层
QQ图片20160628115423.png
现在论坛上的少,有事联系
QQ:2287688663
回复

使用道具 举报

梦石
0
星屑
22879
在线时间
8598 小时
注册时间
2011-12-31
回帖
3270
发表于 2016-7-10 14:52:09 | 显示全部楼层
二刀流改造 ver1.00
  1. //
  2. //  二刀流改造 ver1.00
  3. //
  4. // author yana
  5. //

  6. var Imported = Imported || {};
  7. Imported['DualWieldR'] = 1.00;
  8. /*:
  9. * @plugindesc ver1.00/二刀流でも盾を装備できるようにします。
  10. * @author Yana
  11. *
  12. * @help ------------------------------------------------------
  13. * 使用方法
  14. * ------------------------------------------------------
  15. * ------------------------------------------------------
  16. * 利用規約
  17. * ------------------------------------------------------
  18. * 使用に制限はありません。商用、アダルト、いずれにも使用できます。
  19. * 二次配布も制限はしませんが、サポートは行いません。
  20. * 著作表示は任意です。行わなくても利用できます。
  21. * 要するに、特に規約はありません。
  22. * バグ報告や使用方法等のお問合せはネ実ツクールスレ、または、Twitterにお願いします。
  23. * https://twitter.com/yanatsuki_
  24. * 素材利用は自己責任でお願いします。
  25. * ------------------------------------------------------
  26. * 更新履歴:
  27. * ver1.00:
  28. * 公開
  29. */

  30. (function(){
  31.         ////////////////////////////////////////////////////////////////////////////////////
  32.        
  33.         var parameters = PluginManager.parameters('DualWieldR');

  34.         ////////////////////////////////////////////////////////////////////////////////////
  35.        
  36.         var __GBBase_isDualWield = Game_BattlerBase.prototype.isDualWield;
  37.         Game_BattlerBase.prototype.isDualWield = function() {
  38.                 return __GBBase_isDualWield.call(this) && !this.nonDualWield();
  39.         };
  40.        
  41.         Game_BattlerBase.prototype.nonDualWield = function() {
  42.                 return false;
  43.         };
  44.        
  45.         ////////////////////////////////////////////////////////////////////////////////////

  46.         Game_Actor.prototype.nonDualWield = function() {
  47.                 return this._nonDualWield;
  48.         };
  49.        
  50.         var __GActor_releaseUnequippableItems = Game_Actor.prototype.releaseUnequippableItems;
  51.         Game_Actor.prototype.releaseUnequippableItems = function(forcing) {
  52.                 var r = this.equips().filter(function(e){ return e && e.etypeId === 2 });
  53.                 if (r.length > 0){ this._nonDualWield = true }
  54.                 __GActor_releaseUnequippableItems.call(this,forcing);
  55.         };
  56.        
  57.         ////////////////////////////////////////////////////////////////////////////////////
  58.        
  59.         // Change Equipment
  60.         var __GInterpreter_command319 = Game_Interpreter.prototype.command319;
  61.         Game_Interpreter.prototype.command319 = function() {
  62.                 console.log(this._params)
  63.             var actor = $gameActors.actor(this._params[0]);
  64.             if (this._params[1] === 2 && __GBBase_isDualWield.call(actor)){
  65.                     actor._nonDualWield = false;
  66.             }
  67.             return __GInterpreter_command319.call(this);
  68.         };

  69.         ////////////////////////////////////////////////////////////////////////////////////

  70.         var __WEItem_includes = Window_EquipItem.prototype.includes;
  71.         Window_EquipItem.prototype.includes = function(item) {
  72.                 var result = __WEItem_includes.call(this,item);
  73.                 if (item && this._slotId === 1){
  74.                         if (this._actor.isDualWield() && item.etypeId === 2){
  75.                                 result = this._actor.canEquip(item);
  76.                         } else if (__GBBase_isDualWield.call(this._actor) && item.etypeId === 1){
  77.                                 result = this._actor.canEquip(item);
  78.                         }
  79.                 }
  80.                 return result;
  81.         };
  82.        
  83.         var __WEItem_updateHelp = Window_EquipItem.prototype.updateHelp;
  84.         Window_EquipItem.prototype.updateHelp = function() {
  85.                 if (this.item() && this._actor && this.item().etypeId === 2 && this._actor.isDualWield()){
  86.                         this._actor._nonDualWield = true;
  87.                 } else {       
  88.                         this._actor._nonDualWield = false;
  89.                 }
  90.                 __WEItem_updateHelp.call(this);
  91.         };

  92.         ////////////////////////////////////////////////////////////////////////////////////
  93. }());
复制代码

やな
http://www6.atwiki.jp/pokotan/pages/3.html
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部