查看: 3374|回复: 4

[有事请教] 如何在状态界面添加其他属性

[复制链接]
梦石
0
星屑
110
在线时间
85 小时
注册时间
2010-8-19
回帖
98
发表于 2020-2-13 22:44:02 | 显示全部楼层 |阅读模式

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

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

×
如何在状态界面添加其他属性,比如暴击率啊,命中啊,回避率 药理啊,这种属性,求给个方法思路,感谢
梦石
35
星屑
12750
在线时间
2173 小时
注册时间
2010-12-21
回帖
409

超评测优秀极短28评委极短27评委RM创作大赛01获奖者极短25获奖极短23获奖极短22参与

发表于 2020-2-13 23:47:24 | 显示全部楼层
是这样么?

状态-属性

状态-属性



如果是的话,用yanfly的一个插件即可:YEP_StatusMenuCore

(每一条属性都可以自己命名,我上面有些默认英文的懒得改了)

评分

参与人数 1赞 +1 收起 理由
j296196585 + 1 大佬

查看全部评分

回复

使用道具 举报

梦石
0
星屑
2457
在线时间
912 小时
注册时间
2014-10-14
回帖
1155

开拓者

发表于 2020-2-14 04:42:06 | 显示全部楼层
本帖最后由 j296196585 于 2020-2-14 04:59 编辑

https://rpg.blue/forum.php?mod=viewthread&tid=390582

上面链接是一个远古大佬的教程 我也是按照大佬的思路走过来的


360截图20200214050151825.jpg
------落尽红樱君不见,轻绘梨花泪沾衣。~~~
回复

使用道具 举报

梦石
0
星屑
2457
在线时间
912 小时
注册时间
2014-10-14
回帖
1155

开拓者

发表于 2020-2-14 04:42:52 | 显示全部楼层
本帖最后由 j296196585 于 2020-2-14 04:55 编辑

第一个

//=============================================================================
// ** Window Status
//=============================================================================

//==============================
// * refresh        1400多行哪里添加即可


//==============================


这是在MOG的基础上修改的
原作者是:凡子


[pre lang="javascript"]//=============================================================================       
                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");
//=============================================================================                        [/pre]
360截图20200214044504339.jpg
------落尽红樱君不见,轻绘梨花泪沾衣。~~~
回复

使用道具 举报

梦石
0
星屑
2457
在线时间
912 小时
注册时间
2014-10-14
回帖
1155

开拓者

发表于 2020-2-14 04:53:04 | 显示全部楼层
这是第二个 如果你没有使用MOG系列


在rpg_windows

Window_EquipStatus.prototype.refresh 2282行添加

一些代码即可
[pre lang="javascript"]//=====================生命==============================================         
           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');        //命中数值        [/pre]
360截图20200214045439243.jpg

评分

参与人数 1赞 +1 收起 理由
candlesor + 1 这才是大佬

查看全部评分

------落尽红樱君不见,轻绘梨花泪沾衣。~~~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部