顶一下,17楼的附加伤害插件更新了 |
大佬写的插件很棒,前来捧场![]() |
根据变量修改物品、装备价格 * 如题所示,在物品、武器、防具备注上 * <PRICEVAR: 变量id> 修改物品价格为 变量id * * 以下需要yep的商店核心 * <SELLPRICEVAR: 变量id> 修改物品卖出价格为 变量id * * 备注: * 默认价格更新在地图加载后、打开商店界面前,只是修改变量不会自动刷新, * * 推荐修改变量后需要使用脚本: * DataManager.processcustompriceNotetags(); * 来手动更新一下价格。 * * 目前仅做了默认的金币价格,没有做多货币相关支持。 (多货币内容太多了不想写) |
1.04 KB, 下载次数: 1
嘿嘿 烤乳猪大佬厉害 插件我就抱走了 |
有人问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挺好的 }; |
掩护者进行反击、反射判定(测试中) 默认mv触发掩护时掩护者直接挨打,不计算反击、反射,现在加上了,放在插件列表最上方(测试中) |
608 Bytes, 下载次数: 3
伤害根据属性修改颜色插件 根据当前伤害第一个元素变颜色,具体颜色是rgb+透明度,需要手动在插件内修改 |
1.06 KB, 下载次数: 27
本帖最后由 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.