| 赞 | 73 |
| VIP | |
| 好人卡 | |
| 积分 | 191 |
| 经验 | |
| 最后登录 | 2026-11-18 |
| 在线时间 | 7500 小时 |
职业の水客
- 梦石
- 2
- 星屑
- 17082
- 在线时间
- 7500 小时
- 注册时间
- 2010-6-16
- 回帖
- 3466
   
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
使用相关以及授权说明原创插件,用于本工作室一商业游戏内(已贩卖)
目前已卖了2个月,所以这个脚本干脆拿出来给各种朋友使用,有以下规定:
1·允许随意修改插件内容
2·修改插件内容后请保留作者信息
3·可以用于任何游戏
4·使用或修改本插件不需要授权
5·使用本插件请声明出自【赵氏面馆】
6·修改插件可以自由署名,但需保留第一作者信息~
本插件只适用于单主角显示,如果想要多人物就需要自己改了
支持多角色显示!感谢夏末渐离同学为此插件进行了拓展!
具体更新请看9L
插件不更新,不维护,不修BUG,不提供指导方法,不要问为啥用不了,如果出错可能是有BUG了,因为脚本是自用的,如有问题请自行找人解决
还有界面不够好看的 请自行找人修改插件 本人不提供任何帮助
使用方法
0·把插件放进js\plugins
1·在img目录下建立player文件夹
2·人物立绘名称 player
3·人物装备部件名称 clothes_X 这里的X是指装备设定的ID
4·补充看最下面图
5·补充图片素材以供测试使用
插件信息 /*:
* @plugindesc 装备界面立绘纸娃娃
* @author Joritian
*
* @param 第一层装备类型ID
* @default 1
*
* @param 第二层装备类型ID
* @default 2
*
* @param 第三层装备类型ID
* @default 3
*
* @param 第四层装备类型ID
* @default 4
*
* @help 立绘图片位于"img/player""人物图片文件名为"player.png",若装备ID为 XXX 则对应的文件应命名为"clothes_XXX.png".
*/
- //=============================================================================
- /*:
- * @plugindesc 装备界面立绘纸娃娃
- * @author Joritian
- *
- * @param 第一层装备类型ID
- * @default 1
- *
- * @param 第二层装备类型ID
- * @default 2
- *
- * @param 第三层装备类型ID
- * @default 3
- *
- * @param 第四层装备类型ID
- * @default 4
- *
- * @help 立绘图片位于"img/player""人物图片文件名为"player.png",若装备ID为 XXX 则对应的文件应命名为"clothes_XXX.png".
- */
- //=============================================================================
- var parameters = PluginManager.parameters('Scene_Equip');
- var equipZ = [
- Number(parameters['第四层装备类型ID'] || 4),
- Number(parameters['第三层装备类型ID'] || 3),
- Number(parameters['第二层装备类型ID'] || 2),
- Number(parameters['第一层装备类型ID'] || 1),
- ];
- Scene_Equip.prototype.create = function() {
- Scene_MenuBase.prototype.create.call(this);
-
- this.createPlayerPicture();
-
- this.createHelpWindow();
- this.createStatusWindow();
- this.createCommandWindow();
- this.createSlotWindow();
- this.createItemWindow();
- this.refreshActor();
- };
- Scene_Equip.prototype.createStatusWindow = function() {
- this._statusWindow = new Window_EquipStatus(180, this._helpWindow.height);
- this.addWindow(this._statusWindow);
- };
- Scene_Equip.prototype.createCommandWindow = function() {
- var wx = this._statusWindow.width + 180;
- var wy = this._helpWindow.height;
- var ww = Graphics.boxWidth - this._statusWindow.width - 180;
- this._commandWindow = new Window_EquipCommand(wx, wy, ww);
- this._commandWindow.setHelpWindow(this._helpWindow);
- this._commandWindow.setHandler('equip', this.commandEquip.bind(this));
- this._commandWindow.setHandler('optimize', this.commandOptimize.bind(this));
- this._commandWindow.setHandler('clear', this.commandClear.bind(this));
- this._commandWindow.setHandler('cancel', this.popScene.bind(this));
- this._commandWindow.setHandler('pagedown', this.nextActor.bind(this));
- this._commandWindow.setHandler('pageup', this.previousActor.bind(this));
- this.addWindow(this._commandWindow);
- };
- Scene_Equip.prototype.createSlotWindow = function() {
- var wx = this._statusWindow.width + 180;
- var wy = this._commandWindow.y + this._commandWindow.height;
- var ww = Graphics.boxWidth - this._statusWindow.width - 180;
- var wh = this._statusWindow.height - this._commandWindow.height;
- this._slotWindow = new Window_EquipSlot(wx, wy, ww, wh);
- this._slotWindow.setHelpWindow(this._helpWindow);
- this._slotWindow.setStatusWindow(this._statusWindow);
- this._slotWindow.setHandler('ok', this.onSlotOk.bind(this));
- this._slotWindow.setHandler('cancel', this.onSlotCancel.bind(this));
- this.addWindow(this._slotWindow);
- };
- Scene_Equip.prototype.createItemWindow = function() {
- var wx = 180;
- var wy = this._statusWindow.y + this._statusWindow.height;
- var ww = Graphics.boxWidth - 180;
- var wh = Graphics.boxHeight - wy;
- this._itemWindow = new Window_EquipItem(wx, wy, ww, wh);
- this._itemWindow.setHelpWindow(this._helpWindow);
- this._itemWindow.setStatusWindow(this._statusWindow);
- this._itemWindow.setHandler('ok', this.onItemOk.bind(this));
- this._itemWindow.setHandler('cancel', this.onItemCancel.bind(this));
- this._slotWindow.setItemWindow(this._itemWindow);
- this.addWindow(this._itemWindow);
- };
- Scene_Equip.prototype.commandOptimize = function() {
- SoundManager.playEquip();
- this.actor().optimizeEquipments();
- this._statusWindow.refresh();
- this._slotWindow.refresh();
- this._commandWindow.activate();
- this.updateEquipPictrues();
- };
- Scene_Equip.prototype.commandClear = function() {
- SoundManager.playEquip();
- this.actor().clearEquipments();
- this._statusWindow.refresh();
- this._slotWindow.refresh();
- this._commandWindow.activate();
- this.updateEquipPictrues();
- };
- Scene_Equip.prototype.onItemOk = function() {
- SoundManager.playEquip();
- this.actor().changeEquip(this._slotWindow.index(), this._itemWindow.item());
- this._slotWindow.activate();
- this._slotWindow.refresh();
- this._itemWindow.deselect();
- this._itemWindow.refresh();
- this._statusWindow.refresh();
- this.updateEquipPictrues();
- };
- // TO DO
- Scene_Equip.prototype.createPlayerPicture = function() {
- this._playerPicture = new Sprite(Bitmap.load("img/player/player.png"));
- this._playerPicture.move(30, 150);
-
- this._equipPictrues = new Array();
-
- this.addChild(this._playerPicture);
-
- for(var i = 0; i < 4; i++)
- {
- this._equipPictrues[i] = new Sprite();
- this._equipPictrues[i].move(30, 150);
- this.addChild(this._equipPictrues[i]);
- }
-
- this.updateEquipPictrues();
- }
- Scene_Equip.prototype.updateEquipPictrues = function() {
-
- var playerEquips = $gameActors.actor(1).armors();
-
- for(var t = 0; t < 4; t++) {
- for(var i = 0; i < 4; i++) {
- if (playerEquips[i]) {
- if (equipZ[t] == playerEquips[i].etypeId) {
- this._equipPictrues[t].bitmap = Bitmap.load("img/player/clothes_" + playerEquips[i].id + ".png");
- break;
- }
- } else {
- this._equipPictrues[t].bitmap = ImageManager.loadEmptyBitmap();
- }
- this._equipPictrues[t].update();
- }
- }
- }
复制代码
素材(禁止任何途径的使用):
player.zip
(214.91 KB, 下载次数: 577)
相关图片:
穿着:
穿着叠加:
插件设定:
设定类型:
|
评分
-
查看全部评分
|