设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 7953|回复: 6

[已经过期] 求脚本DMV_MapMenuButtons.js的范例啊

[复制链接]

Lv4.逐梦者

世界坑化协会

梦石
0
星屑
7572
在线时间
1548 小时
注册时间
2007-3-13
帖子
5536

极短23参与极短21参与开拓者贵宾第一届化妆舞会最佳服饰奖

发表于 2015-11-18 23:30:59 | 显示全部楼层 |阅读模式

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

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

x

http://www.dekyde.com/dmv-mapbuttons

我照着上面弄了事件循环,结果是undefined is not function,搞不懂啊,苦手了,求范例

15-11-03-04-38-19-83078.zip

2.94 KB, 下载次数: 189

你的肩膀上有肩周炎~♪  秒懂  ☚   \没有

Lv5.捕梦者

梦石
0
星屑
21891
在线时间
8558 小时
注册时间
2011-12-31
帖子
3361
发表于 2015-11-18 23:45:48 | 显示全部楼层
本帖最后由 tseyik 于 2015-11-19 00:01 编辑

有没有安DMV_Core
所有DMV_xxx都要先安DMV_Core
https://raw.githubusercontent.com/Dekita/DMV/master/DMV_Core.js

点评

https://raw.githubusercontent.com/mv-secret-team/MVCommons/master/MVCommons.js  发表于 2015-11-23 18:56
MVCommons有没有安?  发表于 2015-11-23 18:56
安装了呢,所以不知道原因,最好有个实现了范例了  发表于 2015-11-19 10:44
回复 支持 反对

使用道具 举报

Lv4.逐梦者

世界坑化协会

梦石
0
星屑
7572
在线时间
1548 小时
注册时间
2007-3-13
帖子
5536

极短23参与极短21参与开拓者贵宾第一届化妆舞会最佳服饰奖

 楼主| 发表于 2015-11-20 16:30:41 | 显示全部楼层
趁周末顶一下,再没人就下架了
你的肩膀上有肩周炎~♪  秒懂  ☚   \没有
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
81 小时
注册时间
2015-4-19
帖子
68
发表于 2015-11-20 16:38:16 | 显示全部楼层
tseyik 发表于 2015-11-18 23:45
有没有安DMV_Core
所有DMV_xxx都要先安DMV_Core
https://raw.githubusercontent.com/Dekita/DMV/master/DMV ...

大哥可以帮忙吧这个脚本里的“全体成员自动”功能删除吗?单体自动的留着,谢谢了
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
60
在线时间
81 小时
注册时间
2015-4-19
帖子
68
发表于 2015-11-20 16:39:11 | 显示全部楼层
本帖最后由 余烬之中 于 2015-11-23 14:37 编辑
tseyik 发表于 2015-11-18 23:45
有没有安DMV_Core
所有DMV_xxx都要先安DMV_Core
https://raw.githubusercontent.com/Dekita/DMV/master/DMV ...


JAVASCRIPT 代码复制
  1. /**
  2.  * Created by Gilles on 01.11.2015.
  3.  * @email: [email][email protected][/email]
  4.  */
  5.  
  6. /*:
  7.  * @plugindesc Allows Auto Attack in Battle. The players will always choose the enemy with the lowest hp
  8.  * @author Gilles Meyer
  9.  *
  10.  * @param Auto Attack Text Party
  11.  * @desc The text which will appear in the Party command Menu
  12.  * @default Auto Attack
  13.  *
  14.  * @param Auto Attack Text Actor
  15.  * @desc The text which will appear in the Actor command Menu
  16.  * @default Auto Attack
  17.  *
  18.  *
  19.  *
  20.  */
  21.  
  22. (function() {
  23.  
  24.  
  25.   var parameters = PluginManager.parameters('AutoBattlePlugin');
  26.   var autoAttackPartyText = String(parameters['Auto Attack Text Party'] || "自动");
  27.   var autoAttackActorText = String(parameters['Auto Attack Text Actor'] || "自动");
  28.  
  29.   var getEnemyWithLowestHP = function(enemies) {
  30.     var enemyIndex = 0;
  31.     for(var i=1; i < enemies.length; i++) {
  32.       if(enemies[i].hp < enemies[enemyIndex].hp || enemies[enemyIndex].hp == 0) {
  33.         enemyIndex = i;
  34.       }
  35.     }
  36.     return enemyIndex;
  37.   };
  38.  
  39.  
  40.   Scene_Battle.prototype.commandAutoFight = function() {
  41.     this.selectNextCommand();
  42.     do {
  43.       this.commandAutoAttack.apply(this, arguments);
  44.     } while(BattleManager.isInputting());
  45.     this._actorCommandWindow.deactivate();
  46.   };
  47.  
  48.   Scene_Battle.prototype.commandAutoAttack = function() {
  49.     BattleManager.inputtingAction().setAttack();
  50.     var enemyIndex = getEnemyWithLowestHP(this._enemyWindow._enemies);
  51.     var action = BattleManager.inputtingAction();
  52.     action.setTarget(enemyIndex);
  53.     this.selectNextCommand();
  54.   };
  55.  
  56.  
  57.   // ## Autofight for Party
  58.   Window_PartyCommand.prototype.makeCommandList = function() {
  59.     this.addCommand(TextManager.fight,  'fight');
  60.     // Needs rework
  61.     this.addCommand(autoAttackPartyText,  'autofight');
  62.     this.addCommand(TextManager.escape, 'escape', BattleManager.canEscape());
  63.   };
  64.  
  65.   var _Scene_Battle_createPartyCommandWindow = Scene_Battle.prototype.createPartyCommandWindow;
  66.   Scene_Battle.prototype.createPartyCommandWindow = function() {
  67.     _Scene_Battle_createPartyCommandWindow.apply(this, arguments);
  68.     this._partyCommandWindow.setHandler('autofight',  this.commandAutoFight.bind(this));
  69.   };
  70.  
  71.  
  72.   // ## Autofight for each Actor
  73.   var Scene_Battle_createActorCommandWindow = Scene_Battle.prototype.createActorCommandWindow;
  74.   Scene_Battle.prototype.createActorCommandWindow = function() {
  75.     Scene_Battle_createActorCommandWindow.call(this,arguments);
  76.     this._actorCommandWindow.setHandler('autoattack', this.commandAutoAttack.bind(this));
  77.   };
  78.  
  79.   var _Window_ActorCommand_makeCommandList = Window_ActorCommand.prototype.makeCommandList;
  80.   Window_ActorCommand.prototype.makeCommandList = function() {
  81.     if(this._actor) {
  82.       this.addCommand(autoAttackActorText, 'autoattack', this._actor.canAttack());
  83.     }
  84.     _Window_ActorCommand_makeCommandList.call(this, arguments);
  85.   };
  86.  
  87.  
  88. })();

评分

参与人数 1星屑 -10 收起 理由
余烬之中 -10 在别人的主题帖下发问+不必要的连贴.

查看全部评分

回复 支持 反对

使用道具 举报

Lv4.逐梦者

世界坑化协会

梦石
0
星屑
7572
在线时间
1548 小时
注册时间
2007-3-13
帖子
5536

极短23参与极短21参与开拓者贵宾第一届化妆舞会最佳服饰奖

 楼主| 发表于 2015-11-23 14:14:05 | 显示全部楼层
还是没人,BZ帮结贴吧

点评

应该收到了  发表于 2015-11-23 15:01
第一次操作悬赏帖..已经收到了退款吧 =w=  发表于 2015-11-23 14:40
你的肩膀上有肩周炎~♪  秒懂  ☚   \没有
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21891
在线时间
8558 小时
注册时间
2011-12-31
帖子
3361
发表于 2015-11-23 15:51:26 | 显示全部楼层
本帖最后由 tseyik 于 2015-11-23 16:03 编辑

PictureCallCommon
Image001.png
Image005.png
Image002.png

Image006.png
Image003.png
Image004.png
Image0010..png
ChangeMapTouchPolicy
PictureCallCommon

点评

等一下这脚本框里面惊人的格式是怎么回事囧!  发表于 2015-11-24 19:53

评分

参与人数 1星屑 +266 收起 理由
余烬之中 + 266 其实楼主选择直接结贴了囧

查看全部评分

回复 支持 反对

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-19 08:14

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表