Project1

标题: 想问有没有一种类似于传说之下的文章脚本 [打印本页]

作者: 椰和华味冻奶    时间: 2019-8-12 01:01
标题: 想问有没有一种类似于传说之下的文章脚本
就是会冒出那种音效哒哒哒这种,但每个人都有各自的音效,哒哒哒的声音听起来是不同的_(:з」∠)_找了很久也没有找到合适的诶……
作者: 张咚咚    时间: 2019-8-12 10:20
本帖最后由 张咚咚 于 2019-8-12 10:22 编辑

使用事件脚本 TMMESSAGESE::CURRENT_TYPE = X 改变文字音效,音效设置在34行。

下面脚本修改与:http://rpg.blue/thread-317070-1-1.html
  1. #==============================================================================
  2. # ★ RGSS3_メッセージ効果音 Ver1.1
  3. #==============================================================================
  4. =begin

  5. 作者:tomoaky
  6. webサイト:ひきも記 ([url]http://hikimoki.sakura.ne.jp/[/url])

  7. 文章の表示コマンド実行時、文字の表示と一緒に効果音を鳴らします。

  8. 制御文字 \B を使って効果音を再生するかどうかを設定できます。
  9. \B が出てくるたびに切り替わりますが AUTO_SE が true の場合は
  10. 最初から効果音が鳴る状態になっています。

  11. おまけ機能として文章の表示速度を変更することができます。
  12. 设定了游戏变量(初期设定是8号)的数值越大
  13. 显示速度越慢。1 是默认速度最低值。

  14. 使用游戏变量(初期设定)
  15.   0008
  16.   
  17. 2012.01.22  Ver1.1
  18.   おまけ機能の文章表示速度変更を追加
  19.   
  20. 2012.01.21  Ver1.0
  21.   公開

  22. =end

  23. #==============================================================================
  24. # □ 设定项目
  25. #==============================================================================
  26. module TMMESSAGESE
  27.   TYPE = {
  28.     1 => "Cursor1",
  29.     2 => "Cursor2"
  30.   }
  31.   CURRENT_TYPE = 1 # 默认使用第一个音效
  32.   AUTO_SE = true    # true で自動的に再生、false で制御文字があったときのみ再生

  33.   VN_MESSAGE_WAIT = 8   # 文章的显示速度处理游戏变量号码(这个是我改了的,原来是8)
  34. end

  35. #==============================================================================
  36. # ■ Window_Message
  37. #==============================================================================
  38. class Window_Message
  39.   #--------------------------------------------------------------------------
  40.   # ● フラグのクリア
  41.   #--------------------------------------------------------------------------
  42.   alias tmmessagese_window_message_clear_flags clear_flags
  43.   def clear_flags
  44.     tmmessagese_window_message_clear_flags
  45.     @se_flag = TMMESSAGESE::AUTO_SE
  46.   end
  47.   #--------------------------------------------------------------------------
  48.   # ● 一文字出力後のウェイト
  49.   #--------------------------------------------------------------------------
  50.   alias tmessagese_window_message_wait_for_one_character wait_for_one_character
  51.   def wait_for_one_character
  52.     [$game_variables[TMMESSAGESE::VN_MESSAGE_WAIT], 1].max.times do |i|
  53.       tmessagese_window_message_wait_for_one_character
  54.     end
  55.   end
  56.   #--------------------------------------------------------------------------
  57.   # ● 通常的文字处理
  58.   #--------------------------------------------------------------------------
  59.   alias tmmessagese_window_message_process_normal_character process_normal_character
  60.   def process_normal_character(c, pos)
  61.     tmmessagese_window_message_process_normal_character(c, pos)
  62.     RPG::SE.new(TMMESSAGESE::TYPE[TMMESSAGESE::CURRENT_TYPE], 80, 150).play if @se_flag
  63.   end
  64.   #--------------------------------------------------------------------------
  65.   # ● 制御文字の処理
  66.   #     code : 制御文字の本体部分(「\C[1]」なら「C」)
  67.   #     text : 描画処理中の文字列バッファ(必要なら破壊的に変更)
  68.   #     pos  : 描画位置 {:x, :y, :new_x, :height}
  69.   #--------------------------------------------------------------------------
  70.   alias tmmessage_window_message_process_escape_character process_escape_character
  71.   def process_escape_character(code, text, pos)
  72.     case code.upcase
  73.     when 'B'
  74.       @se_flag ^= true
  75.     else
  76.       tmmessage_window_message_process_escape_character(code, text, pos)
  77.     end
  78.   end
  79. end
复制代码

作者: 1234mmm    时间: 2019-8-17 22:38
貌似有只能设置一个音效的,但是没有设置不同人物可以有不同音效的?




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