Project1
标题: 如何在状态界面添加其他属性 [打印本页]
作者: 六翼恶魔 时间: 2020-2-13 22:44
标题: 如何在状态界面添加其他属性
如何在状态界面添加其他属性,比如暴击率啊,命中啊,回避率 药理啊,这种属性,求给个方法思路,感谢
作者: candlesor 时间: 2020-2-13 23:47
是这样么?
如果是的话,用yanfly的一个插件即可:YEP_StatusMenuCore
(每一条属性都可以自己命名,我上面有些默认英文的懒得改了)
作者: j296196585 时间: 2020-2-14 04:42
本帖最后由 j296196585 于 2020-2-14 04:59 编辑
https://rpg.blue/forum.php?mod=viewthread&tid=390582
上面链接是一个远古大佬的教程 我也是按照大佬的思路走过来的
-
360截图20200214050151825.jpg
(257.16 KB, 下载次数: 2)
作者: j296196585 时间: 2020-2-14 04:42
本帖最后由 j296196585 于 2020-2-14 04:55 编辑
第一个
//=============================================================================
// ** Window Status
//=============================================================================
//==============================
// * refresh 1400多行哪里添加即可
//==============================
这是在MOG的基础上修改的
原作者是:凡子
//=============================================================================
this.contents.fontSize = 18;
this.changeTextColor('rgba(0,255,0,255)');
this.drawText("命中率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY - 52,100,"left");
this.drawText("闪避率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY - 27,100,"left");
this.drawText("暴击率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY + 0,100,"left");
this.drawText("物理反击率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY + 23,100,"left");
this.drawText("法术反击率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY + 48,100,"left");
this.drawText("生命回复率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY + 72,100,"left");
this.changeTextColor(this.normalColor());
this.drawText(this._actor.hit * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY - 52,40,"right");
this.drawText(this._actor.eva * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY - 27,40,"right");
this.drawText(this._actor.cri * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY + 0,40,"right");
this.drawText(this._actor.cnt * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY + 23,40,"right");
this.drawText(this._actor.mrf * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY + 48,40,"right");
this.drawText(this._actor.hrg * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY + 72,40,"right");
//=============================================================================
this.changeTextColor('rgba(0,255,0,255)');
this.drawText("治疗效果:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY - 52,100,"left");
this.drawText("法术闪避率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY - 27,100,"left");
this.drawText("暴击闪避率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY - 0,100,"left");
this.drawText("受到攻击率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY + 23,100,"left");
this.drawText("怒气回复率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY + 48,100,"left");
this.drawText("法术回复率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY + 72,100,"left");
this.changeTextColor(this.normalColor());
this.drawText(this._actor.rec * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY - 52,40,"right");
this.drawText(this._actor.mev * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY - 27,40,"right");
this.drawText(this._actor.cev * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY - 0,40,"right");
this.drawText(this._actor.tgr * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY + 23,40,"right");
this.drawText(this._actor.trg * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY + 48,40,"right");
this.drawText(this._actor.mrg * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY + 72,40,"right");
//=============================================================================
//=============================================================================
this.contents.fontSize = 18;
this.changeTextColor('rgba(0,255,0,255)');
this.drawText("命中率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY - 52,100,"left");
this.drawText("闪避率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY - 27,100,"left");
this.drawText("暴击率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY + 0,100,"left");
this.drawText("物理反击率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY + 23,100,"left");
this.drawText("法术反击率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY + 48,100,"left");
this.drawText("生命回复率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY + 72,100,"left");
this.changeTextColor(this.normalColor());
this.drawText(this._actor.hit * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY - 52,40,"right");
this.drawText(this._actor.eva * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY - 27,40,"right");
this.drawText(this._actor.cri * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY + 0,40,"right");
this.drawText(this._actor.cnt * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY + 23,40,"right");
this.drawText(this._actor.mrf * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY + 48,40,"right");
this.drawText(this._actor.hrg * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY + 72,40,"right");
//=============================================================================
this.changeTextColor('rgba(0,255,0,255)');
this.drawText("治疗效果:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY - 52,100,"left");
this.drawText("法术闪避率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY - 27,100,"left");
this.drawText("暴击闪避率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY - 0,100,"left");
this.drawText("受到攻击率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY + 23,100,"left");
this.drawText("怒气回复率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY + 48,100,"left");
this.drawText("法术回复率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY + 72,100,"left");
this.changeTextColor(this.normalColor());
this.drawText(this._actor.rec * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY - 52,40,"right");
this.drawText(this._actor.mev * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY - 27,40,"right");
this.drawText(this._actor.cev * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY - 0,40,"right");
this.drawText(this._actor.tgr * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY + 23,40,"right");
this.drawText(this._actor.trg * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY + 48,40,"right");
this.drawText(this._actor.mrg * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY + 72,40,"right");
//=============================================================================
-
360截图20200214044504339.jpg
(175.75 KB, 下载次数: 3)
作者: j296196585 时间: 2020-2-14 04:53
这是第二个 如果你没有使用MOG系列
在rpg_windows
Window_EquipStatus.prototype.refresh 2282行添加
一些代码即可
//=====================生命==============================================
this.changeTextColor('rgba(0,255,0,255)');
this.drawText('生命', x +335, y +180, 200, 'right'); //生命值
this.changeTextColor('rgba(255,255,255,255)');
this.drawText(this._actor.mhp+ '', x+ 560, y +180, 100, 'right'); //生命值
//===========================================================================
//=====================魔力==============================================
this.changeTextColor('rgba(0,255,0,255)');
this.drawText('魔力', x +335, y +215, 200, 'right'); //闪避率的为难
this.changeTextColor('rgba(255,255,255,255)');
this.drawText(this._actor.mmp+ '', x+ 560, y +215, 100, 'right'); //闪避率数值
//===========================================================================
//=====================生命回复==============================================
this.changeTextColor('rgba(0,255,0,255)');
this.drawText('生命回复', x-93, y +245, 200, 'right'); //闪避率的为难
this.changeTextColor('rgba(255,255,255,255)');
this.drawText(this._actor.tgr*100+'%', x+ 0, y +245, 200, 'right'); //闪避率数值
//===========================================================================
//=====================魔力回复==============================================
this.changeTextColor('rgba(0,255,0,255)');
this.drawText('魔力回复', x-93, y +280, 200, 'right'); //爆击的为难
this.changeTextColor('rgba(255,255,255,255)');
this.drawText(this._actor.cri*100+'%', x+ 0, y +280, 200, 'right'); //爆击数值
//===========================================================================
this.changeTextColor('rgba(0,255,0,255)');
this.drawText('命中', x-140, y +315, 200, 'right'); //命中的为难
this.changeTextColor('rgba(255,255,255,255)');
this.drawText(this._actor.hit*100+'%', x+ 0, y +315, 200, 'right'); //命中数值
//=====================生命==============================================
this.changeTextColor('rgba(0,255,0,255)');
this.drawText('生命', x +335, y +180, 200, 'right'); //生命值
this.changeTextColor('rgba(255,255,255,255)');
this.drawText(this._actor.mhp+ '', x+ 560, y +180, 100, 'right'); //生命值
//===========================================================================
//=====================魔力==============================================
this.changeTextColor('rgba(0,255,0,255)');
this.drawText('魔力', x +335, y +215, 200, 'right'); //闪避率的为难
this.changeTextColor('rgba(255,255,255,255)');
this.drawText(this._actor.mmp+ '', x+ 560, y +215, 100, 'right'); //闪避率数值
//===========================================================================
//=====================生命回复==============================================
this.changeTextColor('rgba(0,255,0,255)');
this.drawText('生命回复', x-93, y +245, 200, 'right'); //闪避率的为难
this.changeTextColor('rgba(255,255,255,255)');
this.drawText(this._actor.tgr*100+'%', x+ 0, y +245, 200, 'right'); //闪避率数值
//===========================================================================
//=====================魔力回复==============================================
this.changeTextColor('rgba(0,255,0,255)');
this.drawText('魔力回复', x-93, y +280, 200, 'right'); //爆击的为难
this.changeTextColor('rgba(255,255,255,255)');
this.drawText(this._actor.cri*100+'%', x+ 0, y +280, 200, 'right'); //爆击数值
//===========================================================================
this.changeTextColor('rgba(0,255,0,255)');
this.drawText('命中', x-140, y +315, 200, 'right'); //命中的为难
this.changeTextColor('rgba(255,255,255,255)');
this.drawText(this._actor.hit*100+'%', x+ 0, y +315, 200, 'right'); //命中数值
-
360截图20200214045439243.jpg
(171.88 KB, 下载次数: 3)
欢迎光临 Project1 (https://rpg.blue/) |
Powered by Discuz! X3.1 |