Project1

标题: 这里新人,名称输入处理怎么弄? [打印本页]

作者: 梦无瑕    时间: 2013-10-8 22:28
标题: 这里新人,名称输入处理怎么弄?
我设定的正确名称是英文,但是在试玩时发现输入名称只能选择平假名和片假名,怎么办?
作者: woyaozhuce    时间: 2013-10-8 23:11
打开脚本编辑器 -- Window_NameInput -- 修改里面的平假名和片假名为英文字母即可
作者: 娜茲玲    时间: 2013-10-9 13:43
脚本编辑器内Window_NameInput内
CHARACTER_TABLE =
  [
    "あ","い","う","え","お",
    "か","き","く","け","こ",
    "さ","し","す","せ","そ",
    "た","ち","つ","て","と",
    "な","に","ぬ","ね","の",
    "は","ひ","ふ","へ","ほ",
    "ま","み","む","め","も",
    "や", "" ,"ゆ", "" ,"よ",
    "ら","り","る","れ","ろ",
    "わ", "" ,"を", "" ,"ん",
    "が","ぎ","ぐ","げ","ご",
    "ざ","じ","ず","ぜ","ぞ",
    "だ","ぢ","づ","で","ど",
    "ば","び","ぶ","べ","ぼ",
    "ぱ","ぴ","ぷ","ぺ","ぽ",
    "ゃ","ゅ","ょ","っ","ゎ",
    "ぁ","ぃ","ぅ","ぇ","ぉ",
    "ー","・", "" , "" , "" ,
    "ア","イ","ウ","エ","オ",
    "カ","キ","ク","ケ","コ",
    "サ","シ","ス","セ","ソ",
    "タ","チ","ツ","テ","ト",
    "ナ","ニ","ヌ","ネ","ノ",
    "ハ","ヒ","フ","ヘ","ホ",
    "マ","ミ","ム","メ","モ",
    "ヤ", "" ,"ユ", "" ,"ヨ",
    "ラ","リ","ル","レ","ロ",
    "ワ", "" ,"ヲ", "" ,"ン",
    "ガ","ギ","グ","ゲ","ゴ",
    "ザ","ジ","ズ","ゼ","ゾ",
    "ダ","ヂ","ヅ","デ","ド",
    "バ","ビ","ブ","ベ","ボ",
    "パ","ピ","プ","ペ","ポ",
    "ャ","ュ","ョ","ッ","ヮ",
    "ァ","ィ","ゥ","ェ","ォ",
    "ー","・","ヴ", "" , "" ,
  ]
请改为英文,如要继续添加。
请添加外来脚本
作者: 梦无瑕    时间: 2013-10-9 19:23
woyaozhuce 发表于 2013-10-8 23:11
打开脚本编辑器 -- Window_NameInput -- 修改里面的平假名和片假名为英文字母即可 ...

谢谢前辈指导
作者: 梦无瑕    时间: 2013-10-9 19:24
娜茲玲 发表于 2013-10-9 13:43
脚本编辑器内Window_NameInput内
CHARACTER_TABLE =
  [

呜哇谢谢前辈
作者: 梦无瑕    时间: 2013-10-9 19:56
woyaozhuce 发表于 2013-10-8 23:11
打开脚本编辑器 -- Window_NameInput -- 修改里面的平假名和片假名为英文字母即可 ...

嘤嘤嘤QAQ修改之后试玩时显示第41行self.contents.draw_text(x, y, 28, 32, CHARACTER_TABLE, 1)出错了怎么办?
作者: 梦无瑕    时间: 2013-10-9 19:58
改成了这个
class Window_NameInput < Window_Base
  CHARACTER_TABLE =
  [
    "A","B","C","D","E",
    "F","G","H","I","J",
    "K","L","M","N","O",
    "P","Q","R","S","T",
    "U","V","W","X","Y",
    "Z"
  ]

然后他就显示41行出错了……
      self.contents.draw_text(x, y, 28, 32, CHARACTER_TABLE[i], 1)
作者: RyanBern    时间: 2013-10-9 20:11
楼主不要这样改,不需要的字符不能删除,否则会导致数组越界。
CHARACTER_TABLE里面一共是180个字符,因此应该这样写。
CHARACTER_TABLE =
[
  "A","B","C","D","E",……
  "",""
]
注意空字符要用空引号""表示,不能删掉。
最终CHARACTER_TABLE数组里面应该是180对引号。
作者: 梦无瑕    时间: 2013-10-9 21:54
RyanBern 发表于 2013-10-9 20:11
楼主不要这样改,不需要的字符不能删除,否则会导致数组越界。
CHARACTER_TABLE里面一共是180个字符,因此 ...

谢谢前辈指导




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1