| 赞 | 168 |
| VIP | |
| 好人卡 | |
| 积分 | 229 |
| 经验 | |
| 最后登录 | 2025-4-1 |
| 在线时间 | 8598 小时 |
- 梦石
- 0
- 星屑
- 22879
- 在线时间
- 8598 小时
- 注册时间
- 2011-12-31
- 回帖
- 3270
|
发表于 2016-7-10 14:52:09
|
显示全部楼层
二刀流改造 ver1.00- //
- // 二刀流改造 ver1.00
- //
- // author yana
- //
- var Imported = Imported || {};
- Imported['DualWieldR'] = 1.00;
- /*:
- * @plugindesc ver1.00/二刀流でも盾を装備できるようにします。
- * @author Yana
- *
- * @help ------------------------------------------------------
- * 使用方法
- * ------------------------------------------------------
- * ------------------------------------------------------
- * 利用規約
- * ------------------------------------------------------
- * 使用に制限はありません。商用、アダルト、いずれにも使用できます。
- * 二次配布も制限はしませんが、サポートは行いません。
- * 著作表示は任意です。行わなくても利用できます。
- * 要するに、特に規約はありません。
- * バグ報告や使用方法等のお問合せはネ実ツクールスレ、または、Twitterにお願いします。
- * https://twitter.com/yanatsuki_
- * 素材利用は自己責任でお願いします。
- * ------------------------------------------------------
- * 更新履歴:
- * ver1.00:
- * 公開
- */
- (function(){
- ////////////////////////////////////////////////////////////////////////////////////
-
- var parameters = PluginManager.parameters('DualWieldR');
- ////////////////////////////////////////////////////////////////////////////////////
-
- var __GBBase_isDualWield = Game_BattlerBase.prototype.isDualWield;
- Game_BattlerBase.prototype.isDualWield = function() {
- return __GBBase_isDualWield.call(this) && !this.nonDualWield();
- };
-
- Game_BattlerBase.prototype.nonDualWield = function() {
- return false;
- };
-
- ////////////////////////////////////////////////////////////////////////////////////
- Game_Actor.prototype.nonDualWield = function() {
- return this._nonDualWield;
- };
-
- var __GActor_releaseUnequippableItems = Game_Actor.prototype.releaseUnequippableItems;
- Game_Actor.prototype.releaseUnequippableItems = function(forcing) {
- var r = this.equips().filter(function(e){ return e && e.etypeId === 2 });
- if (r.length > 0){ this._nonDualWield = true }
- __GActor_releaseUnequippableItems.call(this,forcing);
- };
-
- ////////////////////////////////////////////////////////////////////////////////////
-
- // Change Equipment
- var __GInterpreter_command319 = Game_Interpreter.prototype.command319;
- Game_Interpreter.prototype.command319 = function() {
- console.log(this._params)
- var actor = $gameActors.actor(this._params[0]);
- if (this._params[1] === 2 && __GBBase_isDualWield.call(actor)){
- actor._nonDualWield = false;
- }
- return __GInterpreter_command319.call(this);
- };
- ////////////////////////////////////////////////////////////////////////////////////
- var __WEItem_includes = Window_EquipItem.prototype.includes;
- Window_EquipItem.prototype.includes = function(item) {
- var result = __WEItem_includes.call(this,item);
- if (item && this._slotId === 1){
- if (this._actor.isDualWield() && item.etypeId === 2){
- result = this._actor.canEquip(item);
- } else if (__GBBase_isDualWield.call(this._actor) && item.etypeId === 1){
- result = this._actor.canEquip(item);
- }
- }
- return result;
- };
-
- var __WEItem_updateHelp = Window_EquipItem.prototype.updateHelp;
- Window_EquipItem.prototype.updateHelp = function() {
- if (this.item() && this._actor && this.item().etypeId === 2 && this._actor.isDualWield()){
- this._actor._nonDualWield = true;
- } else {
- this._actor._nonDualWield = false;
- }
- __WEItem_updateHelp.call(this);
- };
- ////////////////////////////////////////////////////////////////////////////////////
- }());
复制代码
やな
http://www6.atwiki.jp/pokotan/pages/3.html
|
|