QQ截图20240310095658.png (49.21 KB, 下载次数: 16)
shiroin 发表于 2024-3-10 09:57
你说的这个是转义字符,直接把n替换为你想要输入的变量序号就行了
比如\V[110],就是显示110号变量的值
除 ...
Window_Base.prototype.convertEscapeCharacters = function(text) { text = text.replace(/\\/g, '\x1b'); text = text.replace(/\x1b\x1b/g, '\\'); text = text.replace(/\x1bV\[(\d+)\]/gi, function() { return $gameVariables.value(parseInt(arguments[1])); }.bind(this)); text = text.replace(/\x1bV\[(\d+)\]/gi, function() { return $gameVariables.value(parseInt(arguments[1])); }.bind(this)); text = text.replace(/\x1bN\[(\d+)\]/gi, function() { return this.actorName(parseInt(arguments[1])); }.bind(this)); text = text.replace(/\x1bP\[(\d+)\]/gi, function() { return this.partyMemberName(parseInt(arguments[1])); }.bind(this)); text = text.replace(/\x1bG/gi, TextManager.currencyUnit); return text; };
Arrose 发表于 2024-3-10 15:29
可能是这个
Window_Base.prototype.convertEscapeCharacters = function(text) {
text = text.replace( ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |