设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2938|回复: 4
打印 上一主题 下一主题

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

[复制链接]

Lv1.梦旅人

梦石
0
星屑
110
在线时间
85 小时
注册时间
2010-8-19
帖子
137
跳转到指定楼层
1
发表于 2020-2-13 22:44:02 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
如何在状态界面添加其他属性,比如暴击率啊,命中啊,回避率 药理啊,这种属性,求给个方法思路,感谢

Lv5.捕梦者

梦石
24
星屑
10260
在线时间
1631 小时
注册时间
2010-12-21
帖子
334

极短25获奖极短23获奖极短22参与

2
发表于 2020-2-13 23:47:24 | 只看该作者
是这样么?




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

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

评分

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

查看全部评分

回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2385
在线时间
912 小时
注册时间
2014-10-14
帖子
1331

开拓者

3
发表于 2020-2-14 04:42:06 | 只看该作者
本帖最后由 j296196585 于 2020-2-14 04:59 编辑

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

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


360截图20200214050151825.jpg (257.16 KB, 下载次数: 2)

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

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2385
在线时间
912 小时
注册时间
2014-10-14
帖子
1331

开拓者

4
发表于 2020-2-14 04:42:52 | 只看该作者
本帖最后由 j296196585 于 2020-2-14 04:55 编辑

第一个

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

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


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


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


JAVASCRIPT 代码复制
  1. //=============================================================================       
  2.                 this.contents.fontSize = 18;
  3.                    this.changeTextColor('rgba(0,255,0,255)');       
  4.                 this.drawText("命中率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY - 52,100,"left");
  5.                 this.drawText("闪避率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY - 27,100,"left");
  6.                 this.drawText("暴击率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY + 0,100,"left");
  7.                 this.drawText("物理反击率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY + 23,100,"left");
  8.                 this.drawText("法术反击率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY + 48,100,"left");
  9.                 this.drawText("生命回复率:", Moghunter.scStatus_StatesX + 220, Moghunter.scStatus_StatesY + 72,100,"left");
  10.                 this.changeTextColor(this.normalColor());
  11.                 this.drawText(this._actor.hit * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY - 52,40,"right");
  12.                 this.drawText(this._actor.eva * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY - 27,40,"right");
  13.                 this.drawText(this._actor.cri * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY + 0,40,"right");
  14.                 this.drawText(this._actor.cnt * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY + 23,40,"right");
  15.                 this.drawText(this._actor.mrf * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY + 48,40,"right");
  16.                 this.drawText(this._actor.hrg * 10 + "%", Moghunter.scStatus_StatesX + 320, Moghunter.scStatus_StatesY + 72,40,"right");
  17.  
  18. //=============================================================================       
  19.                    this.changeTextColor('rgba(0,255,0,255)');       
  20.                 this.drawText("治疗效果:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY - 52,100,"left");
  21.                 this.drawText("法术闪避率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY - 27,100,"left");
  22.                 this.drawText("暴击闪避率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY - 0,100,"left");
  23.                 this.drawText("受到攻击率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY + 23,100,"left");
  24.                 this.drawText("怒气回复率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY + 48,100,"left");
  25.                 this.drawText("法术回复率:", Moghunter.scStatus_StatesX + 370, Moghunter.scStatus_StatesY + 72,100,"left");
  26.                 this.changeTextColor(this.normalColor());
  27.                 this.drawText(this._actor.rec * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY - 52,40,"right");
  28.                 this.drawText(this._actor.mev * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY - 27,40,"right");
  29.                 this.drawText(this._actor.cev * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY - 0,40,"right");
  30.                 this.drawText(this._actor.tgr * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY + 23,40,"right");
  31.                 this.drawText(this._actor.trg * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY + 48,40,"right");
  32.                 this.drawText(this._actor.mrg * 10 + "%", Moghunter.scStatus_StatesX + 470, Moghunter.scStatus_StatesY + 72,40,"right");
  33. //=============================================================================

360截图20200214044504339.jpg (175.75 KB, 下载次数: 2)

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

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
2385
在线时间
912 小时
注册时间
2014-10-14
帖子
1331

开拓者

5
发表于 2020-2-14 04:53:04 | 只看该作者
这是第二个 如果你没有使用MOG系列


rpg_windows

Window_EquipStatus.prototype.refresh 2282行添加

一些代码即可
JAVASCRIPT 代码复制
  1. //=====================生命==============================================         
  2.            this.changeTextColor('rgba(0,255,0,255)');
  3.         this.drawText('生命', x +335, y +180, 200, 'right');                //生命值
  4.            this.changeTextColor('rgba(255,255,255,255)');               
  5.         this.drawText(this._actor.mhp+ '', x+ 560, y +180, 100, 'right');        //生命值
  6. //===========================================================================       
  7. //=====================魔力==============================================         
  8.            this.changeTextColor('rgba(0,255,0,255)');
  9.         this.drawText('魔力', x +335, y +215, 200, 'right');                //闪避率的为难
  10.            this.changeTextColor('rgba(255,255,255,255)');
  11.         this.drawText(this._actor.mmp+ '', x+ 560, y +215, 100, 'right');        //闪避率数值
  12. //===========================================================================         
  13. //=====================生命回复==============================================         
  14.            this.changeTextColor('rgba(0,255,0,255)');
  15.         this.drawText('生命回复', x-93, y +245, 200, 'right');                //闪避率的为难
  16.            this.changeTextColor('rgba(255,255,255,255)');
  17.         this.drawText(this._actor.tgr*100+'%', x+ 0, y +245, 200, 'right');        //闪避率数值
  18. //===========================================================================
  19. //=====================魔力回复==============================================               
  20.            this.changeTextColor('rgba(0,255,0,255)');
  21.         this.drawText('魔力回复', x-93, y +280, 200, 'right');                //爆击的为难
  22.            this.changeTextColor('rgba(255,255,255,255)');
  23.         this.drawText(this._actor.cri*100+'%', x+ 0, y +280, 200, 'right');        //爆击数值       
  24. //===========================================================================       
  25.            this.changeTextColor('rgba(0,255,0,255)');
  26.         this.drawText('命中', x-140, y +315, 200, 'right');                //命中的为难
  27.            this.changeTextColor('rgba(255,255,255,255)');
  28.         this.drawText(this._actor.hit*100+'%', x+ 0, y +315, 200, 'right');        //命中数值

360截图20200214045439243.jpg (171.88 KB, 下载次数: 2)

360截图20200214045439243.jpg

评分

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

查看全部评分

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

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-4-20 07:11

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表