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

Project1

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

[转载] 【嘿嘿】VA真FUKI系统

[复制链接]

Lv1.梦旅人

梦石
0
星屑
66
在线时间
140 小时
注册时间
2012-2-6
帖子
384
跳转到指定楼层
1
发表于 2012-3-16 18:07:29 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
本帖最后由 杂兵天下 于 2012-3-16 22:30 编辑

来源:http://xrxs.at-ninja.jp/
@eve592370698应当可以停止那个不完整的工程了。
看这个范例文章(带头像):

  1. \name[地精王]\h[4]傻蛋,你一定要记住,别再来继续烦我               
  2. 了!!!!!!!!
复制代码
看这个范例文章(不带头像):

  1. \name[地精王]\h[-1]傻蛋,你一定要记住,别再来继续烦我
  2. 了!!!!!!!!
复制代码
注意到不同了么?注意看空格

RUBY 代码复制
  1. =begin
  2. 吹きだしウィンドウVXAce
  3.  
  4. 2011.12.25 tamura改造
  5. 2012年02月28日 改訂
  6.  
  7. ※このスクリプトは、ちいさな本屋様([url]http://xrxs.at-ninja.jp/[/url])
  8. が製作されたものをtamuraがACE用に改造した物です。
  9.  
  10. 原版:
  11.  ▽▽▽ XRXSv2. メッセージ表示フルグレードアップVX ▽▽▽
  12.  publish 2010/ 3/ 2
  13.  update  - 11/ 1/10a
  14.  
  15.  
  16. ※※警告※※
  17. 「立ち絵機能」をONにしている時に、立ち絵を表示せずに、ウィンドウ位置を
  18. 右か左に変更した時、テールのY座標がずれるようです。
  19. 原因は調査中です。立ち絵を表示しない時は、イベントコマンド「注釈」で、
  20. 「立ち絵表示 off」と記述して立ち絵機能をOFFにしておいてください。
  21.  
  22. ●機能一覧
  23. ?イベントコマンド「スクリプト」で、$win_x $win_yに値を入力すると、
  24.  ($win_x 、$win_y)の位置にウィンドウを表示する。画面左上が(0,0)。
  25.  
  26. ?キーボードのQ(装備画面で前のキャラに戻るボタン)を押すと、
  27.  ウィンドウが消える。Qか決定、キャンセルキーで元に戻る。
  28.  
  29. ?文章のどこでもいいので、以下の表記を行う。
  30. ? \name[] : []の中の文字を、ウィンドウ左上に小さく表示する。
  31.  
  32.  \h[-1] : プレーヤーの上にウィンドウをポップ。
  33.  \h[0] : 現在アクティブのイベントの上にウィンドウをポップ。
  34.  \h[1] : IDが1番のイベントの上にウィンドウをポップする。
  35.  hは大文字でもOK。
  36.  
  37. ウィンドウは通常の大きさのまま、テールだけ表示したい場合は、
  38.  \t[-2] : ウィンドウが上下に表示される時は、X座標をMINAS_TWE_X_POSで固定。
  39.            $win_x で左右に表示される時は、Y座標がウィンドウの中心やや下で固定。
  40.  \t[-3] : ウィンドウが上下に表示される時は、X座標をMINAS_THREE_X_POSで固定。
  41.            $win_x で左右に表示される時は、Y座標がウィンドウの中心やや下で固定。
  42.  \t[-1] : プレーヤーの上に向かってテール表示。
  43.  \t[0] : 現在アクティブのイベントに向かってテール表示。
  44.  \t[1] : IDが1番のイベントの上に向かってテール表示。
  45.  
  46.  \O[128] : 文字を透明にする。128はalphaの値で、0で透明、255で通常。
  47.  \D : 文字に影をつける
  48.  \hold : メッセージ表示の、最後の文章に限定。
  49.       メッセージが終わっても、ウィンドウを閉じずに残します。
  50.       他のメッセージが表示されて次へ送られる時に消えます。
  51.       なお、ホールドされているウィンドウは、Qボタンで消せません。
  52.  
  53.  
  54. ●その他
  55. ?ACEに標準装備されている機能は通常通り使用できます。
  56. ?A1殿([url]http://a1tktk.web.fc2.com/[/url])の立ち絵スクリプトに対応しています。
  57.  このスクリプトの上に「RGSS3用A1共通処理」
  58.  このスクリプトの下に「空メッセージでウィンドウを開かない」「立ち絵表示」を
  59.  配置して下さい。
  60.  残念ながら、「ネームウィンドウ」は使えません。上記\nameをお使いください。
  61. ※立ち絵を表示しない時は、注釈で「立ち絵表示 off」とした方が無難です。
  62. ?イベントの下から話しかけたら上へポップ、上から話しかけたら下へポップするという
  63.  機能を追加。カスタマイズポイントで POP_DIRECTION = ture と変更のこと。
  64.  
  65.  
  66. ●廃止機能 
  67. ?\Iがすでに使われているので、イタリック文字変換を廃止。
  68. ?スピード変更、改行、最後に入手したアイテムの表示を、ACE化にともない廃止。
  69.  
  70.  
  71. 【改訂履歴】
  72. 2012.01.10  ?ウィンドウを消したまま次のウィンドウを自動で表示すると、
  73.               ネームウィンドウが表示されるのを修正。
  74. 2012.01.11  ?ネームウィンドウが出しっぱなしになるのを修正。
  75. 2012.01.12  ?メニューを出してから決定ボタンを押すとネームウィンドウがでる不具合の修正。
  76. 2012.02.01 ?ネームウィンドウのオープン&クローズのタイミングを変更。
  77.       ?hold機能を追加。
  78. 2012.02.10 ?キャラポップした時、一行ずつしか表示されない不具合を修正。
  79. 2012.02.14 ?アイテム名などの文字数が正常に取得できなかったのを修正。
  80. 2012.02.21 ?話しかけられた方向によって、ポップ方向を変えられるようにした。
  81. 2012.02.25 ?すべてのシーン遷移の際はテールを破棄(イベント中でショップ起動など)
  82. 2012.02.28 ?エスケープ文字の処理が上手くいかない問題について暫定対策。
  83.  
  84. =end
  85.  
  86. #==============================================================================
  87. # カスタマイズポイント
  88. #==============================================================================
  89. #=begin
  90. class Window_Message < Window_Base
  91.   #
  92.   # 基本行数
  93.   #
  94.   MAX_LINE = 4
  95.   #
  96.   # \p[] - キャラポップの高さ
  97.   #
  98.   CHARPOP_HEIGHT = 40
  99.   #
  100.   # \name[] - 名前枠 X,Y座標
  101.   #
  102.   NAME_WINDOW_OFFSET_X =   0
  103.   NAME_WINDOW_OFFSET_Y = -24
  104.   #
  105.   #
  106.   MINAS_TWE_X_POS = 100 # $t[-2]のときの、テールのX座標。
  107.   MINAS_THREE_X_POS = 444 # $t[-3]のときの、テールのX座標。
  108.  
  109.   POP_DIRECTION = false #イベントの方向を考慮。
  110. end
  111. #==============================================================================
  112. # 参照機能
  113. #==============================================================================
  114. class Game_Temp
  115.   attr_accessor :last_gain_material
  116.   attr_accessor :last_gain_holder
  117. end
  118. #==============================================================================
  119. # フルグレードアップベース - 制御文字?基本機能
  120. #==============================================================================
  121. class Window_Message < Window_Base
  122.   attr_accessor :tail
  123.   #--------------------------------------------------------------------------
  124.   # ● 特殊文字の変換 + 準備
  125.   #     変換?消去してもいい部分を処理、フラグのセット。
  126.   #--------------------------------------------------------------------------
  127.   alias xrxsv2_convert_escape_characters convert_escape_characters
  128.   def convert_escape_characters(text)
  129.     #@textsが使いずらいので、ここで別変数に保管。
  130.     @all_texts = []
  131.     str = text.gsub(/\\/) { "\e" }
  132.     @all_texts = str.split("\n")
  133.  
  134.     # 初期化
  135.     contents.font.size   = Font.default_size
  136.     contents.font.bold   = Font.default_italic
  137.     contents.font.italic = Font.default_bold
  138.     contents.font.shadow = Font.default_shadow
  139.     @type_wait = 0
  140.     @line_widths = []
  141.     @line_aligns = []
  142.     self.pop_character = nil
  143.     # ウィンドウ保持指定\holdがあるか?
  144.     @window_hold = (text.gsub!(/\\hold/) { "" } != nil)
  145.     # \info
  146.     @info_mode = (text.gsub!(/\\info/) { "" } != nil)
  147.     # 改行削除指定\_があるか?
  148.     if (/\\_(.*?)\x00/.match(@text)) != nil
  149.       $game_message.choice_start -= 1
  150.       text.gsub!(/\\_(.*?)\x00/) { $1.to_s }
  151.     end
  152.     # \name 判定
  153.     if text.sub!(/\\[Nn]ame\[(.*?)\]/) { "" }
  154.       name = $1
  155.       bitmap = @name_sprite.bitmap
  156.       w = [bitmap.text_size(name).width, 1].max
  157.       bitmap.dispose
  158.       @name_sprite.bitmap = Bitmap.new(w, 32)
  159.       bitmap = @name_sprite.bitmap
  160.       bitmap.draw_text(0, 0, bitmap.width, bitmap.height, name)
  161.       @name_window.width = w + 16
  162.       @name_window.create_contents
  163.       @name_window.open if @name_window.openness == 0
  164.       if self.visible #名前だけ表示されるのを防止。
  165.         @name_window.visible = true
  166.         @name_sprite.visible = true
  167.       else
  168.         @name_window.visible = false
  169.         @name_sprite.visible = false
  170.       end
  171.     else
  172.       @name_window.visible = false
  173.       @name_sprite.visible = false
  174.       @name_sprite.bitmap.dispose
  175.       @name_sprite.bitmap = Bitmap.new(32,32)
  176.     end
  177.     $name = $1 #あれこれで使うので、ネームウィンドウに表示予定の名前を取得。
  178.     # キャラボップモード
  179.     if text.gsub!(/\\[Hh]\[-1\]/) { "" }
  180.       self.pop_character = -1
  181.     elsif text.gsub!(/\\[Hh]\[([0-9]+)\]/) { "" }
  182.       self.pop_character = $1.to_i
  183.     elsif text.gsub!(/\\[Hh]/) { "" }
  184.       self.pop_character = 0
  185.     #テール表示モード
  186.     elsif text.gsub!(/\\[Tt]\[-1\]/) { "" }
  187.       self.tail_character = -1
  188.     elsif text.gsub!(/\\[Tt]\[-2\]/) { "" }
  189.       self.tail_character = -2
  190.     elsif text.gsub!(/\\[Tt]\[-3\]/) { "" }
  191.       self.tail_character = -3
  192.     elsif text.gsub!(/\\[Tt]\[([0-9]+)\]/) { "" }
  193.       self.tail_character = $1.to_i
  194.     elsif text.gsub!(/\\[Tt]/) { "" }
  195.       self.tail_character = 0
  196.     else
  197.       self.pop_character = nil
  198.     end
  199.  
  200.     # 制御文字処理
  201.     text = xrxsv2_convert_escape_characters(text)
  202.     text.gsub!(/\\[Ss]\[([0-9]+)\]/i) { "\eS[#{$1}]" }
  203.     text.gsub!(/\\[Oo]\[([0-9]+)\]/i) { "\eO[#{$1}]" }
  204.     text.gsub!(/\\last_holder/i) { "\e18" }
  205.     text.gsub!(/\\last_material/i) { "\e19" }
  206.     text.gsub!(/\\B/) { "\eB" }
  207.     text.gsub!(/\\D/) { "\eD" }
  208.     #text.gsub!(/\\n/) { "\n" }
  209.     #
  210.     # ライン情報の取得
  211.     rxs = ["\x01","\x02","\x03","\x04","\x05","\x06","\x07","\x08",
  212.       /\[([0-9]+)\]/,
  213.       "\x11","\x12","\x13","\x14", "\x15", "\x16", "\x17", "\x18","\x19"]
  214.     lines = text.split("\x00")
  215.     @lines_max = lines.size
  216.     for i in 0...@lines_max
  217.       line = lines[i]
  218.       for rx in rxs
  219.         line.gsub!(rx) {""}
  220.       end
  221.       @line_aligns[i] =
  222.         line.sub!(/\\center/) {""} ? CENTER :
  223.         line.sub!(/\\right/)  {""} ? RIGHT :
  224.                                      AUTO
  225.       # 行の横幅の取得と設定
  226.       cx = text_width_no_escape(line,text) #test
  227.       #cx = contents.text_size(line,text).width
  228.       @line_widths[i] = cx
  229.     end
  230.     # 位置揃え制御文字の削除
  231.     text.gsub!(/\\center/) {""}
  232.     text.gsub!(/\\right/) {""}
  233.     # キャラポップ時のウィンドウリサイズ
  234.     reszie_window_for_pop
  235.  
  236.     del_tail # if @tail != nil
  237.     # $mes_id が空のときと戦闘中はふきだしを表示しない
  238.     if defined?($game_system.show_stand_picture) #立ち絵に対応。
  239.       $mes_id = -1 if $game_system.show_stand_picture == true
  240.     end
  241.     if $mes_id != nil and not $game_party.in_battle
  242.       # ふきだしのテールを描画
  243.       skin = "Window"
  244.       if @background == 0
  245.         #画像の準備
  246.         @tail = Sprite.new
  247.         @tail.visible = false
  248.         # 位置を取得
  249.         tale_pos = get_tale_pos
  250.         if $win_x != nil
  251.           if $win_x > 0
  252.             @tail.bitmap = Cache.system(skin + "-right")
  253.             @tail.x = tale_pos[0]
  254.             @tail.y = tale_pos[1]
  255.             @tail.z = self.z + 1
  256.           elsif  $win_x < 0
  257.             @tail.bitmap = Cache.system(skin + "-left")
  258.             @tail.x = tale_pos[0]
  259.             @tail.y = tale_pos[1]
  260.             @tail.z = self.z + 1
  261.           else
  262.             create_tail_up_under
  263.           end
  264.         else
  265.           create_tail_up_under
  266.         end
  267.         # エクストラスプライトに登録
  268.         @extra_sprites = [] if @extra_sprites.nil?
  269.         @extra_sprites.push(@tail) if @tail != nil
  270.         # 更新
  271.         update_tail
  272.       end
  273.     end
  274.  
  275.     open_and_wait #リサイズが終わった時点でウィンドウオープン。
  276.  
  277.     return text
  278.   end
  279.   #--------------------------------------------------------------------------
  280.   # ● 文字の長さを取得する。エスケープ文字は含まない。
  281.   # line : 表示しようとしている全ての文字列。
  282.   # text : その列の文字。
  283.   #--------------------------------------------------------------------------
  284.   def text_width_no_escape(line , text_o)
  285.     add = 0
  286.     text = Marshal.load(Marshal.dump(text_o))
  287.     text.gsub!(/\ehold/) { "" }
  288.     text.gsub!(/\einfo/) { "" }
  289.     # 改行削除指定\_があるか?
  290.     if (/\\_(.*?)\x00/.match(@text)) != nil
  291.       $game_message.choice_start -= 1
  292.       text.gsub!(/\\_(.*?)\x00/) { "" }
  293.     end
  294.     # \name 判定
  295.     text.sub!(/\e[Nn]ame\[(.*?)\]/) { "" }
  296.     text.gsub!(/\e[Hh]\[-1\]/) { "" }
  297.     text.gsub!(/\e[Hh]\[([0-9]+)\]/) { "" }
  298.     text.gsub!(/\e[Hh]/) { "" }
  299.     text.gsub!(/\e[Tt]\[-1\]/) { "" }
  300.     text.gsub!(/\e[Tt]\[-2\]/) { "" }
  301.     text.gsub!(/\e[Tt]\[-3\]/) { "" }
  302.     text.gsub!(/\e[Tt]\[([0-9]+)\]/) { "" }
  303.     text.gsub!(/\e[Tt]/) { "" }
  304.     # 制御文字処理
  305.     text.gsub!(/\e[Ss]\[([0-9]+)\]/i) { "" }
  306.     text.gsub!(/\e[Oo]\[([0-9]+)\]/i) { "" }
  307.     text.gsub!(/\elast_holder/i) { "" }
  308.     text.gsub!(/\elast_material/i) { "" }
  309.     #text.gsub!(/\eV/) { "" } #変数に置き換える。
  310.     #text.gsub!(/\eN/) { "" } #名前へ置き換える。
  311.     #text.gsub!(/\eP/) { "" } #名前へ置き換える。
  312.     #text.gsub!(/\eG/) { "" } #金額へ置き換える。
  313.     #text.gsub!(/\eC/) { "" }
  314.     text.gsub!(/\eB/) { "" }
  315.     text.gsub!(/\eD/) { "" }
  316.     if text =~ /\eI/
  317.       loop do
  318.         if str = text.sub!(/\eI\[(\d+)\]/){ "" }
  319.           add += 24
  320.         else
  321.           break
  322.         end
  323.       end
  324.     end
  325.     #text.gsub!(/\\n/) { "\n" }
  326.     text.sub!(/\ecenter/) {""}
  327.     text.sub!(/\eright/)  {""}
  328.     text.gsub!(/\ecenter/) {""}
  329.     text.gsub!(/\eright/) {""}
  330.  
  331.     text = xrxsv2_convert_escape_characters(text)
  332.     basic_width = text_size(text).width + add
  333.     esc = text.scan(/\e(\S)/)
  334.     return ( basic_width - esc.size * (contents.font.size - 4) ) #\eの幅は20?
  335.   end
  336.   #--------------------------------------------------------------------------
  337.   # ● 最も長い列の長さを調べる。エスケープ文字は含まない。
  338.   #--------------------------------------------------------------------------
  339.   def max_width
  340.     text_size = []
  341.     for i in 0 ... @all_texts.size
  342.       text_size.push text_width_no_escape(@all_texts[i],@all_texts[i]) + 20
  343.     end
  344.     return text_size.max
  345.   end
  346.   #--------------------------------------------------------------------------
  347.   # ● 吹きだしテールが上か下の場合の画像を準備。
  348.   #--------------------------------------------------------------------------
  349.   def create_tail_up_under
  350.     skin = "Window"
  351.     tale_pos = get_tale_pos
  352.     case @position
  353.     when 0  # 上
  354.       @tail.bitmap = Cache.system(skin + "-top")
  355.       @tail.x = tale_pos[0]
  356.       @tail.y = tale_pos[1]
  357.       @tail.z = self.z + 1
  358.     when 1  # 中
  359.       @tail.dispose
  360.       @tail = nil
  361.     when 2  # 下
  362.       @tail.bitmap = Cache.system(skin + "-under")
  363.       @tail.x = tale_pos[0]
  364.       @tail.y = tale_pos[1]
  365.       @tail.z = self.z + 1
  366.     end
  367.   end
  368.   #--------------------------------------------------------------------------
  369.   # ● 全テキストの処理
  370.   #--------------------------------------------------------------------------
  371.   def process_all_text
  372.     #open_and_wait #リサイズがあるので、すぐにウィンドウをオープンしない。
  373.     text = convert_escape_characters($game_message.all_text)
  374.     pos = {}
  375.     new_page(text, pos)
  376.     process_character(text.slice!(0, 1), text, pos) until text.empty?
  377.   end
  378.   #--------------------------------------------------------------------------
  379.   # ● メッセージの更新 *
  380.   #--------------------------------------------------------------------------
  381.   def update_message
  382.     @wait_count = @type_wait
  383.     loop do
  384.       c = @text.slice!(/./m)
  385.       case update_message_type(c)
  386.       when 1
  387.         break
  388.       when 2
  389.         next
  390.       end
  391.       break unless @show_fast or @line_show_fast
  392.     end
  393.   end
  394.   #--------------------------------------------------------------------------
  395.   # 一文字の描画 (返り値 1:break, 2:next)
  396.   #--------------------------------------------------------------------------
  397. #=begin
  398.   def process_escape_character(code, text, pos)
  399.     case code.upcase
  400.     when '$'
  401.       @gold_window.open
  402.     when '.'
  403.       wait(15)
  404.     when '|'
  405.       wait(60)
  406.     when '!'
  407.       input_pause
  408.     when '>'
  409.       @line_show_fast = true
  410.     when '<'
  411.       @line_show_fast = false
  412.     when '^'
  413.       @pause_skip = true
  414.     #when 'n'                      # 改行
  415.     #  new_line
  416.     #  max = MAX_LINE
  417.     #  max = 14 if self.pop_character != nil
  418.     #  if @line_count >= max      # 行数が最大のとき
  419.     #    unless @text.empty?           # さらに続きがあるなら
  420.     #      self.pause = true           # 入力待ちを入れる
  421.           #return 1
  422.     #    end
  423.     #  end
  424.     #when 'S'                       # \S[n]  (スピード変更)
  425.     #  text.sub!(/\[([0-9]+)\]/, "")
  426.     #  @type_wait = $1.to_i
  427.     #  return 2
  428.     when 'O'                       # \O 文字を透明にする。
  429.       text.sub!(/\[([0-9]+)\]/, "")
  430.       contents.font.color.alpha = $1.to_i
  431.       #return 2
  432.     when 'D' #\D 文字に影をつける
  433.       contents.font.shadow ^= true
  434.     #when '18'
  435.     #  name = ($game_temp.last_gain_holder.name rescue "")
  436.     #  update_message_type_draw_at(name)
  437.     #when '19'
  438.     #  item = ($game_temp.last_gain_material.item rescue nil)
  439.     #  draw_item_name(item, @contents_x, @contents_y)
  440.     #  @contents_x += 196
  441.     else
  442.       super
  443.     end
  444.  
  445.   end
  446. #=end
  447.   #--------------------------------------------------------------------------
  448.   # ● 改ページ処理
  449.   #--------------------------------------------------------------------------
  450.   alias xrxsv2_new_page new_page
  451.   def new_page(text, pos)
  452.     xrxsv2_new_page(text, pos)
  453.     update_charpop_window
  454.   end
  455.   #--------------------------------------------------------------------------
  456.   # ● 改行位置の取得
  457.   #--------------------------------------------------------------------------
  458.   #def new_line_x
  459.   #  $game_message.face_name.empty? ? 0 : 112
  460.   #end
  461.   #--------------------------------------------------------------------------
  462.   # ● 改行処理
  463.   #--------------------------------------------------------------------------
  464.   alias xrxsv2_new_line_x new_line_x
  465.   def new_line
  466.     xrxsv2_new_line
  467.     set_align
  468.   end
  469.   #--------------------------------------------------------------------------
  470.   # 位置揃え
  471.   #--------------------------------------------------------------------------
  472.   def set_align
  473.     w = @line_widths[@line_count].to_i
  474.     a = @line_aligns[@line_count]
  475.     case a
  476.     when CENTER
  477.       @contents_x = @contents_x + ((contents.width - @contents_x) - w) / 2
  478.     when RIGHT
  479.       @contents_x = contents.width - w
  480.     end
  481.   end
  482.   #--------------------------------------------------------------------------
  483.   # ● ファイバーのメイン処理 ☆再定義
  484.   #--------------------------------------------------------------------------
  485.   def fiber_main
  486.     $game_message.visible = true
  487.     update_background
  488.     update_placement
  489.     loop do
  490.       process_all_text if $game_message.has_text?
  491.       process_input
  492.       $game_message.clear
  493.       @gold_window.close
  494.       process_hold #ホールドウィンドウの処理。
  495.       Fiber.yield
  496.       break unless text_continue?
  497.     end
  498.     close_and_wait
  499.     $game_message.visible = false
  500.     @fiber = nil
  501.   end
  502.   #--------------------------------------------------------------------------
  503.   # 定数
  504.   #--------------------------------------------------------------------------
  505.   AUTO   = 0
  506.   LEFT   = 1
  507.   CENTER = 2
  508.   RIGHT  = 3
  509. end
  510. #==============================================================================
  511. # アクティブイベント取得
  512. #==============================================================================
  513. class Game_Interpreter
  514.   attr_reader   :event_id
  515. end
  516.  
  517.  
  518. #==============================================================================
  519. # 各種機能の追加 - キャラポップ/ネーム/ホールド
  520. #==============================================================================
  521. class Window_Message < Window_Base
  522.   #--------------------------------------------------------------------------
  523.   # ● カーソルの更新 *
  524.   #--------------------------------------------------------------------------
  525.   def update_cursor
  526.     if @index >= 0
  527.       x = ($game_message.face_name.empty? ? 0 : 112)
  528.       y = ($game_message.choice_start + @index) * WLH - 1
  529.       w = contents.width - x
  530.       if self.pop_character != nil
  531.         x += 28
  532.         w -= 20
  533.       end
  534.       self.cursor_rect.set(x, y, w, WLH)
  535.     else
  536.       self.cursor_rect.empty
  537.     end
  538.   end
  539.   #--------------------------------------------------------------------------
  540.   # キャラクターの取得
  541.   #   parameter : パラメータ
  542.   #--------------------------------------------------------------------------
  543.   def get_character(parameter)
  544.     if parameter <= 0
  545.       $game_player
  546.     else
  547.       $game_map.events[parameter]
  548.     end
  549.   end
  550.   #--------------------------------------------------------------------------
  551.   # (メッセージ終了時)ホールドの処理
  552.   #--------------------------------------------------------------------------
  553.   def process_hold
  554.     if @window_hold
  555.       @held_windows.push(Window_Copy.new(self))
  556.       @held_windows.push(Window_Copy.new(@name_window))
  557.       @held_windows.push(Sprite_Copy.new(@name_sprite))
  558.       @held_windows.push(Sprite_Copy.new(@back_sprite))
  559.       for sprite in @extra_sprites
  560.         next if sprite.disposed?
  561.         @held_windows.push(Sprite_Copy.new(sprite))
  562.       end
  563.       @extra_sprites.clear
  564.       self.openness = 0
  565.       #@name_window.openness = 0
  566.       @back_sprite.visible = false
  567.     else
  568.       @held_windows.each {|object| object.dispose}
  569.       @held_windows.clear
  570.     end
  571.     #@name_window.close
  572.     #@name_sprite.visible = false
  573.   end
  574.   #--------------------------------------------------------------------------
  575.   # キャラポップ位置の設定と取得
  576.   #--------------------------------------------------------------------------
  577.   def pop_character=(character_id)
  578.     @pop_character = character_id
  579.   end
  580.   def pop_character
  581.     return @pop_character
  582.   end
  583.   #--------------------------------------------------------------------------
  584.   # キャラポップ時のウィンドウリサイズ
  585.   #--------------------------------------------------------------------------
  586.   def reszie_window_for_pop
  587.     #キャラポップ
  588.     if self.pop_character != nil
  589.       max_x = @line_widths.max.to_i
  590.       n  = max_x + 32
  591.       n += $game_message.face_name.empty? ? 0 : 122
  592.       m  = $game_message.face_name.empty? ? 0 : 96
  593.       w  = @name_sprite.bitmap.width
  594.       #self.width  = [n, w].max
  595.       self.width  = max_width
  596.       #self.height = [@lines_max * line_height, m].max + 32
  597.       self.height = [@all_texts.size * line_height, m].max + 32
  598.       create_contents
  599.       update_charpop_window
  600.     elsif @info_mode
  601.       @line_aligns[0] = CENTER
  602.       self.x = - 8
  603.       self.width = Graphics.width + 16
  604.       self.height = 56
  605.       create_contents
  606.     else
  607.       self.x = 0
  608.       self.width  = Graphics.width
  609.       self.height = MAX_LINE * line_height + 32
  610.       update_placement #位置情報修正。
  611.       create_contents
  612.     end
  613.   end
  614.   #--------------------------------------------------------------------------
  615.   # ● 背景スプライトの作成
  616.   #--------------------------------------------------------------------------
  617.   alias xrxsv2_create_back_sprite create_back_sprite
  618.   def create_back_sprite
  619.     xrxsv2_create_back_sprite
  620.     @back_sprite.zoom_x = 1.0 * Graphics.width / @back_sprite.bitmap.width
  621.     @name_window = Window_Base.new(0,0,112,36)
  622.     @name_window.visible = false
  623.     @name_sprite = Sprite.new
  624.     @name_sprite.bitmap = Bitmap.new(32,32)
  625.     @name_sprite.visible = false
  626.     self.x = self.x
  627.     self.y = self.y
  628.     self.z = self.z
  629.     @held_windows = []
  630.     @extra_sprites = []
  631.   end
  632.   #--------------------------------------------------------------------------
  633.   # ● 背景スプライトの解放
  634.   #--------------------------------------------------------------------------
  635.   alias xrxsv2_dispose_back_sprite dispose_back_sprite
  636.   def dispose_back_sprite
  637.     xrxsv2_dispose_back_sprite
  638.     @name_window.dispose if @name_window != nil #メニュー画面を出そうとするとエラー?
  639.     @name_sprite.dispose if @name_sprite != nil
  640.     for window in @held_windows
  641.       window.dispose
  642.     end
  643.   end
  644.   #--------------------------------------------------------------------------
  645.   # ● 背景スプライトの更新
  646.   #--------------------------------------------------------------------------
  647.   alias xrxsv2_update_back_sprite update_back_sprite
  648.   def update_back_sprite
  649.     @name_window.update
  650.     xrxsv2_update_back_sprite
  651.     update_charpop_window
  652.   end
  653.   #--------------------------------------------------------------------------
  654.   # ウィンドウの位置と不透明度の設定 (キャラポップ)
  655.   #--------------------------------------------------------------------------
  656.   def update_charpop_window
  657.     if self.pop_character
  658.       character = get_character(self.pop_character)
  659.       return if character == nil
  660.       # [X座標]
  661.       n = self.width / 2
  662.       n = [n, @name_skin.width + 16].max if @current_name != nil
  663.       w = @name_sprite.bitmap.width
  664.       x = character.screen_x - [[n, w].max, self.width - 32].min
  665.       # [Y座標]
  666.       if self.pop_character == 0 and POP_DIRECTION #イベントの方向を考慮。
  667.         if character.direction == 2 #下向き
  668.           @position = 0 #上にポップ
  669.         elsif character.direction == 8 #上向き
  670.           @position = 2 #下にポップ
  671.         end
  672.       end
  673.       case @position
  674.       when 0
  675.         y = character.screen_y - CHARPOP_HEIGHT - self.height
  676.       else
  677.         y = character.screen_y + 16
  678.       end
  679.       x_max = Graphics.width - 4 - self.width
  680.       x_min = 4
  681.       y_max = Graphics.height - self.height
  682.       y_min = 4
  683.       self.x = [[x, x_max].min, x_min].max
  684.       self.y = [[y, y_max].min, y_min].max
  685.     end
  686.   end
  687.   #--------------------------------------------------------------------------
  688.   # 位置の連動
  689.   #--------------------------------------------------------------------------
  690.   def x=(n)
  691.     super
  692.     if @name_window
  693.       @name_window.x = n + NAME_WINDOW_OFFSET_X
  694.       @name_sprite.x = n + NAME_WINDOW_OFFSET_X + 8
  695.     end
  696.   end
  697.   def y=(n)
  698.     super
  699.     if @name_window
  700.       @name_window.y = n + NAME_WINDOW_OFFSET_Y
  701.       @name_sprite.y = n + NAME_WINDOW_OFFSET_Y + 2
  702.     end
  703.   end
  704.   def z=(n)
  705.     super
  706.     if @name_window
  707.       @name_window.z = n + 11#1 テールの上に表示されるので、Zを水増しする。
  708.       @name_sprite.z = n + 12#2
  709.     end
  710.   end
  711.   #--------------------------------------------------------------------------
  712.   # ● ファイバーのメイン処理
  713.   #--------------------------------------------------------------------------
  714.   def fiber_main_namewin
  715.     fiber_main_namewin_default
  716.     @name_window.openness = 0
  717.     @name_sprite.bitmap.clear
  718.     $name = ""
  719.   end
  720.   alias :fiber_main_namewin_default :fiber_main
  721.   alias :fiber_main :fiber_main_namewin
  722. end
  723. #==============================================================================
  724. # 伸縮対応
  725. #==============================================================================
  726. class Window_Message < Window_Base
  727.   #--------------------------------------------------------------------------
  728.   # ● ウィンドウの背景と位置の設定 [再定義]
  729.   #--------------------------------------------------------------------------
  730.   def reset_window
  731.     @background = $game_message.background
  732.     @position = $game_message.position
  733.     if @background == 0   # 通常ウィンドウ
  734.       self.opacity = 255
  735.     else                  # 背景を暗くする、透明にする
  736.       self.opacity = 0
  737.     end
  738.     case @position
  739.     when 0  # 上
  740.       self.y = 0
  741.       @gold_window.y = 360
  742.     when 1  # 中
  743.       self.y = (Graphics.height - self.height) / 2
  744.       @gold_window.y = 0
  745.     when 2  # 下
  746.       self.y = Graphics.height - self.height
  747.       @gold_window.y = 0
  748.     end
  749.   end
  750. end
  751. #==============================================================================
  752. # □ Window_Copy
  753. #------------------------------------------------------------------------------
  754. #   指定のウィンドウのコピーを作成します。
  755. #==============================================================================
  756. class Window_Copy < Window_Base
  757.   #--------------------------------------------------------------------------
  758.   # ○ オブジェクト初期化
  759.   #--------------------------------------------------------------------------
  760.   def initialize(window)
  761.     super(window.x, window.y, window.width, window.height)
  762.     self.contents = window.contents.dup unless window.contents.nil?
  763.     self.opacity = window.opacity
  764.     self.back_opacity = window.back_opacity
  765.     self.z = window.z - 3
  766.     self.visible = window.visible
  767.   end
  768. end
  769. #==============================================================================
  770. # □ Sprite_Copy
  771. #------------------------------------------------------------------------------
  772. #   指定のスプライトのコピーを作成します。
  773. #==============================================================================
  774. class Sprite_Copy < Sprite
  775.   #--------------------------------------------------------------------------
  776.   # ○ オブジェクト初期化
  777.   #--------------------------------------------------------------------------
  778.   def initialize(sprite)
  779.     super()
  780.     self.bitmap = sprite.bitmap.dup unless sprite.bitmap.nil?
  781.     self.opacity = sprite.opacity
  782.     self.x = sprite.x
  783.     self.y = sprite.y
  784.     self.z = sprite.z - 3
  785.     self.ox = sprite.ox
  786.     self.oy = sprite.oy
  787.     self.zoom_x = sprite.zoom_x
  788.     self.visible = sprite.visible
  789.   end
  790. end
  791.  
  792.  
  793.  
  794. #■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□
  795. #■吹きだしテールの表示ルーチン。
  796. #■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□
  797. #==============================================================================
  798. # +++ 「+ふきだし表示」VX +++
  799. # by パラ犬  [url]http://2d6.parasite.jp/[/url]
  800. #      ×
  801. #    row       [url]http://xms.rdy.jp/[/url]
  802. #
  803. # publish 2010/ 3/ 2
  804. # update  -
  805. #
  806. #------------------------------------------------------------------------------
  807. #    ほぼどんなメッセージウィンドウに対しても後付け可能な「ふきだし表示」です。
  808. #  また、テール部分のみの自動追尾機能を持ちます。
  809. #   ふきだし表示をするには、
  810. #  テール用画像「Window-top」「Window-under」を
  811. #  「Graphics/System」フォルダにインポートしておく必要があります。
  812. #==============================================================================
  813. # ■ Window_Message
  814. #==============================================================================
  815. class Window_Message < Window_Base
  816.   #--------------------------------------------------------------------------
  817.   # ● メッセージの開始
  818.   #--------------------------------------------------------------------------
  819.   alias parashelf_update_all_windows update_all_windows
  820.   def update_all_windows
  821.     parashelf_update_all_windows
  822.     update_tail
  823.   end
  824.   #--------------------------------------------------------------------------
  825.   # クローズ [オーバーライド]
  826.   #--------------------------------------------------------------------------
  827.   def close
  828.     super
  829.     del_tail
  830.     @name_window.close if @name_window != nil #ネームウィンドウのクローズ動作。
  831.   end
  832.   #--------------------------------------------------------------------------
  833.   # ● 背景スプライトの更新
  834.   #--------------------------------------------------------------------------
  835.   alias parashelf_update_back_sprite update_back_sprite
  836.   def update_back_sprite
  837.     parashelf_update_back_sprite
  838.     update_tail
  839.   end
  840.   #--------------------------------------------------------------------------
  841.   # ○ フレーム更新 (ふきだしテールの更新)
  842.   #--------------------------------------------------------------------------
  843.   def update_tail
  844.     # ふきだしモードではイベントの動きに追従
  845.     if $mes_id != nil and @tail != nil
  846.       tale_pos = get_tale_pos
  847.       @tail.x = tale_pos[0]
  848.       @tail.y = tale_pos[1]
  849.       update_tail_bitmap
  850.     end
  851.   end
  852.   ##--------------------------------------------------------------------------
  853.   # ○ ふきだしテールの画像を更新。
  854.   #--------------------------------------------------------------------------
  855.   def update_tail_bitmap
  856.     skin = "Window"
  857.     if $win_x != nil
  858.       if $win_x > 0
  859.         @tail.bitmap = Cache.system(skin + "-right")
  860.       elsif  $win_x < 0
  861.         @tail.bitmap = Cache.system(skin + "-left")
  862.       else
  863.         case @position
  864.         when 0  # 上
  865.           @tail.bitmap = Cache.system(skin + "-top")
  866.         when 2  # 下
  867.           @tail.bitmap = Cache.system(skin + "-under")
  868.         end
  869.       end
  870.     else
  871.       case @position
  872.       when 0  # 上
  873.         @tail.bitmap = Cache.system(skin + "-top")
  874.       when 2  # 下
  875.         @tail.bitmap = Cache.system(skin + "-under")
  876.       end
  877.     end
  878.     # 可視状態
  879.     if self.visible == true
  880.       @tail.visible = self.openness == 255
  881.     else
  882.       @tail.visible = false
  883.     end
  884.   end
  885.   #--------------------------------------------------------------------------
  886.   # ○ テールの位置を計算
  887.   #--------------------------------------------------------------------------
  888.   def get_tale_pos
  889.     if defined?($game_system.show_stand_picture) #A1立ち絵スクリプトを入れている。
  890.       if $game_system.show_stand_picture #立ち絵on
  891.         pos = get_tale_pos_stand_pic
  892.       else
  893.         pos = get_tale_pos_normal
  894.       end
  895.     else
  896.       pos = get_tale_pos_normal
  897.     end
  898.     return pos
  899.   end
  900.   #--------------------------------------------------------------------------
  901.   # ○ テールの位置を計算/立ち絵使用時。※NAME_CHANGEの編集必須。
  902.   #--------------------------------------------------------------------------
  903.   def get_tale_pos_stand_pic
  904.     if $game_message.face_name != ""  and @tail != nil
  905.       name = A1_System::StandPicture::NAME_CHANGE[$game_message.face_name]
  906.       chara = name[$game_message.face_index][0]
  907.       if @stand_pic[chara] != nil #立ち絵無しの場合通常通り。
  908.         x = @stand_pic[chara].pic_sprite.x + @stand_pic[chara].pic_sprite.width / 2
  909.         y = get_tale_pos_normal_updown
  910.         update_tail_bitmap
  911.       else
  912.         return get_tale_pos_normal #立ち絵が見つからない場合は通常通り。
  913.       end
  914.     else
  915.       return get_tale_pos_normal #立ち絵が見つからない場合は通常通り。
  916.     end
  917.     return [x,y]
  918.   end
  919.   #--------------------------------------------------------------------------
  920.   # ○ テールの位置を計算/立ち絵未使用時。
  921.   #--------------------------------------------------------------------------
  922.   def get_tale_pos_normal
  923.     if $mes_id == (-2) #左右の場合は高さはウィンドウ中心。上下ならやや左に配置。
  924.       if $win_x != nil
  925.         if $win_x > 0
  926.           x = $win_x - @tail.width / 2
  927.           y = self.y + self.height / 2 - @tail.height / 2
  928.         elsif $win_x < 0
  929.           x = self.width - @tail.width / 2
  930.           y = self.y + self.height / 2 - @tail.height / 2
  931.         else
  932.           x = MINAS_TWE_X_POS
  933.           y = get_tale_pos_normal_updown
  934.         end
  935.       else
  936.         x = MINAS_TWE_X_POS
  937.         y = get_tale_pos_normal_updown
  938.       end
  939.     elsif $mes_id <= (-3) #左右の場合は高さはウィンドウ中心。上下ならやや左に配置。
  940.       if $win_x != nil
  941.         if $win_x > 0
  942.           x = $win_x - @tail.width / 2
  943.           y = self.y + self.height / 2
  944.         elsif $win_x < 0
  945.           x = self.width - @tail.width / 2
  946.           y = self.y + self.height / 2
  947.         else
  948.           x = MINAS_THREE_X_POS
  949.           y = get_tale_pos_normal_updown
  950.         end
  951.       else
  952.         x = MINAS_THREE_X_POS
  953.         y = get_tale_pos_normal_updown
  954.       end
  955.     else
  956.       character = get_character($mes_id)
  957.       #msgbox $mes_id
  958.       x = [[character.screen_x - 16, self.x].max, self.x + self.width - 32].min
  959.       if $win_x != nil
  960.         if $win_x > 0
  961.           x = $win_x - @tail.width / 2
  962.           y = character.screen_y
  963.         elsif $win_x < 0
  964.           x = self.width
  965.           y = character.screen_y
  966.         else
  967.           y = get_tale_pos_normal_updown
  968.         end
  969.       else
  970.         y = get_tale_pos_normal_updown
  971.       end
  972.     end
  973.     return [x, y]
  974.   end
  975.   #--------------------------------------------------------------------------
  976.   # ○ テールが上下の時、かつ[-2][-3]でない時のy座標の取得。
  977.   #--------------------------------------------------------------------------
  978.   def get_tale_pos_normal_updown
  979.     case @position
  980.     when 0
  981.       y = self.y + self.height - @tail.height / 2
  982.     else
  983.       y = self.y - @tail.height / 2
  984.     end
  985.     return y
  986.   end
  987.   #--------------------------------------------------------------------------
  988.   # ○ ふきだしを破棄
  989.   #--------------------------------------------------------------------------
  990.   def del_tail
  991.     if @tail != nil
  992.       @tail.dispose
  993.       @tail = nil
  994.     end
  995.   end
  996. end
  997. #
  998. # ▼▲▼ XRXS 9拡張CO-X. ふきだし自動設定 ▼▲▼
  999. #==============================================================================
  1000. # ■ Window_Message
  1001. #==============================================================================
  1002. class Window_Message < Window_Base
  1003.   #--------------------------------------------------------------------------
  1004.   # ○ ポップキャラクターの設定
  1005.   #--------------------------------------------------------------------------
  1006.   def pop_character=(character_id)
  1007.     @pop_character = character_id
  1008.     $mes_id = character_id
  1009.   end
  1010.   #--------------------------------------------------------------------------
  1011.   # ○ テールキャラクターの設定
  1012.   #--------------------------------------------------------------------------
  1013.   def tail_character=(character_id)
  1014.     #@pop_character = character_id
  1015.     $mes_id = character_id
  1016.   end
  1017. end
  1018.  
  1019. #==============================================================================
  1020. # ■ Scene_Menu
  1021. #------------------------------------------------------------------------------
  1022. #  メニューを開いてからウィンドウが出るとネームウィンドウが表示される不具合修正。
  1023. #==============================================================================
  1024. #class Scene_Menu < Scene_MenuBase
  1025. #  def terminate_hukidasi_menyu
  1026. #    @name_window.openness = 0 if @name_window != nil
  1027. #    terminate_hukidasi_menyu_default
  1028. #  end
  1029. #  alias :terminate_hukidasi_menyu_default :terminate
  1030. #  alias :terminate :terminate_hukidasi_menyu
  1031. #end
  1032.  
  1033. #■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□
  1034. #■ウィンドウ非表示ルーチン
  1035. #■吹きだしテールとネームウィンドウに対応。
  1036. #■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□
  1037. #==============================================================================
  1038. # L(キーボードのQ)を押すと、メッセージウィンドウを表示?非表示
  1039. #==============================================================================
  1040. class Window_Message < Window_Base
  1041.   def update_winoff
  1042.     unless $game_party.in_battle #バトル中は無効。
  1043.       if Input.trigger?(Input::L)
  1044.         if self.visible == true
  1045.           self.visible = false
  1046.           @tail.visible = false if @tail != nil
  1047.         else
  1048.           self.visible = true
  1049.         end
  1050.         if @name_window != nil
  1051.           if @name_window.visible == false and $name != nil and $name != ""
  1052.             @name_window.visible = true
  1053.             @name_sprite.visible = true
  1054.           else
  1055.             @name_window.visible = false
  1056.             @name_sprite.visible = false
  1057.           end
  1058.         end
  1059.       elsif Input.trigger?(Input::C) or Input.trigger?(Input::B)
  1060.         self.visible = true if self.visible == false
  1061.         @tail.visible = true if @tail != nil and @tail.visible == false
  1062.         if @name_window != nil and $name != nil
  1063.           if $name != ""
  1064.             @name_window.visible = true
  1065.             @name_sprite.visible = true
  1066.           end
  1067.         end
  1068.       end
  1069.     end
  1070.     update_winoff_default
  1071.   end
  1072.   alias :update_winoff_default :update
  1073.   alias :update :update_winoff
  1074. end
  1075.  
  1076.  
  1077. #■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□
  1078. #■ウィンドウ表示位置指定ルーチン
  1079. #■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□
  1080. #===========================================================================
  1081. #イベントコマンド「スクリプト」を使い、
  1082. #$win_x=100 
  1083. #$win_y=100
  1084. #と入力すれば、ウィンドウを(100、100)の位置に表示します。
  1085. #使わない時は
  1086. #$win_x=nil
  1087. #などとnilを入力しておいてください。
  1088. #===========================================================================
  1089. class Window_Message < Window_Base
  1090.   #--------------------------------------------------------------------------
  1091.   # ● ウィンドウの背景と位置の設定 [再定義]
  1092.   #--------------------------------------------------------------------------
  1093.   def update_placement_position
  1094.     update_placement_position_default
  1095.     if $win_x != nil
  1096.       if $win_x > 0
  1097.         self.x = $win_x
  1098.         self.width -= $win_x
  1099.       else
  1100.         self.x = 0
  1101.         self.width += $win_x
  1102.       end
  1103.     end
  1104.     if $win_y != nil
  1105.       self.y = $win_y
  1106.     end
  1107.   end
  1108.   alias_method :update_placement_position_default, :update_placement
  1109.   alias_method :update_placement, :update_placement_position
  1110. end
  1111.  
  1112.  
  1113. #==============================================================================
  1114. # ■ SceneManager
  1115. #------------------------------------------------------------------------------
  1116. #  シーン遷移のさい、テールを破棄する。
  1117. #==============================================================================
  1118. module SceneManager
  1119.   #--------------------------------------------------------------------------
  1120.   # ● 呼び出し
  1121.   #--------------------------------------------------------------------------
  1122.   def self.call_sceman_hukidasi(scene_class)
  1123.     if defined?(self.scene.message_window)
  1124.       self.scene.message_window.del_tail if self.scene.message_window.tail != nil
  1125.     end
  1126.     @stack.push(@scene)
  1127.     @scene = scene_class.new
  1128.   end
  1129.   #--------------------------------------------------------------------------
  1130.   # ● クラスメソッドのエイリアス
  1131.   #--------------------------------------------------------------------------
  1132.   class << self
  1133.     alias :call_sceman_hukidasi_default :call
  1134.     alias :call :call_sceman_hukidasi
  1135.   end
  1136. end
  1137.  
  1138. #==============================================================================
  1139. # ■ Scene_Map
  1140. #------------------------------------------------------------------------------
  1141. #  戦闘トランジションのさい、テールを破棄。
  1142. #==============================================================================
  1143. class Scene_Map < Scene_Base
  1144.   attr_accessor :message_window
  1145.   #--------------------------------------------------------------------------
  1146.   # ● 戦闘前トランジション実行
  1147.   #--------------------------------------------------------------------------
  1148.   def perform_battle_transition_hukidasi
  1149.     @message_window.del_tail #テールの破棄
  1150.     perform_battle_transition_hukidasi_default
  1151.   end
  1152.   alias_method :perform_battle_transition_hukidasi_default, :perform_battle_transition
  1153.   alias_method :perform_battle_transition, :perform_battle_transition_hukidasi
  1154. end

点评

您呼叫我我没收到啊。  发表于 2012-4-15 07:34
请把出处写出。  发表于 2012-3-16 18:10

评分

参与人数 2星屑 +760 收起 理由
eve592370698 + 720 吓死我了,没想到我的努力白费了。.
无双sxa + 40 终于卡过来了,感谢分享。

查看全部评分

签名是什么?可以吃么?

Lv1.梦旅人

梦石
0
星屑
149
在线时间
664 小时
注册时间
2011-9-25
帖子
241
2
发表于 2012-3-16 20:59:46 | 只看该作者
这个是啥?半身像对话框?

点评

头像图标对话框吧?没有我移植的FUKI功能多。  发表于 2012-4-20 20:55
漫画对话框  发表于 2012-3-16 21:11
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
842
在线时间
396 小时
注册时间
2008-1-1
帖子
84
3
发表于 2012-3-19 08:53:26 | 只看该作者
嚴格來說
出處並不是樓主給的那個站
那個站放置1年多未更新了
真正的出處是這裡:http://tamurarpgvx.blog137.fc2.com/

评分

参与人数 1星屑 +20 收起 理由
无双sxa + 20 感谢帮助:)

查看全部评分

回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21937
在线时间
8564 小时
注册时间
2011-12-31
帖子
3362
4
发表于 2012-3-19 12:03:49 | 只看该作者
本帖最后由 tseyik 于 2012-3-19 13:06 编辑

説明一下比較好
不然没人明白這脚本效果

試用範本(立ち絵、吹出對話窗口
http://115.com/file/e73hvwke#064-スクリプト製作室.zip
※※警告※※
「立ち絵機能」ON時、立ち絵(指定圖片)會表示、窗口位置
右左変更時、圖片Y座標不正常。
原因調査中。若不想立ち絵不表示時、亊件指今中的「注釈」填入
「立ち絵表示 off」的記述、可把立ち絵機能関閉。

●機能一覧
・亊件指今「脚本」中、$win_x $win_y値、
 ($win_x 、$win_y)指定表示窗口位置。画面左上(0,0)。

・按下鍵盤Q、
 窗口消失。Q決定、取消鍵元戻。

・文章設定、可用以下文字操作。
・ \name[] : 在對話窗口上出現小窗口中,出現[]内的文字。

\h[-1] : 在玩者上面出現對話窗口。
\h[0] : 在正發生的事件出現對話窗口。
\h[1] : 在[]内的ID號的事件出現對話窗口。
H可用大文字。

通常的窗口、但對話吹出位置不同、
\t[-2] : 窗口上下に表示時、X座標MINAS_TWE_X_POS固定。
           $win_x 左右表示時、Y座標窗口中心下固定。
\t[-3] : 窗口上下に表示時、X座標MINAS_THREE_X_POS固定。
           $win_x 左右表示時、Y座標窗口中心下固定。
\t[-1] : 玩者向對話吹出位置表示。
\t[0] : 現在執行的事件對話吹出位置表示。
\t[1] : []内的ID事件對話吹出位置表示。

\O[128] : 文字透明。[]内是alpha値、0透明、255通常。
\D : 文字影有
\hold : 最後的文章限定。信息結束,不關上窗口。
      其他的信息被表示時消失。
      被鎖定的窗,不能用Q按鈕消去。


●その他
・ACE标准機能可正常使用。
・A1殿(http://a1tktk.web.fc2.com/)的立ち絵脚本対応。
 這脚本放在「RGSS3用A1共通処理」脚本之下
 這脚本放在「空メッセージでウィンドウを開かない」「立ち絵表示」以上(若需用到這两脚本時)。
 「ネームウィンドウ」不能使用。上記\name代替。
※立ち絵を表示しない時は、注釈で「立ち絵表示 off」とした方が無難です。
・イベントの下から話しかけたら上へポップ、上から話しかけたら下へポップするという
 機能を追加。カスタマイズポイントで POP_DIRECTION = ture と変更のこと。


●廃止機能 
・\Iがすでに使われているので、イタリック文字変換を廃止。
・スピード変更、改行、最後に入手したアイテムの表示を、ACE化にともない廃止。

评分

参与人数 1星屑 +20 收起 理由
无双sxa + 20 感谢帮助:)

查看全部评分

回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
184
在线时间
405 小时
注册时间
2012-2-10
帖子
376
5
发表于 2012-3-20 11:52:47 | 只看该作者
能再详细说明一下吗?使用过程中遇到的问题还是不少啊。



点评

嗯,解决了。可为什么呢?而且为什么一定要加15个空格?  发表于 2012-3-20 13:54
如果要使用头像功能要在对话第一行末尾加十五个空格  发表于 2012-3-20 13:50
回复 支持 反对

使用道具 举报

Lv5.捕梦者

梦石
0
星屑
21937
在线时间
8564 小时
注册时间
2011-12-31
帖子
3362
6
发表于 2012-3-21 13:46:59 | 只看该作者
本帖最后由 tseyik 于 2014-3-3 15:45 编辑

嚴格來說;最新在這裏
http://a1tktk.web.fc2.com/
原作的是4.0

点评

上传工程吧QAQ~话说115最近挂了。。。  发表于 2012-8-3 18:07
网站打不开,上传一下工程吧。  发表于 2012-4-15 07:38

评分

参与人数 1星屑 +20 收起 理由
无双sxa + 20 感谢分享。

查看全部评分

回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
432
在线时间
4175 小时
注册时间
2010-6-26
帖子
6474
7
发表于 2012-4-15 07:24:35 | 只看该作者
我一直在不断地寻求FUKI移植帮助呢,没想到官方已经出了。不过似乎不是同样思路。
还好我及时停止更新了。
潜水,专心忙活三次元工作了……
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
12 小时
注册时间
2012-7-31
帖子
5
8
发表于 2012-8-2 20:53:06 | 只看该作者
新人求教这东西要怎么用。。。
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
48
在线时间
331 小时
注册时间
2012-5-4
帖子
158
9
发表于 2012-12-23 11:53:46 | 只看该作者
tseyik 发表于 2012-3-19 12:03
説明一下比較好
不然没人明白這脚本效果

请问,要用这个脚本和「空メッセージでウィンドウを開かない」「立ち絵表示」时立绘怎么表示?能不能给个范例?115不给力啊,谢鸟…………
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
432
在线时间
4175 小时
注册时间
2010-6-26
帖子
6474
10
发表于 2012-12-25 16:59:06 | 只看该作者
Window_Copy是个亮点。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-4-29 11:36

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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