作者注:
1、看到论坛有人讨论增加参战队员上限,这里发布一下我参考论坛各路大神以及咨询得到的插件
2、由于英文名为HOY,故统一为为HOY插件,以后发布也会加这个前缀
3、新人发布,求喷求改求指教,脸厚不怕各路人
//============================================================================== // 【HOY插件】队伍人数插件 //============================================================================== /*: * @plugindesc 增加战斗人员数量、跟随队员数量、调整战斗位置 * @author HOY * @Data : 2016/01/19 * @Version : 1.0 * * @param Max Battle Members * @desc 设置允许参战的最大人数,默认为5人 * @default 5 * * @param Member Battle Position * @desc 改变战斗中Y轴位置 * @default -40 * * @param Party Followers * @desc 改变队伍跟随者数量 * @default 5 * * @help 战斗中Y轴位置,负值向上,正值向下。X轴暂时不调整 */ var Imported = Imported || {}; Imported.HOY_PartyMember = true; var HOY = HOY || {}; HOY.Parameters = PluginManager.parameters('HOY_PartyMember'); HOY.Param = HOY.Param || {}; HOY.Param.MaxBattleMembers = Number(HOY.Parameters['Max Battle Members']); HOY.Param.MemberBattlePosition = Number(HOY.Parameters['Member Battle Position']); HOY.Param.PartyFollowers = Number(HOY.Parameters['Party Followers']); (function() { Game_Party.prototype.maxBattleMembers = function() { return HOY.Param.MaxBattleMembers; }; Sprite_Actor.prototype.setActorHome = function(index) { this.setHome(600 + index * 32, 280 + index * 48 + HOY.Param.MemberBattlePosition); }; Game_Followers.prototype.initialize = function() { this._visible = $dataSystem.optFollowers; this._gathering = false; this._data = []; var max = HOY.Param.PartyFollowers || $gameParty.maxBattleMembers(); for (var i = 1; i < max; i++) { this._data.push(new Game_Follower(i)); } }; })(); //===============================================================================
892 Bytes, 下载次数: 320
//============================================================================== // MrTS_BattleCharacterLimit.js //============================================================================== /*: * @plugindesc Changes character placement for battles. * @author Mr. Trivel * * @param Max Characters * @desc 设置人物数量 * @default 4 * * @param Characters Per Row * @desc 设置人物数量 * @default 4 * * @param Offset * @desc Y坐标 * @default 120 * * @param Vertical Offset * @desc X坐标 * @default 360 * * @param Lower Index * @desc How further each character below is * @default 48 * * @param Forward Offset * @desc Move the rows by an offset for each row in battle * @default 100 * * @param Row Spacing * @desc Space between rows * @default 100 * * @param Vertical Chara Spacing * @desc Space between rows * @default 54 * * @help Version 1.1 */ (function() { var parameters = PluginManager.parameters('人物战斗队伍'); var maxCharacters = Number(parameters['Max Characters'] || 5); var charasPerRow = Number(parameters['Characters Per Row'] || 3); var rightOffset = Number(parameters['Offset'] || 120); var topOffset = Number(parameters['Vertical Offset'] || 360); var lowerCharaIndex = Number(parameters['Lower Index'] || 48); var forwardIndex = Number(parameters['Forward Offset'] || 100); var rowSpacing = Number(parameters['Row Spacing'] || 100); var charaVerticalSpacing = Number(parameters['Vertical Chara Spacing'] || 54); Game_Party.prototype.maxBattleMembers = function() { return maxCharacters; }; Sprite_Actor.prototype.setActorHome = function(index) { var c = Math.floor(index/charasPerRow); var x = (Graphics.boxWidth - rightOffset) - forwardIndex * Math.floor($gameParty.battleMembers().length/charasPerRow) + lowerCharaIndex * (index % charasPerRow) + rowSpacing * c; var y = topOffset + (index%charasPerRow) * charaVerticalSpacing; this.setHome(x, y); }; })();
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |