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

Project1

 找回密码
 注册会员
搜索

KRZ小插件合集

查看数: 9879 | 评论数: 44 | 收藏 27
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2022-9-3 20:45

正文摘要:

本帖最后由 KRZOKUHD 于 2024-5-6 17:32 编辑 No。1 滚轮式标题选项 置于插件列表最下方 用notepad等打开插件后修改变量(懒得做选项了) PS: 现在这个可以用滚轮和上下切换选项,直接鼠标左键点肯定是给他关 ...

回复

KRZOKUHD 发表于 3 天前
顶一下,17楼的附加伤害插件更新了
搁浅的鲸鱼 发表于 2024-5-8 16:45:46
大佬写的插件很棒,前来捧场
KRZOKUHD 发表于 2024-5-6 17:32:04
根据变量修改物品、装备价格

* 如题所示,在物品、武器、防具备注上
*  <PRICEVAR: 变量id> 修改物品价格为 变量id
*
*   以下需要yep的商店核心
*  <SELLPRICEVAR: 变量id> 修改物品卖出价格为 变量id
*  
*  备注:
*   默认价格更新在地图加载后、打开商店界面前,只是修改变量不会自动刷新,
*
*  推荐修改变量后需要使用脚本:
*   DataManager.processcustompriceNotetags();
*  来手动更新一下价格。
*
*  目前仅做了默认的金币价格,没有做多货币相关支持。

(多货币内容太多了不想写)

krz_customprice.7z

1.04 KB, 下载次数: 1

弈缘如梦 发表于 2024-2-23 22:26:06
嘿嘿 烤乳猪大佬厉害  插件我就抱走了
KRZOKUHD 发表于 2024-2-19 19:55:05
有人问yep的信息核心自动换行的事
这个修改改了单词换行(drill翻译的那个不对,那个就是普通的是否自动换行)

把这一段放到插件里
Yanfly.RegExp = new RegExp("[\u4E00-\u9FA5]+");
function checkStringIsChinese(str) {
  var pattern = Yanfly.RegExp;
  if (pattern.test(str)) {
    return true;
  }
  return false;
}


然后把这个两个函数覆盖成这样
Yanfly.Message.Window_Base_processNormalCharacter =
    Window_Base.prototype.processNormalCharacter;
Window_Base.prototype.processNormalCharacter = function(textState) {
        var textState2 = textState;
    if (this.checkWordWrap(textState2)) return this.processNewLine(textState2);
    Yanfly.Message.Window_Base_processNormalCharacter.call(this, textState);
};

Window_Base.prototype.checkWordWrap = function(textState) {
    if (!textState) return false;
    if (!this._wordWrap) return false;
    if (textState.text[textState.index] === ' ' || checkStringIsChinese(textState.text[textState.index])) {
      var nextSpace = textState.text.indexOf(',', textState.index + 1);
        nextSpace = Math.min(nextSpace,textState.text.indexOf(',', textState.index + 1));
        nextSpace = Math.min(nextSpace,textState.text.indexOf('。', textState.index + 1));
        nextSpace = Math.min(nextSpace,textState.text.indexOf(' ', textState.index + 1));                
      var nextBreak = textState.text.indexOf('\n', textState.index + 1);
      if (nextSpace < 0) nextSpace = textState.text.length + 1;
      if (nextBreak > 0) nextSpace = Math.min(nextSpace, nextBreak);
          nextSpace = textState.index+1;
if(        !checkStringIsChinese(textState.text[textState.index+1]) ) nextSpace = textState.index+3;
      var word = textState.text.substring(textState.index, nextSpace);
      var size = this.textWidthExCheck(word);
    }
    return (size + textState.x > this.wordwrapWidth());
};

Window_Base.prototype.wordwrapWidth = function(){
  return this.contents.width-48;////-48根据需求修改,修改的换行宽度,一般-48挺好的
};

KRZOKUHD 发表于 2024-1-1 15:30:58
掩护者进行反击、反射判定(测试中)

默认mv触发掩护时掩护者直接挨打,不计算反击、反射,现在加上了,放在插件列表最上方(测试中)

krz_substitutecounter.7z

608 Bytes, 下载次数: 3

KRZOKUHD 发表于 2023-12-22 12:31:45
伤害根据属性修改颜色插件

根据当前伤害第一个元素变颜色,具体颜色是rgb+透明度,需要手动在插件内修改

krz_damagecolor.zip

1.06 KB, 下载次数: 27

KRZOKUHD 发表于 2023-12-14 10:56:54
本帖最后由 KRZOKUHD 于 2023-12-14 10:58 编辑

读取最近存档进行测试战斗

https://rpg.blue/thread-483435-1-1.html
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

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

GMT+8, 2024-6-19 11:51

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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