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

Project1

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

[已经过期] 求教呼出对话框当有选择项的时候出现情况

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
14 小时
注册时间
2015-4-5
帖子
31
跳转到指定楼层
1
发表于 2015-6-4 16:07:25 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
呼出对话框当有选择项的时候出现最后一个选项不完整显示,要怎么解决
  1. #============================================================================
  2. # 66加强对话框Fuki对话框整合+附送功能
  3. # By whbm
  4. #============================================================================

  5. #   说明:
  6. #     这是一个整合了66加强对话框和Fuki对话框功能脚本,你可以靠改变开关来切换
  7. #     两个脚本。
  8.      
  9. #     附送功能:
  10. #     在对话中按enter键跳过打字效果

  11. #   33号开关控制对话框的切换:
  12. #     打开--使用66加强对话框
  13. #     关闭--使用Fuki对话框
  14. #   34号开关控制附送功能的打开与关闭:
  15. #     打开--使用附送功能
  16. #     关闭--不使用附送功能

  17. #============================================================================
  18. # 66加强对话框说明--66rpg
  19. #============================================================================

  20. #默认为一个字一个字的方式,如果需要一次全部显示,
  21. #请在游戏中使用脚本:$game_system.typing = true
  22.       
  23. #默认对话字没有声音,如果需要声音,
  24. #请在游戏中使用脚本:$game_system.soundname_on_speak = "这里输入文件名"
  25. #我唯一一个见过“胡乱配音”的游戏是天使帝国2代,该游戏说话的时候每个字符随机发一个外星语音

  26. # 其他在对话中可以使用的功能:
  27.   
  28. # \n[1]:显示1号角色的姓名

  29. # \name[李逍遥]:显示一个“李逍遥”方框,表示说话人姓名

  30. # \p[1]:对话框出现在1号事件的上方
  31. # \p[0]:主人公上方出现对话框
  32. #——————————————————使用\p功能后可以自动调整对话框大小

  33. # \\:显示"\"这个符号

  34. # \v[1] :显示变量1

  35. # \v[a1] :显示防具1

  36. # \v[w1] :显示武器1

  37. # \v[i1] :显示物品1

  38. # \v[s1] :显示特技1

  39. # \c[1-8]:更改颜色

  40. # \g:显示金钱窗口

  41. # \a[SE文件名]:对话的时候播放SE

  42. # \s[1-19]:更改弹字的速度

  43. # \.   :停顿一刹那(1、2帧)
  44. # \|   :停顿片刻(20帧)

  45. # \>   :文字不用打字方式
  46. # \<   :文字使用打字方式

  47. # \!   :等待玩家按回车再继续
  48. # \~   :文字直接消失

  49. # \I   :下一行从这个位置开始

  50. # \o[123]:文字透明度改为123,模拟将死之人(汗)

  51. # \h[12]:改用12号字

  52. # \b[50]:空50象素

  53. # \K[今天天气不错]:在出现“今天天气不错”这几个字的时候播放$game_system.soundname_on_speak设置的音效

  54. # \L[001]:在左边显示图片“Graphics/battlers/66rpg_001_h.png”
  55. # \R[001]:在右边显示图片“Graphics/battlers/66rpg_001_h.png”

  56. # \Lk:清除左边的图像
  57. # \Rk:清除右边的图像







  58. #============================================================================
  59. # Fuki对话框说明--bbschat
  60. #============================================================================
  61. #
  62. #    呼出对话框 ver. 1.31 By パラ犬(日)
  63. #  来自 http://rpg.para.s3p.net/
  64. #
  65. #  汉化修改 66RPG bbschat(2006.1.5)
  66. #    来自
  67. #
  68. #    ●准备工作-窗口Skin
  69. #
  70. #    首先,确认自己使用的对话框窗口Skin,(数据库-系统-窗口外观图形)
  71. #    然后根据该窗口Skin制作对话框尾部使用的两个箭头图形
  72. #    尾部箭头图形命名方式:“窗口skin名-top”,“窗口skin名-under”
  73. #    将该图形文件存放在“Graphics/Windowskins”文件夹下。
  74. #
  75. #    本演示游戏内置2套窗口和箭头图形,
  76. #    一套是游戏默认的“001-Blue01”,一套是定制的“fk”
  77. #    玩家可以根据自己的需要参照样本定制自己的呼出对话框窗口Skin。
  78. #
  79. #    ●呼出对话框使用方法
  80. #
  81. #    在事件命令行使用[脚本]将事件ID代入[$mes_id]
  82. #    该事件就可以使用呼出对话框了。
  83. #   (举例:$mes_id=4)
  84. #
  85. #    ID 代入 -1 表示玩家,代入 0 表示事件自身。
  86. #    代入 nil 或者 "" 则返回成通常的信息窗口。
  87. #    对话框的表示位置可以通过事件的“更改文章选项”来设定(上、中、下)。
  88. #    表示位置为“中央”的话,不管事件位置在哪里,对话框都将显示在画面中央。
  89. #
  90. #    ●角色名字窗口的使用文字的方法
  91. #
  92. #    在事件命令行使用[脚本]将文字列代入[$mes_name]
  93. #    对话框就会显示角色名字窗口
  94. #   (举例:$mes_name="阿尔西斯")
  95. #    代入 nil 或者 "" 则不显示角色名字窗口。
  96. #
  97. #    以上两个机能是独立的,所以可以单独使用
  98. #
  99. #   $mes_id=(ID) + $mes_name="名字"  :呼出对话框显示 + 角色名字窗口
  100. #   $mes_id=(ID) + $mes_name=""      :呼出对话框显示(没有角色名字)
  101. #   $mes_id=nil  + $mes_name="名字"  :默认信息窗口 + 角色名字窗口
  102. #   $mes_id=nil  + $mes_name=""      :默认信息窗口(没有角色名字)
  103. #
  104. #    ●角色名字窗口使用角色图片的方法(汉化特别追加功能,原脚本只能使用文字)
  105. #   
  106. #    如果能在对应文件夹中找到文件名和角色名字相同的图片,   
  107. #    则角色名字窗口显示角色头像图片,角色图片最好能包括角色的名字。
  108. #    默认头像图片保存目录为“Graphics/Heads/”,玩家可自行修改。
  109. #
  110. #    如果不想使用角色名字直接作为头像文件名。
  111. #    可以使用下面在 Game_Temp 类里增加的namebmp属性。
  112. #    重新设定角色名字与文件名的对应关系。
  113. #
  114. #    ●信息表示速度的变更方法
  115. #
  116. #    在事件命令行使用[脚本]将数值代入[$mes_speed]
  117. #    速度为 0 即瞬间显示全部信息,数字越大,信息表示速度越慢。
  118. #   (举例:$mes_speed=1)
  119. #
  120. #    ●其他设置
  121. #
  122. #    请参照下面的注释
  123. #
  124. #    补一句,用脚本chat(id,"名字")就相当于$mes_id=ID;$mes_name="名字"
  125. #==============================================================================

  126. module FUKI

  127. # 头像图片保存目录的设定
  128. HEAD_PIC_DIR = "Graphics/Heads/"

  129. # 是否显示尾部图标
  130. TAIL_SHOW = true

  131. # Skin的设定
  132. # 使用数据库默认窗口Skin情况下这里使用[""]
  133. FUKI_SKIN_NAME = ""   # 呼出对话框用Skin
  134. NAME_SKIN_NAME = ""   # 角色名字窗口用Skin

  135. # 字体大小
  136. MES_FONT_SIZE = 20    # 呼出对话框
  137. NAME_FONT_SIZE = 14   # 角色名字窗口

  138. # 字体颜色
  139. #(设定为 Color.new(0, 0, 0, 0) 表示使用普通文字色)
  140. FUKI_COLOR = Color.new(255, 255, 255, 255)  # 呼出对话框
  141. NAME_COLOR = Color.new(255, 255, 255, 255)  # 角色名字窗口

  142. # 窗口透明度
  143. # 如修改窗口透明度请同时修改尾部箭头图形内部的透明度
  144. FUKI_OPACITY = 100    # 呼出对话框
  145. MES_OPACITY = 100     # 默认信息窗口
  146. NAME_OPACITY = 255    # 角色名字窗口

  147. # 角色名字窗口的相对位置
  148. NAME_SHIFT_X = 0      # 横坐标
  149. NAME_SHIFT_Y = 16     # 纵坐标

  150. # 窗口表示时是否根据画面大小自动检查窗口出现的位置,
  151. # 自动改变位置( true / false )
  152. # 设置成 true 可能出现箭头图标颠倒的问题 <- bbschat
  153. POS_FIX = true

  154. # 在画面最边缘表示时的稍微挪动
  155. # 使用圆形Skin的角和方框的角重合的情况下为 true
  156. CORNER_SHIFT = false
  157. SHIFT_PIXEL = 4   # true 时挪动的象素

  158. # 角色高度尺寸
  159. CHARACTOR_HEIGHT = 48
  160. # 呼出对话框的相对位置(纵坐标)
  161. POP_SHIFT_TOP = 0         # 表示位置为上的时候
  162. POP_SHIFT_UNDER = 0       # 表示位置为下的时候

  163. # 信息的表示速度(数字越小速度越快,0为瞬间表示)
  164. # 游戏中 可随时用数字代入 $mes_speed 来改变消息表示速度。
  165. MES_SPEED = 1

  166. end

  167. #==============================================================================
  168. # 方便用户同时设置2个常用参数而使用的函数
  169. #==============================================================================
  170. def chat(id = 0,name = "")
  171. $mes_id = id
  172. $mes_name = name
  173. end

  174. #==============================================================================
  175. # □ Game_Temp
  176. #==============================================================================

  177. class Game_Temp
  178. attr_accessor  :namebmp              #保存头像图片的Hash表
  179. alias initialize_fuki initialize
  180. def initialize
  181.    initialize_fuki
  182.    # 如果不想使用角色名字直接作为头像文件名
  183.    # 可在这里重新设定角色名字与文件名的对应关系
  184.    @namebmp ={"皮皮"=>"1","祈祷"=>"4","小燕"=>"2","奶少"=>"5","老狼"=>"3","雨滴"=>"6","浪刚"=>"7","水姐姐"=>"8","维斯特"=>"002-Player-Face"}
  185. end
  186. end
  187. #==============================================================================
  188. # □ Game_System
  189. #==============================================================================
  190. class Game_System
  191. attr_accessor :typing
  192. attr_accessor :soundname_on_speak
  193. alias carol3_ini initialize
  194. def initialize
  195.    carol3_ini
  196.    @typing = true
  197.    @soundname_on_speak = nil
  198. end
  199. end
  200. #==============================================================================
  201. # □ Window_FukiMessage
  202. #==============================================================================

  203. class Window_FukiMessage < Window_Selectable

  204. #--------------------------------------------------------------------------
  205. # ● 初始化状态
  206. #--------------------------------------------------------------------------
  207. def initialize
  208.    super(80, 304, 480, 160)
  209.    self.contents = Bitmap.new(width - 32, height - 32)
  210.    self.visible = false
  211.    self.z = 199
  212.    @fade_in = false
  213.    @fade_out = false
  214.    @contents_showing = false
  215.    @cursor_width = 0
  216.    self.active = false
  217.    self.index = -1
  218.    #........................................................................
  219.    if $game_system.soundname_on_speak == nil then
  220.      $game_system.soundname_on_speak = ""
  221.    end
  222.    @opacity_text_buf = Bitmap.new(32, 32)
  223.    #........................................................................
  224.    @w = 0
  225.    @h = 0
  226.    @wait = 0
  227.    @dx = 0
  228.    @dy = 0
  229.    $mes_speed = FUKI::MES_SPEED
  230. end

  231. #--------------------------------------------------------------------------
  232. # ○ 决定窗口尺寸并生成窗口
  233. #--------------------------------------------------------------------------
  234. def refresh_create
  235.    self.contents.clear
  236.    self.contents.font.color = normal_color
  237.    self.contents.font.size = FUKI::MES_FONT_SIZE
  238.    # 取得窗口尺寸
  239.    get_windowsize
  240.    w = @w + 32 + 8
  241.    h = @h * (self.contents.font.size + 10) + 26
  242.    # 生成呼出窗口
  243.    set_fukidasi(self.x, self.y, w, h)
  244.    # 生成角色名字窗口
  245.    set_namewindow
  246.    # 初始化信息表示使用的变量
  247.    @dx = @dy = 0
  248.    @cursor_width = 0
  249.    @contents_drawing = true
  250.    # 瞬间表示的情况下
  251.    if $mes_speed == 0
  252.      # 循环信息描绘处理
  253.      while $game_temp.message_text != ""
  254.        draw_massage
  255.      end
  256.      draw_opt_text
  257.      @contents_showing_end = true
  258.      @contents_drawing = false
  259.    else
  260.      # 一个一个描绘文字
  261.      refresh_drawtext
  262.    end
  263. end

  264. #--------------------------------------------------------------------------
  265. # ○ 一个一个描绘文字
  266. #--------------------------------------------------------------------------
  267. def refresh_drawtext
  268.    #........................................................................
  269.    if Input.trigger?(Input::C) and $game_switches[124]
  270.      # 循环信息描绘处理
  271.      while $game_temp.message_text != ""
  272.        draw_massage
  273.      end
  274.      draw_opt_text
  275.      @contents_showing_end = true
  276.      @contents_drawing = false
  277.    end
  278.    #........................................................................
  279.    if $game_temp.message_text != nil
  280.      if @wait > 0
  281.        @wait -= 1
  282.      elsif @wait == 0
  283.        # 描绘处理
  284.        draw_massage
  285.        @wait = $mes_speed
  286.      end
  287.    end
  288.    # 描绘结束
  289.    if $game_temp.message_text == ""
  290.      draw_opt_text
  291.      @contents_showing_end = true
  292.      @contents_drawing = false
  293.    end
  294. end

  295. #--------------------------------------------------------------------------
  296. # ○ 66rpg-refresh
  297. #--------------------------------------------------------------------------
  298.   def refresh
  299.     # 初期化
  300.     self.contents.clear
  301.     self.contents.font.color = normal_color
  302.     self.contents.font.size = Font.default_size
  303.     @x = @y = @max_x = @max_y = @indent = @lines = 0
  304.     @left_keep = @right_keep = false
  305.     @face_indent = 0
  306.     @opacity = 255
  307.     @cursor_width = 0
  308.     @write_speed = 0
  309.     @write_wait = 0
  310.     @mid_stop = false
  311.     @face_file = nil
  312.     @popchar = -2
  313.     if $game_temp.choice_start == 0
  314.       @x = 8
  315.     end
  316.     if $game_temp.message_text != nil
  317.       @now_text = $game_temp.message_text
  318.       #——头像设置
  319.       if (/\\[Ff]\[(.+?)\]/.match(@now_text))!=nil then
  320.         @face_file = $1 + ".png"
  321.         @x = @face_indent = 128
  322.         if FileTest.exist?("Graphics/Pictures/" + $1 + ".png")
  323.           self.contents.blt(16, 16, RPG::Cache.picture(@face_file), Rect.new(0, 0, 96, 96))
  324.         end
  325.         @now_text.gsub!(/\\[Ff]\[(.*?)\]/) { "" }
  326.       end
  327.       #——左半身像设置
  328.       if (/\\[Ll]\[(.+?)\]/.match(@now_text))!=nil then
  329.         @face = "66rpg_" + $1 + "_h.png"
  330.         if $加密 == true
  331.           if @left_picture != nil
  332.             @left_picture.dispose
  333.           end
  334.           @left_picture = Sprite.new
  335.           @left_picture.bitmap = Bitmap.new("Graphics/battlers/#{@face}")
  336.           @left_picture.y = 480-@left_picture.bitmap.height
  337.           @left_picture.x = 0
  338.           @left_picture.mirror = true
  339.           @now_text.gsub!(/\\[Ll]\[(.*?)\]/) { "" }
  340.         else         
  341.           if FileTest.exist?("Graphics/battlers/#{@face}")
  342.             if @left_picture != nil
  343.               @left_picture.dispose
  344.             end
  345.             @left_picture = Sprite.new
  346.             @left_picture.bitmap = Bitmap.new("Graphics/battlers/#{@face}")
  347.             @left_picture.y = 480-@left_picture.bitmap.height
  348.             @left_picture.x = 0
  349.             @left_picture.mirror = true
  350.             @now_text.gsub!(/\\[Ll]\[(.*?)\]/) { "" }
  351.           end
  352.         end        
  353.       end
  354.       #——右半身像设置
  355.       if (/\\[Rr]\[(.+?)\]/.match(@now_text))!=nil then
  356.         @face = "66rpg_" + $1 + "_h.png"
  357.         if $加密 == true
  358.           if @right_picture != nil
  359.             @right_picture.dispose
  360.           end
  361.           @right_picture = Sprite.new
  362.           @right_picture.bitmap = Bitmap.new("Graphics/battlers/#{@face}")
  363.           @right_picture.y = 480-@right_picture.bitmap.height
  364.           @right_picture.x = 640-@right_picture.bitmap.width
  365.           @now_text.gsub!(/\\[Rr]\[(.*?)\]/) { "" }
  366.         else
  367.           if FileTest.exist?("Graphics/battlers/#{@face}")
  368.             if @right_picture != nil
  369.               @right_picture.dispose
  370.             end
  371.             @right_picture = Sprite.new
  372.             @right_picture.bitmap = Bitmap.new("Graphics/battlers/#{@face}")
  373.             @right_picture.y = 480-@right_picture.bitmap.height
  374.             @right_picture.x = 640-@right_picture.bitmap.width
  375.             @now_text.gsub!(/\\[Rr]\[(.*?)\]/) { "" }
  376.           end
  377.         end
  378.       end
  379.       if (/\\[Rr]k/.match(@now_text)) != nil
  380.         @right_keep = true
  381.         @now_text.sub!(/\\[Rr]k/) { "" }
  382.       end
  383.       if (/\\[Ll]k/.match(@now_text)) != nil
  384.         @left_keep = true
  385.         @now_text.sub!(/\\[Ll]k/) { "" }
  386.       end
  387.       # 显示人物姓名
  388.       name_window_set = false
  389.       if (/\\[Nn]ame\[(.+?)\]/.match(@now_text)) != nil
  390.         name_window_set = true
  391.         name_text = $1
  392.         @now_text.sub!(/\\[Nn]ame\[(.*?)\]/) { "" }
  393.       end
  394.       
  395.       # 文字位置的判定
  396.       if (/\\[Pp]\[([-1,0-9]+)\]/.match(@now_text))!=nil then
  397.         @popchar = $1.to_i
  398.         if @popchar == -1
  399.           @x = @indent = 48
  400.           @y = 4
  401.         end
  402.         @now_text.gsub!(/\\[Pp]\[([-1,0-9]+)\]/) { "" }
  403.       end
  404.       
  405.       # 开始
  406.       begin
  407.         last_text = @now_text.clone
  408.         @now_text.gsub!(/\\[Vv]\[([IiWwAaSs]?)([0-9]+)\]/) { convart_value($1, $2.to_i) }
  409.       end until @now_text == last_text
  410.       @now_text.gsub!(/\\[Nn]\[([0-9]+)\]/) do
  411.       $game_actors[$1.to_i] != nil ? $game_actors[$1.to_i].name : ""
  412.     end
  413.     @now_text.gsub!(/\\\\/) { "\000" }
  414.     @now_text.gsub!(/\\[Cc]\[([0-9]+)\]/) { "\001[#{$1}]" }
  415.     @now_text.gsub!(/\\[Gg]/) { "\002" }
  416.     @now_text.gsub!(/\\[Ss]\[([0-9]+)\]/) { "\003[#{$1}]" }
  417.     @now_text.gsub!(/\\[Aa]\[(.*?)\]/) { "\004[#{$1}]" }
  418.     @now_text.gsub!(/\\[.]/) { "\005" }
  419.     @now_text.gsub!(/\\[|]/) { "\006" }

  420.     @now_text.gsub!(/\\[>]/) { "\016" }
  421.     @now_text.gsub!(/\\[<]/) { "\017" }
  422.     @now_text.gsub!(/\\[!]/) { "\020" }
  423.     @now_text.gsub!(/\\[~]/) { "\021" }
  424.    
  425.     @now_text.gsub!(/\\[Ii]/) { "\023" }
  426.     @now_text.gsub!(/\\[Oo]\[([0-9]+)\]/) { "\024[#{$1}]" }
  427.     @now_text.gsub!(/\\[Hh]\[([0-9]+)\]/) { "\025[#{$1}]" }
  428.     @now_text.gsub!(/\\[Bb]\[([0-9]+)\]/) { "\026[#{$1}]" }
  429.     @now_text.gsub!(/\\[Kk]\[(.*?)\]/) { "\027[#{$1}]" }
  430.     if @popchar >= 0
  431.       @text_save = @now_text.clone
  432.       @max_x = 0
  433.       @max_y = 4
  434.       for i in 0..3
  435.         line = @now_text.split(/\n/)[3-i]
  436.         @max_y -= 1 if line == nil and @max_y <= 4-i
  437.         next if line == nil
  438.         cx = contents.text_size(line).width
  439.         @max_x = cx if cx > @max_x
  440.       end
  441.       self.width = @max_x + 48 + @face_indent
  442.       self.height = (@max_y - 1) * 32 + 64
  443.     else
  444.       @max_x = self.width - 32 - @face_indent
  445.     end
  446.     reset_window
  447.       if name_window_set
  448.         off_x = 0
  449.         off_y = -40
  450.         space = 2
  451.         x = self.x + off_x - space / 2
  452.         y = self.y + off_y - space / 2
  453.         w = self.contents.text_size(name_text).width + 26 + space
  454.         h = 40 + space
  455.         @name_window_frame = Window_Frame.new(x, y, w, h)
  456.         @name_window_frame.z = self.z + 100
  457.         x = self.x + off_x + 4
  458.         y = self.y + off_y
  459.         @name_window_text = Air_Text.new(x+4, y+6, name_text)
  460.         @name_window_text.z = self.z + 101
  461.       end
  462.     end
  463.     reset_window
  464.     if $game_temp.choice_max > 0
  465.       @item_max = $game_temp.choice_max
  466.       self.active = true
  467.       self.index = 0
  468.     end
  469.     if $game_temp.num_input_variable_id > 0
  470.       digits_max = $game_temp.num_input_digits_max
  471.       number = $game_variables[$game_temp.num_input_variable_id]
  472.       @input_number_window = Window_InputNumber.new(digits_max)
  473.       @input_number_window.number = number
  474.       @input_number_window.x = self.x + 8
  475.       @input_number_window.y = self.y + $game_temp.num_input_start * 32
  476.     end
  477.   end



  478. #==============================================================================
  479. # ■ Window_Frame (枠だけで中身の無いウィンドウ)
  480. #==============================================================================
  481. class Window_Frame < Window_Base
  482. #--------------------------------------------------------------------------
  483. # ● オブジェクト初期化
  484. #--------------------------------------------------------------------------
  485. def initialize(x, y, width, height)
  486.    super(x, y, width, height)
  487.    self.contents = nil
  488.    self.back_opacity = 100
  489. end
  490. #--------------------------------------------------------------------------
  491. # ● 解放
  492. #--------------------------------------------------------------------------
  493. def dispose
  494.    super
  495. end
  496. end

  497. #==============================================================================
  498. # ■ Air_Text (何も無いところに文字描写 = 枠の無い瞬間表示メッセージウィンドウ)
  499. #==============================================================================
  500. class Air_Text < Window_Base
  501.   #--------------------------------------------------------------------------
  502.   # ● オブジェクト初期化
  503.   #--------------------------------------------------------------------------
  504.   def initialize(x, y, designate_text)
  505.     super(x-16, y-16, 32 + designate_text.size * 12, 56)
  506.     self.opacity = 0
  507.     self.back_opacity = 0
  508.     self.contents = Bitmap.new(self.width - 32, self.height - 32)
  509.     w = self.contents.width
  510.     h = self.contents.height
  511.     self.contents.draw_text(0, 0, w, h, designate_text)
  512.   end
  513.   #--------------------------------------------------------------------------
  514.   # ● 解放
  515.   #--------------------------------------------------------------------------
  516.   def dispose
  517.     self.contents.clear
  518.     super
  519.   end
  520. end


  521. #--------------------------------------------------------------------------
  522. # ○ 取得窗口尺寸
  523. #--------------------------------------------------------------------------
  524. def get_windowsize
  525.    x = y = 0
  526.    @h = @w = 0
  527.    @cursor_width = 0
  528.    # 有选择项的话,处理字的缩进
  529.    if $game_temp.choice_start == 0
  530.      x = 16
  531.    end
  532.    # 有等待显示的文字的情况下
  533.    if $game_temp.message_text != nil
  534.    text = $game_temp.message_text.clone
  535.      # 限制文字处理
  536.      begin
  537.        last_text = text.clone
  538.        text.gsub!(/\\[Vv]\[([0-9]+)\]/) { $game_variables[$1.to_i] }
  539.      end until text == last_text
  540.      text.gsub!(/\\[Nn]\[([0-9]+)\]/) do
  541.        $game_actors[$1.to_i] != nil ? $game_actors[$1.to_i].name : ""
  542.      end
  543.      # 为了方便、将 "\\\\" 变换为 "\000"
  544.      text.gsub!(/\\\\/) { "\000" }
  545.      # "\\C" 变为 "\001" 、"\\G" 变为 "\002"
  546.      text.gsub!(/\\[Cc]\[([0-9]+)\]/) { "\001" }
  547.      text.gsub!(/\\[Gg]/) { "\002" }
  548.      # c 获取 1 个字 (如果不能取得文字就循环)
  549.      while ((c = text.slice!(/./m)) != nil)
  550.        # \\ 的情况下
  551.        if c == "\000"
  552.          # 还原为本来的文字
  553.          c = "\\"
  554.        end
  555.        # \C[n] 或者 \G 的情况下
  556.        if c == "\001" or c == "\002"
  557.          # 下面的文字
  558.          next
  559.        end
  560.        # 另起一行文字的情况下
  561.        if c == "\n"
  562.          # y 累加 1
  563.          y += 1
  564.          # 取得纵横尺寸
  565.          @h = y
  566.          @w = x > @w ? x : @w
  567.          if y >= $game_temp.choice_start
  568.            @w = x + 8 > @w ? x + 8 : @w
  569.          end
  570.          x = 0
  571.          # 移动到选择项的下一行
  572.          if y >= $game_temp.choice_start
  573.            x = 8
  574.          end
  575.          # 下面的文字
  576.          next
  577.        end
  578.        # x 为要描绘文字的宽度加法运算
  579.        x += self.contents.text_size(c).width
  580.      end
  581.    end
  582.    # 输入数值的情况
  583.    if $game_temp.num_input_variable_id > 0
  584.      digits_max = $game_temp.num_input_digits_max
  585.      number = $game_variables[$game_temp.num_input_variable_id]
  586.      @h += 1
  587.      x = digits_max * self.contents.font.size + 16
  588.      @w = x > @w ? x : @w
  589.    end
  590. end

  591. #--------------------------------------------------------------------------
  592. # ○ 描绘信息处理
  593. #--------------------------------------------------------------------------
  594. def draw_massage
  595.    # 有等待显示的文字的情况下
  596.    if $game_temp.message_text != nil
  597.      text = $game_temp.message_text
  598.      # 限制文字处理
  599.      begin
  600.        last_text = text.clone
  601.        text.gsub!(/\\[Vv]\[([0-9]+)\]/) { $game_variables[$1.to_i] }
  602.      end until text == last_text
  603.      text.gsub!(/\\[Nn]\[([0-9]+)\]/) do
  604.        $game_actors[$1.to_i] != nil ? $game_actors[$1.to_i].name : ""
  605.      end
  606.      # 为了方便、将 "\\\\" 变换为 "\000"
  607.      text.gsub!(/\\\\/) { "\000" }
  608.      # "\\C" 变为 "\001"、"\\G" 变为 "\002"
  609.      text.gsub!(/\\[Cc]\[([0-9]+)\]/) { "\001[#{$1}]" }
  610.      text.gsub!(/\\[Gg]/) { "\002" }
  611.      # c 获取 1 个字
  612.      if ((c = text.slice!(/./m)) != nil)
  613.        # 选择项的情况
  614.        if @dy >= $game_temp.choice_start
  615.          # 处理字的缩进
  616.          @dx = 8
  617.          # 描绘文字
  618.          self.contents.draw_text(4 + @dx, 32 * @dy, 40, 32, c)
  619.          self.z = 9999
  620.          # x 为要描绘文字宽度的加法运算
  621.          @dx += self.contents.text_size(c).width
  622.          # 循环
  623.          while ((c = text.slice!(/./m)) != "\n")
  624.            # 描绘文字
  625.            self.contents.draw_text(4 + @dx, 32 * @dy, 40, 32, c)
  626.            # x 为要描绘文字宽度的加法运算
  627.            @dx += self.contents.text_size(c).width
  628.          end
  629.          if c == "\n"
  630.            # 更新光标宽度
  631.            @cursor_width = [@cursor_width, @dx].max
  632.            # dy 累加 1
  633.            @dy += 1
  634.            @dx = 0
  635.          end
  636.          return
  637.        end
  638.        # \\ 的情况下
  639.        if c == "\000"
  640.          # 还原为本来的文字
  641.          c = "\\"
  642.        end
  643.        #\C[n] 的情况下
  644.        if c == "\001"
  645.          # 更改文字色
  646.          text.sub!(/\[([0-9]+)\]/, "")
  647.          color = $1.to_i
  648.          if color >= 0 and color <= 7
  649.            self.contents.font.color = text_color(color)
  650.          end
  651.        end
  652.        # \G 的情况下
  653.        if c == "\002"
  654.          # 生成金钱窗口
  655.          if @gold_window == nil
  656.            @gold_window = Window_Gold.new
  657.            @gold_window.x = 560 - @gold_window.width
  658.            if $game_temp.in_battle
  659.              @gold_window.y = 192
  660.            else
  661.              @gold_window.y = self.y >= 128 ? 32 : 384
  662.            end
  663.            @gold_window.opacity = self.opacity
  664.            @gold_window.back_opacity = self.back_opacity
  665.          end
  666.        end
  667.        # 另起一行文字的情况下
  668.        if c == "\n"
  669.          # dy 累加 1
  670.          @dy += 1
  671.          @dx = 0
  672.        end
  673.        # 描绘文字
  674.        self.contents.font.size = FUKI::MES_FONT_SIZE
  675.        font_size = self.contents.font.size
  676.        if c == "\001" or c == "\002" or c == "\003" or c == "\n"

  677.          c = ""

  678.        else

  679.          self.contents.draw_text(4+@dx, (font_size+10)*@dy, font_size, font_size, c)

  680.        end      
  681.        # dx 为要描绘文字的宽度加法运算
  682.        @dx += self.contents.text_size(c).width
  683.      end
  684.    end
  685. end

  686. #--------------------------------------------------------------------------
  687. # ○ 选择项和输入数值的情况下
  688. #--------------------------------------------------------------------------
  689. def draw_opt_text
  690.    # 选择项的情况下
  691.    if $game_temp.choice_max > 0
  692.      @item_max = $game_temp.choice_max
  693.      self.active = true
  694.      self.index = 0
  695.    end
  696.    # 输入数值的情况下
  697.    if $game_temp.num_input_variable_id > 0
  698.      digits_max = $game_temp.num_input_digits_max
  699.      number = $game_variables[$game_temp.num_input_variable_id]
  700.      @input_number_window = Window_InputNumber.new(digits_max)
  701.      @input_number_window.number = number
  702.      @input_number_window.x = self.x + 8
  703.      @input_number_window.y = self.y + $game_temp.num_input_start * 32
  704.    end
  705. end

  706. #--------------------------------------------------------------------------
  707. # ○ 设置呼出对话框
  708. #--------------------------------------------------------------------------
  709. def set_fukidasi(x, y, width, height)
  710.    # $mes_id 为空的时候,不显示呼出对话框
  711.    if $mes_id == nil or $mes_id == ""
  712.      del_fukidasi
  713.      reset_window
  714.    else
  715.      # 不显示暂停标志
  716.      self.pause = false
  717.      # 取得对话框位置
  718.      pos = get_fuki_pos(width, height)
  719.      x = pos[0]
  720.      y = pos[1]
  721.      skin = FUKI::FUKI_SKIN_NAME != "" ? FUKI::FUKI_SKIN_NAME : $game_system.windowskin_name
  722.      # 生成呼出对话框
  723.      self.windowskin = RPG::Cache.windowskin(skin)
  724.      self.x = x
  725.      self.y = y
  726.      self.height = height
  727.      self.width = width
  728.      self.contents.dispose
  729.      self.contents = Bitmap.new(width - 32, height - 32)
  730.      self.back_opacity = FUKI::FUKI_OPACITY
  731.      self.contents.clear
  732.      self.contents.font.color = normal_color
  733.      self.contents.font.size = FUKI::MES_FONT_SIZE
  734.      # 描绘尾部图标
  735.      if $game_system.message_frame == 0
  736.        # 取得位置
  737.        tale_pos = get_tale_pos
  738.        @tale = Sprite.new
  739.        # 是否显示尾部图标 <- bbschat
  740.        if FUKI::TAIL_SHOW == true
  741.          case @message_position
  742.            when 0  # 上
  743.              @tale.bitmap = RPG::Cache.windowskin("001-Blue01-top")
  744.              @tale.x = tale_pos[0]
  745.              @tale.y = tale_pos[1]
  746.              @tale.z = self.z + 1
  747.            when 1  # 中
  748.              @tale.dispose
  749.              @tale = nil
  750.            when 2  # 下
  751.              @tale.bitmap = RPG::Cache.windowskin("001-Blue01-under")
  752.              @tale.x = tale_pos[0]
  753.              @tale.y = tale_pos[1]
  754.              @tale.z = self.z + 1
  755.          end
  756.        end
  757.      end
  758.    end
  759. end

  760. #--------------------------------------------------------------------------
  761. # ○ 计算呼出对话框的位置
  762. #--------------------------------------------------------------------------
  763. def get_fuki_pos(width, height)
  764.    
  765.    # 取得角色
  766.    @character = get_character($mes_id)
  767.    if @character == nil
  768.      # 角色不存在的情况下使用默认信息框
  769.      del_fukidasi
  770.      reset_window
  771.      return
  772.    end
  773.    # 处理坐标
  774.    x = ( @character.real_x - $game_map.display_x + 64 ) * 32 / 128 - (width / 2)
  775.    # 为尽量显示在画面内而移动横坐标
  776.    if x + width > 640
  777.      x = 640 - width
  778.    elsif x < 0
  779.      x = 0
  780.    end
  781.    # 决定窗口位置
  782.    case $game_system.message_position
  783.      when 0  # 上
  784.        y = (@character.real_y - $game_map.display_y + 64) * 32 / 128 - height - FUKI::CHARACTOR_HEIGHT + FUKI::POP_SHIFT_TOP
  785.      when 1  # 中
  786.        y = (480 - height) / 2
  787.        x = (640 - width) / 2
  788.      when 2  # 下
  789.        y =  (@character.real_y - $game_map.display_y + 64) * 32 / 128 + 32 + FUKI::POP_SHIFT_UNDER
  790.    end
  791.    # 纪录文章显示位置
  792.    @message_position = $game_system.message_position
  793.    # 如果选择自动修正,则如果文章会显示到画面外则自动改变窗口的尺寸(高度)
  794.    if FUKI::POS_FIX
  795.      case @message_position
  796.        when 0  # 上
  797.          if y <= 0
  798.            @message_position = 2
  799.            y =  (@character.real_y - $game_map.display_y + 64) * 32 / 128 + 32 + FUKI::POP_SHIFT_UNDER
  800.          end
  801.        when 2  # 下
  802.          if y + height >= 480
  803.            p "上"
  804.            @message_position = 0
  805.            y = (@character.real_y - $game_map.display_y + 64) * 32 / 128 - height - FUKI::CHARACTOR_HEIGHT + FUKI::POP_SHIFT_TOP
  806.          end
  807.      end
  808.    end
  809.    return [x,y]
  810.    
  811. end

  812. #--------------------------------------------------------------------------
  813. # ○ 计算尾部图标的位置
  814. #--------------------------------------------------------------------------
  815. def get_tale_pos
  816.    case @message_position
  817.      when 0  # 上
  818.        # 处理坐标
  819.        x = ( @character.real_x - $game_map.display_x + 64 ) * 32 / 128 - 16
  820.        # 画面边缘的话则移动位置
  821.        if FUKI::CORNER_SHIFT
  822.          if x == 0
  823.            x = FUKI::SHIFT_PIXEL
  824.          elsif x == 640 - 32
  825.            x = 640 - 32 - FUKI::SHIFT_PIXEL
  826.          end
  827.        end
  828.        y = self.y + self.height - 16
  829.      when 1  # 中
  830.        x = nil
  831.        y = nil
  832.      when 2  # 下
  833.        # 处理坐标
  834.        x = ( @character.real_x - $game_map.display_x + 64 ) * 32 / 128 - 16
  835.        # 画面边缘的话则移动位置
  836.        if FUKI::CORNER_SHIFT
  837.          if x == 0
  838.            x = FUKI::SHIFT_PIXEL
  839.          elsif @tale.x == 640 - 32
  840.            x = 640 - 32 - FUKI::SHIFT_PIXEL
  841.          end
  842.        end
  843.        y = self.y - 16
  844.    end
  845.    return [x,y]
  846. end

  847. #--------------------------------------------------------------------------
  848. # ○ 计算名字窗口的位置
  849. #--------------------------------------------------------------------------
  850. def get_name_pos
  851.    case @face_pic_txt
  852.      when 0  # 文字
  853.        x = self.x + FUKI::NAME_SHIFT_X
  854.        y = self.y - FUKI::NAME_FONT_SIZE - 16 + FUKI::NAME_SHIFT_Y
  855.      when 1  # 图片
  856.        if self.x >= @pic_width + 5
  857.          # 默认头像显示在对话框左边
  858.          x = self.x-@pic_width-5
  859.        else
  860.          # 对话框左边放不下时头像显示在右边
  861.          x = self.x + self.width
  862.        end
  863.        y = self.y+self.height/2 - (@pic_height + 5)/2
  864.      end

  865.    return [x,y]
  866. end

  867. #--------------------------------------------------------------------------
  868. # ○ 设置角色名字窗口
  869. #--------------------------------------------------------------------------
  870. def set_namewindow
  871.    
  872.    # $mes_name为空时不显示角色名字窗口
  873.    if $mes_name == nil or $mes_name == ""
  874.      return
  875.    else
  876.      # 设定变量
  877.      mes_name = $mes_name
  878.      skin = FUKI::NAME_SKIN_NAME != "" ? FUKI::NAME_SKIN_NAME : $game_system.windowskin_name
  879.      
  880.      #判断名称是否有对应的图片"Graphics/heads/" +
  881.      if $game_temp.namebmp[mes_name] == nil then
  882.        sFile = "Graphics/heads/" + mes_name + ".png"
  883.      else
  884.        sFile = "Graphics/heads/" + $game_temp.namebmp[mes_name] + ".png"
  885.      end
  886.      
  887.      if FileTest.exist?(sFile) == true then
  888.       
  889.        @face_pic_txt = 1                       #名字窗口使用头像<- bbschat
  890.       
  891.        # 生成头像
  892.        bmp = Bitmap.new(sFile)
  893.        @pic_width = bmp.width
  894.        @pic_height = bmp.height
  895.       
  896.        if self.x >= @pic_width + 5
  897.          # 默认头像显示在对话框左边
  898.          name_x = self.x-@pic_width-5
  899.        else
  900.          # 对话框左边放不下时头像显示在右边
  901.          name_x = self.x + self.width
  902.        end
  903.        name_y = self.y+self.height/2 - (@pic_height + 5)/2
  904.       
  905.        # 生成角色头像窗口
  906.        @name_win = Window_Base.new(name_x, name_y, @pic_width + 5, @pic_height + 5)
  907.        @name_win.windowskin = RPG::Cache.windowskin(skin)
  908.        @name_win.back_opacity =0     
  909.        @name_win.z = self.z + 1
  910.       
  911.        @name_contents = Sprite.new
  912.        @name_contents.x = name_x + 2
  913.        @name_contents.y = name_y + 2
  914.        @name_contents.bitmap = bmp
  915.        #@name_contents.z = @name_win.z + 2     #这个用了似乎效果不好<- bbschat
  916.       
  917.      else
  918.       
  919.        @face_pic_txt = 0                       #名字窗口使用文字<- bbschat

  920.        # 生成名字
  921.        name_width = mes_name.size / 2 * FUKI::NAME_FONT_SIZE
  922.        name_height = FUKI::NAME_FONT_SIZE
  923.        name_x = self.x + FUKI::NAME_SHIFT_X
  924.        name_y = self.y - name_height - 16 + FUKI::NAME_SHIFT_Y

  925.        # 生成角色名字窗口(只有边框)
  926.        @name_win = Window_Base.new(name_x, name_y, name_width + 16, name_height + 16)
  927.        @name_win.windowskin = RPG::Cache.windowskin(skin)
  928.        @name_win.back_opacity = FUKI::NAME_OPACITY
  929.        @name_win.z = self.z + 1
  930.       
  931.        # 为了使空白比Windows类限定的更小使用双重结构
  932.        @name_contents = Sprite.new
  933.        @name_contents.x = name_x + 12
  934.        @name_contents.y = name_y + 8
  935.        @name_contents.bitmap = Bitmap.new(name_width, name_height)
  936.        @name_contents.z = @name_win.z + 2
  937.       
  938.        # 设定文字色
  939.        nil_color = Color.new(0,0,0,0)
  940.        if FUKI::NAME_COLOR != nil_color
  941.          @name_contents.bitmap.font.color = FUKI::NAME_COLOR
  942.        else
  943.          @name_contents.bitmap.font.color = normal_color
  944.        end
  945.        @name_contents.bitmap.font.size = FUKI::NAME_FONT_SIZE
  946.        # 调整窗口尺寸
  947.        rect = @name_contents.bitmap.text_size(mes_name)
  948.        @name_win.width = rect.width + 32
  949.        # 描画名字
  950.        @name_contents.bitmap.draw_text(rect, mes_name)
  951.      end
  952.    end

  953. end

  954. #--------------------------------------------------------------------------
  955. # ○ 释放呼出对话框和角色名字窗口
  956. #--------------------------------------------------------------------------
  957. def del_fukidasi
  958.    if @tale != nil
  959.      @tale.dispose
  960.      @tale = nil
  961.    end
  962.    if @name_win != nil
  963.      @name_win.dispose
  964.      @name_win = nil
  965.      @name_contents.dispose
  966.      @name_contents = nil
  967.    end
  968.    self.opacity = 0
  969.    self.x = 80
  970.    self.width = 480
  971.    self.height = 160
  972.    self.contents.dispose
  973.    self.contents = Bitmap.new(width - 32, height - 32)
  974.    self.pause = true
  975. end

  976. #--------------------------------------------------------------------------
  977. # ○ 取得角色
  978. #     parameter : 参数
  979. #--------------------------------------------------------------------------
  980. def get_character(parameter)
  981.   if $game_switches[125]
  982.    #........................................................................
  983.    case parameter
  984.    when 0
  985.      return $game_player
  986.    else
  987.      events = $game_map.events
  988.      return events == nil ? nil : events[parameter]
  989.    end
  990.    #........................................................................
  991.   else
  992.    # 参数分歧
  993.    case parameter
  994.    when -1  # 玩家
  995.      return $game_player
  996.    when 0   # 该事件
  997.      events = $game_map.events
  998.      return events == nil ? nil : events[$active_event_id]
  999.    else     # 特定事件
  1000.     if parameter >0
  1001.       events = $game_map.events
  1002.       return events == nil ? nil : events[parameter]
  1003.     else
  1004.       $game_party.return_char(-parameter-2)
  1005.     end
  1006.    end
  1007.   end
  1008. end

  1009. #--------------------------------------------------------------------------
  1010. # ● 设定窗口位置和不透明度
  1011. #--------------------------------------------------------------------------
  1012. def reset_window
  1013.   if $game_switches[125]
  1014.     #........................................................................
  1015.     # 判定
  1016.     if @popchar >= 0
  1017.       events = $game_map.events
  1018.       if events != nil
  1019.         character = get_character(@popchar)
  1020.         x = [[character.screen_x - 0 - self.width / 2, 4].max, 636 - self.width].min
  1021.         y = [[character.screen_y - 48 - self.height, 4].max, 476 - self.height].min
  1022.         self.x = x
  1023.         self.y = y
  1024.       end
  1025.     elsif @popchar == -1
  1026.       self.x = -4
  1027.       self.y = -4
  1028.       self.width = 648
  1029.       self.height = 488
  1030.     else
  1031.       if $game_temp.in_battle
  1032.         self.y = 16
  1033.       else
  1034.         case $game_system.message_position
  1035.         when 0 # 上
  1036.           self.y = 16
  1037.         when 1 # 中
  1038.           self.y = 160
  1039.         when 2 # 下
  1040.           self.y = 320
  1041.         end
  1042.       case $game_system.message_position  
  1043.       when 0  
  1044.         self.x = 0
  1045.       when 1
  1046.         self.x = 180
  1047.       when 2
  1048.         self.x = 0
  1049.       end
  1050.         if @face_file == nil
  1051.           self.width = 640
  1052.         else
  1053.           self.width = 600
  1054.           self.x -= 60
  1055.         end
  1056.         self.height = 160
  1057.       end
  1058.     end
  1059.     self.contents = Bitmap.new(self.width - 32, self.height - 32)
  1060.     if @face_file != nil
  1061.       self.contents.blt(16, 16, RPG::Cache.picture(@face_file), Rect.new(0, 0, 96, 96))
  1062.     end
  1063.     if @popchar == -1
  1064.       self.opacity = 255
  1065.       self.back_opacity = 0
  1066.     elsif $game_system.message_frame == 0
  1067.       self.opacity = 255
  1068.       self.back_opacity = 100
  1069.     else
  1070.       self.opacity = 0
  1071.       self.back_opacity = 100
  1072.     end
  1073.     #........................................................................
  1074.   else
  1075.    if $game_temp.in_battle
  1076.      self.y = 16
  1077.    else
  1078.      case $game_system.message_position
  1079.      when 0  # 上
  1080.        self.y = 16
  1081.      when 1  # 中
  1082.        self.y = 160
  1083.      when 2  # 下
  1084.        self.y = 304
  1085.      end
  1086.       case $game_system.message_position  
  1087.       when 0  
  1088.         self.x = 0
  1089.       when 1
  1090.         self.x = 180
  1091.       when 2
  1092.         self.x = 0
  1093.       end
  1094.    end
  1095.    if $game_system.message_frame == 0
  1096.      self.opacity = 255
  1097.    else
  1098.      self.opacity = 0
  1099.    end
  1100.    self.back_opacity = FUKI::MES_OPACITY
  1101.   end
  1102. end
  1103. #--------------------------------------------------------------------------
  1104. # ● line_height-66rpg
  1105. #--------------------------------------------------------------------------
  1106. # 返回値:行高
  1107. #--------------------------------------------------------------------------
  1108. def line_height
  1109.    return 32
  1110.    if self.contents.font.size >= 20 and self.contents.font.size <= 24
  1111.      return 32
  1112.    else
  1113.      return self.contents.font.size * 15 / 10
  1114.    end
  1115. end
  1116. #--------------------------------------------------------------------------
  1117. # ● \V 变换-66rpg
  1118. #--------------------------------------------------------------------------
  1119. def convart_value(option, index)
  1120.    option == nil ? option = "" : nil
  1121.    option.downcase!
  1122.    case option
  1123.      when "i"
  1124.        unless $data_items[index].name == nil
  1125.          r = sprintf("\030[%s]%s", $data_items[index].icon_name, $data_items[index].name)
  1126.        end
  1127.      when "w"
  1128.        unless $data_weapons[index].name == nil
  1129.          r = sprintf("\030[%s]%s", $data_weapons[index].icon_name, $data_weapons[index].name)
  1130.        end
  1131.      when "a"
  1132.        unless $data_armors[index].name == nil
  1133.          r = sprintf("\030[%s]%s", $data_armors[index].icon_name, $data_armors[index].name)
  1134.        end
  1135.      when "s"
  1136.        unless $data_skills[index].name == nil
  1137.          r = sprintf("\030[%s]%s", $data_skills[index].icon_name, $data_skills[index].name)
  1138.        end
  1139.      else
  1140.      r = $game_variables[index]
  1141.    end
  1142.    r == nil ? r = "" : nil
  1143.    return r
  1144. end
  1145. #--------------------------------------------------------------------------
  1146. # ● 刷新画面
  1147. #--------------------------------------------------------------------------
  1148. def update
  1149.    if $game_switches[125]
  1150.     #........................................................................
  1151.     super
  1152.     if @fade_in
  1153.       self.contents_opacity += 24
  1154.       if @input_number_window != nil
  1155.         @input_number_window.contents_opacity += 24
  1156.       end
  1157.       if self.contents_opacity == 255
  1158.         @fade_in = false
  1159.       end
  1160.       return
  1161.     end
  1162.     @now_text = nil if @now_text == ""
  1163.    
  1164.     if @now_text != nil and @mid_stop == false
  1165.       if @write_wait > 0
  1166.         @write_wait -= 1
  1167.         return
  1168.       end
  1169.       text_not_skip = $game_system.typing
  1170.       while true
  1171.         @max_x = @x if @max_x < @x
  1172.         @max_y = @y if @max_y < @y
  1173.         if (c = @now_text.slice!(/./m)) != nil
  1174.           if c == "\000"
  1175.             c = "\\"
  1176.           end
  1177.           if c == "\001"
  1178.             @now_text.sub!(/\[([0-9]+)\]/, "")
  1179.             color = $1.to_i
  1180.             if color >= 0 and color <= 7
  1181.               self.contents.font.color = text_color(color)
  1182.             end
  1183.             c = ""
  1184.           end
  1185.           if c == "\002"
  1186.             if @gold_window == nil and @popchar <= 0
  1187.               @gold_window = Window_Gold.new
  1188.               @gold_window.x = 560 - @gold_window.width
  1189.               if $game_temp.in_battle
  1190.                 @gold_window.y = 192
  1191.               else
  1192.                 @gold_window.y = self.y >= 128 ? 32 : 384
  1193.               end
  1194.               @gold_window.opacity = self.opacity
  1195.               @gold_window.back_opacity = self.back_opacity
  1196.             end
  1197.             c = ""
  1198.           end
  1199.           if c == "\003"
  1200.             @now_text.sub!(/\[([0-9]+)\]/, "")
  1201.             speed = $1.to_i
  1202.             if speed >= 0 and speed <= 19
  1203.               @write_speed = speed
  1204.             end
  1205.             c = ""
  1206.           end
  1207.           if c == "\004"
  1208.             @now_text.sub!(/\[(.*?)\]/, "")
  1209.             buftxt = $1.dup.to_s
  1210.             if buftxt.match(/\//) == nil and buftxt != "" then
  1211.               $game_system.soundname_on_speak = "Audio/SE/" + buftxt
  1212.             else
  1213.               $game_system.soundname_on_speak = buftxt.dup
  1214.             end
  1215.             c = ""
  1216.           elsif c == "\004"
  1217.             c = ""
  1218.           end
  1219.           if c == "\005"
  1220.             @write_wait += 5
  1221.             c = ""
  1222.           end
  1223.           if c == "\006"
  1224.             @write_wait += 20
  1225.             c = ""
  1226.           end
  1227.           if c == "\016"
  1228.             text_not_skip = false
  1229.             c = ""
  1230.           end
  1231.           if c == "\017"
  1232.             text_not_skip = true
  1233.             c = ""
  1234.           end
  1235.           if c == "\020"
  1236.             @mid_stop = true
  1237.             c = ""
  1238.           end
  1239.           if c == "\021"
  1240.             terminate_message
  1241.             return
  1242.           end
  1243.           if c == "\023"
  1244.             @indent = @x
  1245.             c = ""
  1246.           end
  1247.           if c == "\024"
  1248.             @now_text.sub!(/\[([0-9]+)\]/, "")
  1249.             @opacity = $1.to_i
  1250.             c = ""
  1251.           end
  1252.           if c == "\025"
  1253.             @now_text.sub!(/\[([0-9]+)\]/, "")
  1254.             self.contents.font.size = [[$1.to_i, 6].max, 32].min
  1255.             c = ""
  1256.           end
  1257.           if c == "\026"
  1258.             @now_text.sub!(/\[([0-9]+)\]/, "")
  1259.             @x += $1.to_i
  1260.             c = ""
  1261.           end
  1262.           if c == "\027"
  1263.             @now_text.sub!(/\[(.*?)\]/, "")
  1264.             @x += ruby_draw_text(self.contents, @x, @y * line_height + (line_height - self.contents.font.size), $1, @opacity)
  1265.             if $game_system.soundname_on_speak != ""
  1266.               Audio.se_play($game_system.soundname_on_speak)
  1267.             end
  1268.             c = ""
  1269.           end
  1270.           if c == "\030"
  1271.             @now_text.sub!(/\[(.*?)\]/, "")
  1272.             self.contents.blt(@x , @y * line_height + 8, RPG::Cache.icon($1), Rect.new(0, 0, 24, 24))
  1273.            if $game_system.soundname_on_speak != ""
  1274.               Audio.se_play($game_system.soundname_on_speak)
  1275.             end
  1276.             @x += 24
  1277.             c = ""
  1278.           end
  1279.           if c == "\n"
  1280.             if @lines >= $game_temp.choice_start
  1281.               @cursor_width = [@cursor_width, @max_x - @face_indent].max
  1282.             end
  1283.             @lines += 1
  1284.             @y += 1
  1285.             @x = 0 + @indent + @face_indent
  1286.             if @lines >= $game_temp.choice_start
  1287.               @x = 8 + @indent + @face_indent
  1288.             end
  1289.             c = ""
  1290.           end
  1291.           if c != ""
  1292.             # 文字描画
  1293.             @x += opacity_draw_text(self.contents, @x, @y * line_height + (line_height - self.contents.font.size), c, @opacity)
  1294.             if $game_system.soundname_on_speak != "" then
  1295.             Audio.se_play($game_system.soundname_on_speak)
  1296.             end
  1297.           end
  1298.           if Input.press?(Input::C) and $game_switches[124]
  1299.             text_not_skip = false
  1300.           end
  1301.           if Input.press?(Input::B)
  1302.             text_not_skip = false
  1303.           end
  1304.         else
  1305.           text_not_skip = true
  1306.           break
  1307.         end
  1308.         # 終了判定
  1309.         if text_not_skip
  1310.           break
  1311.         end
  1312.       end
  1313.       @write_wait += @write_speed
  1314.       return
  1315.     end
  1316.     if @input_number_window != nil
  1317.       @input_number_window.update
  1318.       # 決定
  1319.       if Input.trigger?(Input::C)
  1320.         $game_system.se_play($data_system.decision_se)
  1321.         $game_variables[$game_temp.num_input_variable_id] =
  1322.         @input_number_window.number
  1323.         $game_map.need_refresh = true
  1324.         @input_number_window.dispose
  1325.         @input_number_window = nil
  1326.         terminate_message
  1327.       end
  1328.       return
  1329.     end
  1330.     if @contents_showing
  1331.       if $game_temp.choice_max == 0
  1332.         self.pause = true
  1333.       end
  1334.       # 取消
  1335.       if Input.trigger?(Input::B)
  1336.         if $game_temp.choice_max > 0 and $game_temp.choice_cancel_type > 0
  1337.           $game_system.se_play($data_system.cancel_se)
  1338.           $game_temp.choice_proc.call($game_temp.choice_cancel_type - 1)
  1339.           terminate_message
  1340.         end
  1341.       end
  1342.       # 決定
  1343.       if Input.trigger?(Input::C)
  1344.         if $game_temp.choice_max > 0
  1345.           $game_system.se_play($data_system.decision_se)
  1346.           $game_temp.choice_proc.call(self.index)
  1347.         end
  1348.         if @mid_stop
  1349.           @mid_stop = false
  1350.           return
  1351.         else
  1352.           terminate_message
  1353.         end
  1354.       end
  1355.       return
  1356.     end
  1357.     if @fade_out == false and $game_temp.message_text != nil
  1358.       @contents_showing = true
  1359.       $game_temp.message_window_showing = true
  1360.       refresh
  1361.       Graphics.frame_reset
  1362.       self.visible = true
  1363.       self.contents_opacity = 0
  1364.     if @input_number_window != nil
  1365.       @input_number_window.contents_opacity = 0
  1366.     end
  1367.       @fade_in = true
  1368.       return
  1369.     end
  1370.     if self.visible
  1371.       @fade_out = true
  1372.       self.opacity -= 48
  1373.       if self.opacity == 0
  1374.         self.visible = false
  1375.         @fade_out = false
  1376.         $game_temp.message_window_showing = false
  1377.       end
  1378.       return
  1379.     end
  1380.     #........................................................................
  1381.   else
  1382.    super
  1383.    # 呼出模式下跟随事件移动
  1384.    if @tale != nil
  1385.      pos = get_fuki_pos(self.width, self.height)
  1386.      self.x = pos[0]
  1387.      self.y = pos[1]

  1388.      tale_pos = get_tale_pos
  1389.      @tale.x = tale_pos[0]
  1390.      @tale.y = tale_pos[1]
  1391.      
  1392.      if @name_win != nil
  1393.        name_pos = get_name_pos
  1394.        @name_win.x = name_pos[0]
  1395.        @name_win.y = name_pos[1]
  1396.        case @face_pic_txt
  1397.          when 0  # 文字
  1398.            @name_contents.x = @name_win.x + 12
  1399.            @name_contents.y = @name_win.y + 8
  1400.          when 1  # 图片
  1401.            @name_contents.x = @name_win.x + 2
  1402.            @name_contents.y = @name_win.y + 2
  1403.          end
  1404.      end
  1405.    end
  1406.    
  1407.    # 渐变的情况下
  1408.    if @fade_in
  1409.      self.contents_opacity += 24
  1410.      if @name_win != nil
  1411.        @name_win.opacity += 24
  1412.      end
  1413.      if @tale != nil
  1414.        @tale.opacity += 24
  1415.      end
  1416.      if @input_number_window != nil
  1417.        @input_number_window.contents_opacity += 24
  1418.      end
  1419.      if self.contents_opacity == 255
  1420.        @fade_in = false
  1421.      end
  1422.      return
  1423.    end
  1424.    # 显示信息中的情况下
  1425.    if @contents_drawing
  1426.      refresh_drawtext
  1427.      return
  1428.    end
  1429.    # 输入数值的情况下
  1430.    if @input_number_window != nil
  1431.      @input_number_window.update
  1432.      # 确定
  1433.      if Input.trigger?(Input::C)
  1434.        $game_system.se_play($data_system.decision_se)
  1435.        $game_variables[$game_temp.num_input_variable_id] =
  1436.          @input_number_window.number
  1437.        $game_map.need_refresh = true
  1438.        # 释放输入数值窗口
  1439.        @input_number_window.dispose
  1440.        @input_number_window = nil
  1441.        terminate_message
  1442.      end
  1443.      return
  1444.    end
  1445.    # 显示信息结束的情况下
  1446.    if @contents_showing_end
  1447.      # 不是显示选择项且不是呼出对话模式则显示暂停标志
  1448.      if $game_temp.choice_max == 0 and @tale == nil
  1449.        self.pause = true
  1450.      else
  1451.        self.pause = false
  1452.      end
  1453.      # 取消
  1454.      if Input.trigger?(Input::B)
  1455.        if $game_temp.choice_max > 0 and $game_temp.choice_cancel_type > 0
  1456.          $game_system.se_play($data_system.cancel_se)
  1457.          $game_temp.choice_proc.call($game_temp.choice_cancel_type - 1)
  1458.          terminate_message
  1459.        end
  1460.      end
  1461.      # 确定
  1462.      if Input.trigger?(Input::C)
  1463.        if $game_temp.choice_max > 0
  1464.          $game_system.se_play($data_system.decision_se)
  1465.          $game_temp.choice_proc.call(self.index)
  1466.        end
  1467.        terminate_message
  1468.        # 释放呼出窗口
  1469.        del_fukidasi
  1470.      end
  1471.      return
  1472.    end
  1473.    # 在渐变以外的状态下有等待显示的信息与选择项的场合
  1474.    if @fade_out == false and $game_temp.message_text != nil
  1475.      @contents_showing = true
  1476.      $game_temp.message_window_showing = true
  1477.      reset_window
  1478.      refresh_create
  1479.      if @name_win != nil
  1480.        @name_win.opacity = 0
  1481.      end
  1482.      if @tale != nil
  1483.        @tale.opacity = 0
  1484.      end
  1485.      Graphics.frame_reset
  1486.      self.visible = true
  1487.      self.contents_opacity = 0
  1488.      if @input_number_window != nil
  1489.        @input_number_window.contents_opacity = 0
  1490.      end
  1491.      @fade_in = true
  1492.      return
  1493.    end
  1494.    # 没有可以显示的信息、但是窗口为可见的情况下
  1495.    if self.visible
  1496.      @fade_out = true
  1497.      self.opacity -= 48
  1498.      if @name_win != nil
  1499.        @name_win.opacity -= 48
  1500.      end
  1501.      if @tale != nil
  1502.        @tale.opacity -= 48
  1503.      end
  1504.      if self.opacity == 0
  1505.        self.visible = false
  1506.        @fade_out = false
  1507.        $game_temp.message_window_showing = false
  1508.        del_fukidasi
  1509.      end
  1510.      return
  1511.    end
  1512.   end
  1513. end

  1514. #--------------------------------------------------------------------------
  1515. # ● 透過文字描画 - 66rpg
  1516. #--------------------------------------------------------------------------
  1517. # target :描画対象。Bitmapクラスを指定。
  1518. # x :x座標
  1519. # y :y座標
  1520. # str  :描画文字列
  1521. # opacity:透過率(0~255)
  1522. # 返回値 :文字幅(@x増加値)。
  1523. #--------------------------------------------------------------------------
  1524. def opacity_draw_text(target, x, y, str,opacity)
  1525.    height = target.font.size
  1526.    width = target.text_size(str).width
  1527.    opacity = [[opacity, 0].max, 255].min
  1528.    if opacity == 255
  1529.      target.draw_text(x, y, width, height, str)
  1530.      return width
  1531.    else
  1532.      if @opacity_text_buf.width < width or @opacity_text_buf.height < height
  1533.        @opacity_text_buf.dispose
  1534.        @opacity_text_buf = Bitmap.new(width, height)
  1535.      else
  1536.        @opacity_text_buf.clear
  1537.      end
  1538.      @opacity_text_buf.font.size = target.font.size
  1539.      @opacity_text_buf.draw_text(0, 0, width, height, str)
  1540.      target.blt(x, y, @opacity_text_buf, Rect.new(0, 0, width, height), opacity)
  1541.    return width
  1542.    end
  1543. end
  1544. def ruby_draw_text(target, x, y, str,opacity)
  1545.    sizeback = target.font.size
  1546.    target.font.size * 3 / 2 > 32 ? rubysize = 32 - target.font.size : rubysize = target.font.size / 2
  1547.    rubysize = [rubysize, 6].max
  1548.    
  1549.    opacity = [[opacity, 0].max, 255].min
  1550.    split_s = str.split(/,/)
  1551.    
  1552.    split_s[0] == nil ? split_s[0] = "" : nil
  1553.    split_s[1] == nil ? split_s[1] = "" : nil
  1554.    
  1555.    height = sizeback + rubysize
  1556.    width = target.text_size(split_s[0]).width
  1557.    
  1558.    target.font.size = rubysize
  1559.    ruby_width = target.text_size(split_s[1]).width
  1560.    target.font.size = sizeback
  1561.    
  1562.    buf_width = [target.text_size(split_s[0]).width, ruby_width].max
  1563.    
  1564.    width - ruby_width != 0 ? sub_x = (width - ruby_width) / 2 : sub_x = 0
  1565.    
  1566.    if opacity == 255
  1567.      target.font.size = rubysize
  1568.      target.draw_text(x + sub_x, y - target.font.size, target.text_size(split_s[1]).width, target.font.size, split_s[1])
  1569.      target.font.size = sizeback
  1570.      target.draw_text(x, y, width, target.font.size, split_s[0])
  1571.      return width
  1572.    else
  1573.      if @opacity_text_buf.width < buf_width or @opacity_text_buf.height < height
  1574.        @opacity_text_buf.dispose
  1575.        @opacity_text_buf = Bitmap.new(buf_width, height)
  1576.      else
  1577.        @opacity_text_buf.clear
  1578.      end
  1579.      @opacity_text_buf.font.size = rubysize
  1580.      @opacity_text_buf.draw_text(0 , 0, buf_width, rubysize, split_s[1], 1)
  1581.      @opacity_text_buf.font.size = sizeback
  1582.      @opacity_text_buf.draw_text(0 , rubysize, buf_width, sizeback, split_s[0], 1)
  1583.      if sub_x >= 0
  1584.        target.blt(x, y - rubysize, @opacity_text_buf, Rect.new(0, 0, buf_width, height), opacity)
  1585.      else
  1586.        target.blt(x + sub_x, y - rubysize, @opacity_text_buf, Rect.new(0, 0, buf_width, height), opacity)
  1587.      end
  1588.      return width
  1589.    end
  1590. end

  1591. #--------------------------------------------------------------------------
  1592. # ● 释放
  1593. #--------------------------------------------------------------------------
  1594. def dispose
  1595.   if $game_switches[125]
  1596.    #........................................................................
  1597.    terminate_message
  1598.    if @gaiji_cache != nil
  1599.      unless @gaiji_cache.disposed?
  1600.        @gaiji_cache.dispose
  1601.      end
  1602.    end
  1603.    unless @opacity_text_buf.disposed?
  1604.      @opacity_text_buf.dispose
  1605.    end
  1606.    $game_temp.message_window_showing = false
  1607.    if @input_number_window != nil
  1608.      @input_number_window.dispose
  1609.    end
  1610.    super
  1611.    #........................................................................
  1612.   else
  1613.    terminate_message
  1614.    $game_temp.message_window_showing = false
  1615.    if @input_number_window != nil
  1616.      @input_number_window.dispose
  1617.    end
  1618.    super
  1619.   end
  1620. end

  1621. #--------------------------------------------------------------------------
  1622. # ● 信息结束处理
  1623. #--------------------------------------------------------------------------
  1624. def terminate_message
  1625.   if $game_switches[125]
  1626.    #........................................................................
  1627.    self.active = false
  1628.    self.pause = false
  1629.    self.index = -1
  1630.    self.contents.clear
  1631.    # 清除显示中标志
  1632.    @contents_showing = false
  1633.    # 呼叫信息调用
  1634.    if $game_temp.message_proc != nil
  1635.      $game_temp.message_proc.call
  1636.    end
  1637.    # 清除文章、选择项、输入数值的相关变量
  1638.    $game_temp.message_text = nil
  1639.    $game_temp.message_proc = nil
  1640.    $game_temp.choice_start = 99
  1641.    $game_temp.choice_max = 0
  1642.    $game_temp.choice_cancel_type = 0
  1643.    $game_temp.choice_proc = nil
  1644.    $game_temp.num_input_start = 99
  1645.    $game_temp.num_input_variable_id = 0
  1646.    $game_temp.num_input_digits_max = 0
  1647.    # 开放金钱窗口
  1648.    if @gold_window != nil
  1649.      @gold_window.dispose
  1650.      @gold_window = nil
  1651.    end
  1652.    if @name_window_frame != nil
  1653.      @name_window_frame.dispose
  1654.      @name_window_frame = nil
  1655.    end
  1656.    if @name_window_text != nil
  1657.      @name_window_text.dispose
  1658.      @name_window_text = nil
  1659.    end
  1660.    if @right_picture != nil and @right_keep == true
  1661.      @right_picture.dispose
  1662.    end   
  1663.    if @left_picture != nil and @left_keep == true
  1664.      @left_picture.dispose
  1665.    end
  1666.    #........................................................................
  1667.   else
  1668.    self.active = false
  1669.    self.pause = false
  1670.    self.index = -1
  1671.    self.contents.clear
  1672.    # 清除显示中标志
  1673.    @contents_showing = false
  1674.    @contents_showing_end = false
  1675.    # 呼叫信息调用
  1676.    if $game_temp.message_proc != nil
  1677.      $game_temp.message_proc.call
  1678.    end
  1679.    # 清除文章、选择项、输入数值的相关变量
  1680.    $game_temp.message_text = nil
  1681.    $game_temp.message_proc = nil
  1682.    $game_temp.choice_start = 99
  1683.    $game_temp.choice_max = 0
  1684.    $game_temp.choice_cancel_type = 0
  1685.    $game_temp.choice_proc = nil
  1686.    $game_temp.num_input_start = 99
  1687.    $game_temp.num_input_variable_id = 0
  1688.    $game_temp.num_input_digits_max = 0
  1689.    # 释放金钱窗口
  1690.    if @gold_window != nil
  1691.      @gold_window.dispose
  1692.      @gold_window = nil
  1693.    end
  1694.   end
  1695. end

  1696. #--------------------------------------------------------------------------
  1697. # ● 刷新光标矩形
  1698. #--------------------------------------------------------------------------
  1699. def update_cursor_rect
  1700.   if $game_switches[125]
  1701.    #.........................................................................
  1702.    if @index >= 0
  1703.      n = $game_temp.choice_start + @index
  1704.      self.cursor_rect.set(4 + @indent + @face_indent, n * 32 + 4, @cursor_width, 32)
  1705.    else
  1706.      self.cursor_rect.empty
  1707.    end
  1708.    #.........................................................................
  1709.   else
  1710.    if @index >= 0
  1711.      n = $game_temp.choice_start + @index
  1712.      self.cursor_rect.set(8, n * 32, @cursor_width, 32)
  1713.    else
  1714.      self.cursor_rect.empty
  1715.    end
  1716.   end
  1717. end
  1718. #--------------------------------------------------------------------------
  1719. # ● 取得普通文字色
  1720. #--------------------------------------------------------------------------
  1721. def normal_color
  1722.    nil_color = Color.new(0,0,0,0)
  1723.    if FUKI::FUKI_COLOR != nil_color
  1724.      color = FUKI::FUKI_COLOR
  1725.    else
  1726.      color = super
  1727.    end
  1728.    return color
  1729. end
  1730. end

  1731. #==============================================================================
  1732. # ■ Interpreter
  1733. #==============================================================================

  1734. class Interpreter
  1735. #--------------------------------------------------------------------------
  1736. # ● 设置事件
  1737. #     event_id : 事件 ID
  1738. #--------------------------------------------------------------------------
  1739. alias setup_fuki setup
  1740. def setup(list, event_id)
  1741.    setup_fuki(list, event_id)
  1742.    # 如果不是战斗中
  1743.    if !($game_temp.in_battle)
  1744.      # 记录事件 ID
  1745.      $active_event_id = event_id
  1746.    end
  1747. end
  1748. end

  1749. #==============================================================================
  1750. # ■ Scene_Map
  1751. #==============================================================================

  1752. class Scene_Map
  1753. #--------------------------------------------------------------------------
  1754. # ● 主处理
  1755. #--------------------------------------------------------------------------
  1756. def main
  1757.    # 生成活动块
  1758.    @spriteset = Spriteset_Map.new
  1759.    # 生成信息窗口
  1760.    @message_window = Window_FukiMessage.new
  1761.    # 执行过渡
  1762.    Graphics.transition
  1763.    # 主循环
  1764.    loop do
  1765.      # 刷新游戏画面
  1766.      Graphics.update
  1767.      # 刷新输入信息
  1768.      Input.update
  1769.      # 刷新画面
  1770.      update
  1771.      # 如果画面切换的话就中断循环
  1772.      if $scene != self
  1773.        break
  1774.      end
  1775.    end
  1776.    # 准备过渡
  1777.    Graphics.freeze
  1778.    # 释放活动块
  1779.    @spriteset.dispose
  1780.    # 释放信息窗口
  1781.    @message_window.dispose
  1782.    # 标题画面切换中的情况下
  1783.    if $scene.is_a?(Scene_Title)
  1784.      # 淡入淡出画面
  1785.      Graphics.transition
  1786.      Graphics.freeze
  1787.    end
  1788. end
  1789. end

  1790. #==============================================================================
  1791. # ■ Window_InputNumber
  1792. #==============================================================================

  1793. class Window_InputNumber < Window_Base
  1794. #--------------------------------------------------------------------------
  1795. # ● 初始化对像
  1796. #     digits_max : 位数
  1797. #--------------------------------------------------------------------------
  1798. def initialize(digits_max)
  1799.    @digits_max = digits_max
  1800.    @number = 0
  1801.    # 从数字的幅度计算(假定与 0~9 等幅)光标的幅度
  1802.    dummy_bitmap = Bitmap.new(32, 32)
  1803.    dummy_bitmap.font.size = FUKI::MES_FONT_SIZE
  1804.    @cursor_width = dummy_bitmap.text_size("0").width + 8
  1805.    dummy_bitmap.dispose
  1806.    super(0, 0, @cursor_width * @digits_max + 32, 64)
  1807.    self.contents = Bitmap.new(width - 32, height - 32)
  1808.    self.contents.font.size = FUKI::MES_FONT_SIZE
  1809.    self.z = 9999
  1810.    self.opacity = 0
  1811.    @index = 0
  1812.    refresh
  1813.    update_cursor_rect
  1814. end
  1815. end
复制代码

Lv5.捕梦者 (版主)

梦石
1
星屑
23984
在线时间
3339 小时
注册时间
2011-7-8
帖子
3926

开拓者

2
发表于 2015-6-4 17:53:28 | 只看该作者
是不是因为位置太靠边上了?把地图画大一点吧。
熟悉rgss和ruby,xp区版主~
正在填坑:《膜拜组传奇》讲述膜拜组和学霸们的故事。
已上steam:与TXBD合作的Reformers《变革者》
* 战斗调用公共事件 *
* RGSOS 网络脚本 *
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
14 小时
注册时间
2015-4-5
帖子
31
3
 楼主| 发表于 2015-6-5 09:32:25 | 只看该作者
guoxiaomi 发表于 2015-6-4 17:53
是不是因为位置太靠边上了?把地图画大一点吧。

好像不是 所有有选项的都这样
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
76
在线时间
1379 小时
注册时间
2012-7-5
帖子
1698

开拓者

4
发表于 2015-6-5 12:12:58 | 只看该作者
我还会手动12
原脚本第 294 行下增加一行:   h += 12 if $game_temp.choice_max > 0
即:
出了别的问题别来找我

点评

谢谢~完美解决了!  发表于 2015-6-5 15:07

评分

参与人数 1梦石 +1 收起 理由
hys111111 + 1 认可答案

查看全部评分


  -fk: -azogi:
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-9-23 03:34

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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