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

Project1

 找回密码
 注册会员
搜索
查看: 17722|回复: 28
打印 上一主题 下一主题

[原创发布] 【插件】敌人战斗位置自动排列

[复制链接]

Lv3.寻梦者

梦石
0
星屑
3657
在线时间
4466 小时
注册时间
2008-6-12
帖子
802
跳转到指定楼层
1
发表于 2015-11-20 17:48:10 | 显示全部楼层 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
群里有好友提出的需求,如果每个战斗队伍都去调整队列太麻烦,这个插件可以自动批量调整排列所有敌人的位置。
效果如下:
数据库中的样子:

实际战斗中的位置:

如有问题欢迎留言,enjoy it~~~
截图由我的好友Ryusa提供,我已经懒得截了,灰常灰常感谢~~

JAVASCRIPT 代码复制下载
  1. //=============================================================================
  2. // MrLiu_Enemylocation.js
  3. //=============================================================================
  4.  
  5. /*:
  6.  * @plugindesc 在RMMV游戏的横版战斗中让敌人自动排序
  7.  * @author MrLiu-过眼云烟
  8.  
  9.  * @param Front Position X
  10.  * @desc 第一个敌人的X坐标.
  11.  * 默认值: 200
  12.  * @default 200
  13.  *
  14.  * @param Front Position Y
  15.  * @desc 第一个敌人的y坐标.
  16.  * 默认值: 280
  17.  * @default 280
  18.  *
  19.  * @param Front Instance X
  20.  * @desc This formula determines the actor's home Y position.
  21.  * 默认值: 32
  22.  * @default 32
  23.  *
  24.  * @param Front Instance Y
  25.  * @desc This formula determines the actor's home Y position.
  26.  * 默认值: 48
  27.  * @default 48
  28.  * @help This plugin does not provide plugin commands.
  29.  */
  30. //-----------------------------------------------------------------------------
  31. // Window_MapName
  32. //
  33. // The window for displaying the map name on the map screen.
  34.  
  35.  
  36.  
  37.  
  38. var Imported = Imported || {};
  39. Imported.MrLiu_Enemylocation = true;
  40.  
  41. var Lmd = Lmd || {};
  42. Lmd.Parameters = PluginManager.parameters('MrLiu_Enemylocation');
  43. Lmd.Param = Lmd.Param || {};
  44.         Lmd.Param.x1 = Number(Lmd.Parameters['Front Position X']);
  45.     Lmd.Param.y1 = Number(Lmd.Parameters['Front Position Y']);
  46.         Lmd.Param.x2 = Number(Lmd.Parameters['Front Instance X']);
  47.         Lmd.Param.y2 = Number(Lmd.Parameters['Front Instance Y']);
  48.  
  49. (function() {
  50.  
  51.  
  52.  
  53.         Game_Enemy.prototype.screenX = function() {
  54.                 return Lmd.Param.x1 - this.index() * Lmd.Param.x2;//this._screenX;
  55.         };
  56.  
  57.         Game_Enemy.prototype.screenY = function() {
  58.                 return Lmd.Param.y1 + this.index() * Lmd.Param.y2;//this._screenY;
  59.         };
  60.  
  61.  
  62.  
  63. //var _Scene_Map_start = Scene_Map.prototype.start;
  64. //Scene_Map.prototype.start = function() {
  65. //   this._Scene_Map_start();
  66. //   this._mapStatusWindow.open();
  67. //};
  68. })();

MrLiu_Enemylocation.rar

795 Bytes, 下载次数: 1118

评分

参与人数 3星屑 +66 梦石 +2 +2 收起 理由
ZICENI + 1
beiduo + 1
余烬之中 + 66 + 2 图书馆收录

查看全部评分

本人三无老人,请大神轻拍
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

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

GMT+8, 2024-5-4 22:45

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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