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

实际战斗中的位置:

如有问题欢迎留言,enjoy it~~~
截图由我的好友Ryusa提供,我已经懒得截了,灰常灰常感谢~~
JAVASCRIPT 代码 下载
- //=============================================================================
- // MrLiu_Enemylocation.js
- //=============================================================================
- /*:
- * @plugindesc 在RMMV游戏的横版战斗中让敌人自动排序
- * @author MrLiu-过眼云烟
- * @param Front Position X
- * @desc 第一个敌人的X坐标.
- * 默认值: 200
- * @default 200
- *
- * @param Front Position Y
- * @desc 第一个敌人的y坐标.
- * 默认值: 280
- * @default 280
- *
- * @param Front Instance X
- * @desc This formula determines the actor's home Y position.
- * 默认值: 32
- * @default 32
- *
- * @param Front Instance Y
- * @desc This formula determines the actor's home Y position.
- * 默认值: 48
- * @default 48
- * @help This plugin does not provide plugin commands.
- */
- //-----------------------------------------------------------------------------
- // Window_MapName
- //
- // The window for displaying the map name on the map screen.
- var Imported = Imported || {};
- Imported.MrLiu_Enemylocation = true;
- var Lmd = Lmd || {};
- Lmd.Parameters = PluginManager.parameters('MrLiu_Enemylocation');
- Lmd.Param = Lmd.Param || {};
- Lmd.Param.x1 = Number(Lmd.Parameters['Front Position X']);
- Lmd.Param.y1 = Number(Lmd.Parameters['Front Position Y']);
- Lmd.Param.x2 = Number(Lmd.Parameters['Front Instance X']);
- Lmd.Param.y2 = Number(Lmd.Parameters['Front Instance Y']);
- (function(){
- Game_Enemy.prototype.screenX = function(){
- return Lmd.Param.x1 - this.index() * Lmd.Param.x2;//this._screenX;
- };
- Game_Enemy.prototype.screenY = function(){
- return Lmd.Param.y1 + this.index() * Lmd.Param.y2;//this._screenY;
- };
- //var _Scene_Map_start = Scene_Map.prototype.start;
- //Scene_Map.prototype.start = function() {
- // this._Scene_Map_start();
- // this._mapStatusWindow.open();
- //};
- })();
复制代码
本帖来自P1论坛作者过眼云烟,因Project1站服务器在国外有时候访问缓慢不方便作者交流学习,经联系P1站长fux2同意署名转载一起分享游戏制作经验,共同为国内独立游戏作者共同创造良好交流环境,原文地址: https://rpg.blue/forum.php?mod=viewthread&tid=386034 若有侵权,发帖作者可联系底部站长QQ在线咨询功能删除,谢谢。 |