查看: 1098|回复: 2

[已经过期] 有人能幫我看腳本嗎?

[复制链接]
梦石
0
星屑
50
在线时间
106 小时
注册时间
2010-10-12
回帖
18
发表于 2013-7-24 05:23:32 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 asdrty123 于 2013-7-24 14:29 编辑

我想要知道如何禁用勝利消息(Victory Messages)
因為我用了LNX11a_XPスタイルバトル
下面的戰鬥臉把勝利消息整個擠掉了 可以修正嗎? 或是整個禁用掉勝利消息

簡單來說就是我想要留下Victory Aftermath這個腳本(下面) 但我不需要Victory Aftermath內的Victory Messages也就是勝利後角色會講的話
因為LNX11a的勝利很陽春而且很醜 我比較喜歡Yanfly Engine的Victory Aftermath
但Victory Messages無法關閉的情況下背景會出現對話...

就像這樣


  1. #==============================================================================
  2. #
  3. # ▼ Yanfly Engine Ace - Victory Aftermath v1.03
  4. # -- Last Updated: 2012.01.07
  5. # -- Level: Easy, Normal, Hard
  6. # -- Requires: n/a
  7. #
  8. #==============================================================================

  9. $imported = {} if $imported.nil?
  10. $imported["YEA-VictoryAftermath"] = true

  11. #==============================================================================
  12. # ▼ Updates
  13. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  14. # 2012.01.07 - Compatibility Update: JP Manager
  15. # 2012.01.01 - Bug Fixed: Quote tags were mislabeled.
  16. # 2011.12.26 - Compatibility Update: Command Autobattle
  17. # 2011.12.16 - Started Script and Finished.
  18. #
  19. #==============================================================================
  20. # ▼ Introduction
  21. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  22. # At the end of each battle, RPG Maker VX Ace by default shows text saying that
  23. # the party has gained so-and-so EXP while this person leveled up and your
  24. # party happened to find these drops. This script changes that text into
  25. # something more visual for your players to see. Active battle members will be
  26. # seen gaining EXP, any kind of level up changes, and a list of the items
  27. # obtained through drops.
  28. #
  29. #==============================================================================
  30. # ▼ Instructions
  31. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  32. # To install this script, open up your script editor and copy/paste this script
  33. # to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save.
  34. #
  35. # -----------------------------------------------------------------------------
  36. # Actor Notetags - These notetags go in the actors notebox in the database.
  37. # -----------------------------------------------------------------------------
  38. # <win quotes>
  39. #  string
  40. #  string
  41. # </win quotes>
  42. # Sets the win quote for the actor. The strings are continuous and can use
  43. # text codes. Use \n for a line break. Type in what you want the actor to say
  44. # for the particular win quote. Use [New Quote] in between the two tags to
  45. # start up a new quote.
  46. #
  47. # <level quotes>
  48. #  string
  49. #  string
  50. # </level quotes>
  51. # Sets the level up quote for the actor. The strings are continuous and can use
  52. # text codes. Use \n for a line break. Type in what you want the actor to say
  53. # for the particular win quote. Use [New Quote] in between the two tags to
  54. # start up a new quote.
  55. #
  56. # <drops quotes>
  57. #  string
  58. #  string
  59. # </drops quotes>
  60. # Sets the drops quote for the actor. The strings are continuous and can use
  61. # text codes. Use \n for a line break. Type in what you want the actor to say
  62. # for the particular win quote. Use [New Quote] in between the two tags to
  63. # start up a new quote.
  64. #
  65. # -----------------------------------------------------------------------------
  66. # Class Notetags - These notetags go in the class notebox in the database.
  67. # -----------------------------------------------------------------------------
  68. # <win quotes>
  69. #  string
  70. #  string
  71. # </win quotes>
  72. # Sets the win quote for the class. The strings are continuous and can use
  73. # text codes. Use \n for a line break. Type in what you want the actor to say
  74. # for the particular win quote. Use [New Quote] in between the two tags to
  75. # start up a new quote.
  76. #
  77. # <level quotes>
  78. #  string
  79. #  string
  80. # </level quotes>
  81. # Sets the level up quote for the class. The strings are continuous and can use
  82. # text codes. Use \n for a line break. Type in what you want the actor to say
  83. # for the particular win quote. Use [New Quote] in between the two tags to
  84. # start up a new quote.
  85. #
  86. # <drops quotes>
  87. #  string
  88. #  string
  89. # </drops quotes>
  90. # Sets the drops quote for the class. The strings are continuous and can use
  91. # text codes. Use \n for a line break. Type in what you want the actor to say
  92. # for the particular win quote. Use [New Quote] in between the two tags to
  93. # start up a new quote.
  94. #
  95. #==============================================================================
  96. # ▼ Compatibility
  97. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  98. # This script is made strictly for RPG Maker VX Ace. It is highly unlikely that
  99. # it will run with RPG Maker VX without adjusting.
  100. #
  101. #==============================================================================

  102. module YEA
  103.   module VICTORY_AFTERMATH
  104.    
  105.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  106.     # - General Settings -
  107.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  108.     # These are various settings that are used throughout the Victory Aftermath
  109.     # portion of a battle. Adjust them as you see fit.
  110.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  111.     VICTORY_BGM  = RPG::BGM.new("Field1", 100, 100)    # Victory BGM
  112.     VICTORY_TICK = RPG::SE.new("Decision1", 100, 150)  # EXP ticking SFX
  113.     LEVEL_SOUND  = RPG::SE.new("Up4", 80, 150)         # Level Up SFX
  114.     SKILLS_TEXT  = "New Skills"                        # New skills text title.
  115.    
  116.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  117.     # - Important Settings -
  118.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  119.     # These are some important settings so please set them up properly. This
  120.     # section includes a switch that allows you to skip the victory aftermath
  121.     # phase (for those back to back battles and making them seamless) and it
  122.     # also allows you to declare a common event to run after each battle. If
  123.     # you do not wish to use either of these features, set them to 0. The
  124.     # common event will run regardless of win or escape.
  125.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  126.     SKIP_AFTERMATH_SWITCH  = 0  # If switch on, skip aftermath. 0 to disable.
  127.     SKIP_MUSIC_SWITCH      = 0  # If switch on, skip music. 0 to disable.
  128.     AFTERMATH_COMMON_EVENT = 10  # Runs common event after battle. 0 to disable.
  129.    
  130.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  131.     # - Top Text Settings -
  132.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  133.     # Here, you can adjust the various text that appears in the window that
  134.     # appears at the top of the screen.
  135.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  136.     TOP_TEAM         = "%s's team"           # Team name used.
  137.     TOP_VICTORY_TEXT = "%s is victorious!"   # Text used to display victory.
  138.     TOP_LEVEL_UP     = "%s has leveled up!"  # Text used to display level up.
  139.     TOP_SPOILS       = "Victory Spoils!"     # Text used for spoils.
  140.    
  141.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  142.     # - EXP Gauge Settings -
  143.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  144.     # Adjust how the EXP Gauge appears for the Victory Aftermath here. This
  145.     # includes the text display, the font size, the colour of the gauges, and
  146.     # more. Adjust it all here.
  147.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  148.     VICTORY_EXP  = "+%sEXP"      # Text used to display EXP.
  149.     EXP_PERCENT  = "%1.2f%%"     # The way EXP percentage will be displayed.
  150.     LEVELUP_TEXT = "LEVEL UP!"   # Text to replace percentage when leveled.
  151.     MAX_LVL_TEXT = "MAX LEVEL"   # Text to replace percentage when max level.
  152.     FONTSIZE_EXP = 20            # Font size used for EXP.
  153.     EXP_TICKS    = 15            # Ticks to full EXP
  154.     EXP_GAUGE1   = 12            # "Window" skin text colour for gauge.
  155.     EXP_GAUGE2   = 4             # "Window" skin text colour for gauge.
  156.     LEVEL_GAUGE1 = 13            # "Window" skin text colour for leveling.
  157.     LEVEL_GAUGE2 = 5             # "Window" skin text colour for leveling.
  158.    
  159.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  160.     # - Victory Messages -
  161.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  162.     # In the Victory Aftermath, actors can say unique things. This is the pool
  163.     # of quotes used for actors without any custom victory quotes. Note that
  164.     # actors with custom quotes will take priority over classes with custom
  165.     # quotes, which will take priority over these default quotes. Use \n for
  166.     # a line break in the quotes.
  167.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  168.     HEADER_TEXT = "\e>\eC[6]%s\eC[0]\e<\n"  # Always at start of messages.
  169.     FOOTER_TEXT = ""                        # Always at end of messages.
  170.    
  171.     # Win Quotes are what the actors say when a battle is won.
  172.     VICTORY_QUOTES ={
  173.     # :type   => Quotes
  174.       #------------------------------------------------------------------------
  175.       :win    => [ # Occurs as initial victory quote.
  176.                    '"We won! What an exciting fight!"',
  177.                    '"I didn\'t even break a sweat."',
  178.                    '"That wasn\'t so tough."',
  179.                    '"Let\'s fight something harder!"',
  180.                  ],# Do not remove this.
  181.       #------------------------------------------------------------------------
  182.       :level  => [ # Occurs as initial victory quote.
  183.                    '"Yes! Level up!"',
  184.                    '"I\'ve gotten stronger!"',
  185.                    '"Try to keep up with me!"',
  186.                    '"I\'ve grown again!"',
  187.                  ],# Do not remove this.
  188.       #------------------------------------------------------------------------
  189.       :drops  => [ # Occurs as initial victory quote.
  190.                    '"I\'ll be taking these."',
  191.                    '"To the victor goes the spoils."',
  192.                    '"The enemies dropped something!"',
  193.                    '"Hey, what\'s this?"',
  194.                  ],# Do not remove this.
  195.       #------------------------------------------------------------------------
  196.     } # Do not remove this.
  197.    
  198.   end # VICTORY_AFTERMATH
  199. end # YEA

  200. #==============================================================================
  201. # ▼ Editting anything past this point may potentially result in causing
  202. # computer damage, incontinence, explosion of user's head, coma, death, and/or
  203. # halitosis so edit at your own risk.
  204. #==============================================================================

  205. module YEA
  206.   module REGEXP
  207.   module BASEITEM
  208.    
  209.     NEW_QUOTE = /\[(?:NEW_QUOTE|new quote)\]/i
  210.    
  211.     WIN_QUOTE_ON    = /<(?:WIN_QUOTES|win quote|win quotes)>/i
  212.     WIN_QUOTE_OFF   = /<\/(?:WIN_QUOTES|win quote|win quotes)>/i
  213.     LEVEL_QUOTE_ON  = /<(?:LEVEL_QUOTES|level quote|level quotes)>/i
  214.     LEVEL_QUOTE_OFF = /<\/(?:LEVEL_QUOTES|level quote|level quotes)>/i
  215.     DROPS_QUOTE_ON  = /<(?:DROPS_QUOTES|drops quote|drops quotes)>/i
  216.     DROPS_QUOTE_OFF = /<\/(?:DROPS_QUOTES|drops quote|drops quotes)>/i
  217.    
  218.   end # BASEITEM
  219.   end # REGEXP
  220. end # YEA

  221. #==============================================================================
  222. # ■ Switch
  223. #==============================================================================

  224. module Switch
  225.   
  226.   #--------------------------------------------------------------------------
  227.   # self.skip_aftermath
  228.   #--------------------------------------------------------------------------
  229.   def self.skip_aftermath
  230.     return false if YEA::VICTORY_AFTERMATH::SKIP_AFTERMATH_SWITCH <= 0
  231.     return $game_switches[YEA::VICTORY_AFTERMATH::SKIP_AFTERMATH_SWITCH]
  232.   end
  233.   
  234.   #--------------------------------------------------------------------------
  235.   # self.skip_aftermath_music
  236.   #--------------------------------------------------------------------------
  237.   def self.skip_aftermath_music
  238.     return false if YEA::VICTORY_AFTERMATH::SKIP_MUSIC_SWITCH <=0
  239.     return $game_switches[YEA::VICTORY_AFTERMATH::SKIP_MUSIC_SWITCH]
  240.   end
  241.    
  242. end # Switch

  243. #==============================================================================
  244. # ■ Numeric
  245. #==============================================================================

  246. class Numeric
  247.   
  248.   #--------------------------------------------------------------------------
  249.   # new method: group_digits
  250.   #--------------------------------------------------------------------------
  251.   unless $imported["YEA-CoreEngine"]
  252.   def group; return self.to_s; end
  253.   end # $imported["YEA-CoreEngine"]
  254.    
  255. end # Numeric

  256. #==============================================================================
  257. # ■ DataManager
  258. #==============================================================================

  259. module DataManager
  260.   
  261.   #--------------------------------------------------------------------------
  262.   # alias method: load_database
  263.   #--------------------------------------------------------------------------
  264.   class <<self; alias load_database_va load_database; end
  265.   def self.load_database
  266.     load_database_va
  267.     load_notetags_va
  268.   end
  269.   
  270.   #--------------------------------------------------------------------------
  271.   # new method: load_notetags_va
  272.   #--------------------------------------------------------------------------
  273.   def self.load_notetags_va
  274.     groups = [$data_actors, $data_classes]
  275.     for group in groups
  276.       for obj in group
  277.         next if obj.nil?
  278.         obj.load_notetags_va
  279.       end
  280.     end
  281.   end
  282.   
  283. end # DataManager

  284. #==============================================================================
  285. # ■ RPG::BaseItem
  286. #==============================================================================

  287. class RPG::BaseItem
  288.   
  289.   #--------------------------------------------------------------------------
  290.   # public instance variables
  291.   #--------------------------------------------------------------------------
  292.   attr_accessor :win_quotes
  293.   attr_accessor :level_quotes
  294.   attr_accessor :drops_quotes
  295.   
  296.   #--------------------------------------------------------------------------
  297.   # common cache: load_notetags_va
  298.   #--------------------------------------------------------------------------
  299.   def load_notetags_va
  300.     @win_quotes = [""]
  301.     @level_quotes = [""]
  302.     @drops_quotes = [""]
  303.     @victory_quote_type = nil
  304.     #---
  305.     self.note.split(/[\r\n]+/).each { |line|
  306.       case line
  307.       #---
  308.       when YEA::REGEXP::BASEITEM::WIN_QUOTE_ON
  309.         @victory_quote_type = :win_quote
  310.       when YEA::REGEXP::BASEITEM::WIN_QUOTE_OFF
  311.         @victory_quote_type = nil
  312.       when YEA::REGEXP::BASEITEM::LEVEL_QUOTE_ON
  313.         @victory_quote_type = :level_quote
  314.       when YEA::REGEXP::BASEITEM::LEVEL_QUOTE_OFF
  315.         @victory_quote_type = nil
  316.       when YEA::REGEXP::BASEITEM::DROPS_QUOTE_ON
  317.         @victory_quote_type = :drops_quote
  318.       when YEA::REGEXP::BASEITEM::DROPS_QUOTE_OFF
  319.         @victory_quote_type = nil
  320.       #---
  321.       when YEA::REGEXP::BASEITEM::NEW_QUOTE
  322.         case @victory_quote_type
  323.         when nil; next
  324.         when :win_quote;   @win_quotes.push("")
  325.         when :level_quote; @level_quotes.push("")
  326.         when :drops_quote; @drops_quotes.push("")
  327.         end
  328.       #---
  329.       else
  330.         case @victory_quote_type
  331.         when nil; next
  332.         when :win_quote;   @win_quotes[@win_quotes.size-1] += line.to_s
  333.         when :level_quote; @level_quotes[@level_quotes.size-1] += line.to_s
  334.         when :drops_quote; @drops_quotes[@drops_quotes.size-1] += line.to_s
  335.         end
  336.       end
  337.     } # self.note.split
  338.     #---
  339.     return unless self.is_a?(RPG::Class)
  340.     quotes = YEA::VICTORY_AFTERMATH::VICTORY_QUOTES
  341.     @win_quotes = quotes[:win].clone if @win_quotes == [""]
  342.     @level_quotes = quotes[:level].clone if @level_quotes == [""]
  343.     @drops_quotes = quotes[:drops].clone if @drops_quotes == [""]
  344.   end
  345.   
  346. end # RPG::BaseItem

  347. #==============================================================================
  348. # ■ BattleManager
  349. #==============================================================================

  350. module BattleManager
  351.   
  352.   #--------------------------------------------------------------------------
  353.   # overwrite method: self.process_victory
  354.   #--------------------------------------------------------------------------
  355.   def self.process_victory
  356.     if $imported["YEA-CommandAutobattle"]
  357.       SceneManager.scene.close_disable_autobattle_window
  358.     end
  359.     return skip_aftermath if Switch.skip_aftermath
  360.     play_battle_end_me
  361.     gain_jp if $imported["YEA-JPManager"]
  362.     display_exp
  363.     gain_exp
  364.     gain_gold
  365.     gain_drop_items
  366.     close_windows
  367.     SceneManager.return
  368.     replay_bgm_and_bgs
  369.     battle_end(0)
  370.     return true
  371.   end
  372.   
  373.   #--------------------------------------------------------------------------
  374.   # new method: self.skip_aftermath
  375.   #--------------------------------------------------------------------------
  376.   def self.skip_aftermath
  377.     $game_party.all_members.each do |actor|
  378.       actor.gain_exp($game_troop.exp_total)
  379.     end
  380.     $game_party.gain_gold($game_troop.gold_total)
  381.     $game_troop.make_drop_items.each do |item|
  382.       $game_party.gain_item(item, 1)
  383.     end
  384.     close_windows
  385.     SceneManager.return
  386.     replay_bgm_and_bgs
  387.     battle_end(0)
  388.   end
  389.   
  390.   #--------------------------------------------------------------------------
  391.   # overwrite method: self.play_battle_end_me
  392.   #--------------------------------------------------------------------------
  393.   def self.play_battle_end_me
  394.     return if Switch.skip_aftermath_music
  395.     $game_system.battle_end_me.play
  396.     YEA::VICTORY_AFTERMATH::VICTORY_BGM.play
  397.   end
  398.   
  399.   #--------------------------------------------------------------------------
  400.   # new method: self.set_victory_text
  401.   #--------------------------------------------------------------------------
  402.   def self.set_victory_text(actor, type)
  403.     text = "" + sprintf(YEA::VICTORY_AFTERMATH::HEADER_TEXT, actor.name)
  404.     text += actor.victory_quotes(type)[rand(actor.victory_quotes(type).size)]
  405.     text += YEA::VICTORY_AFTERMATH::FOOTER_TEXT
  406.     $game_message.face_name = actor.face_name
  407.     $game_message.face_index = actor.face_index
  408.     $game_message.add(text)
  409.     wait_for_message
  410.   end
  411.   
  412.   #--------------------------------------------------------------------------
  413.   # overwrite method: self.display_exp
  414.   #--------------------------------------------------------------------------
  415.   def self.display_exp
  416.     SceneManager.scene.show_victory_display_exp
  417.     actor = $game_party.random_target
  418.     @victory_actor = actor
  419.     set_victory_text(@victory_actor, :win)
  420.   end
  421.   
  422.   #--------------------------------------------------------------------------
  423.   # overwrite method: self.gain_exp
  424.   #--------------------------------------------------------------------------
  425.   def self.gain_exp
  426.     $game_party.all_members.each do |actor|
  427.       temp_actor = Marshal.load(Marshal.dump(actor))
  428.       actor.gain_exp($game_troop.exp_total)
  429.       next if actor.level == temp_actor.level
  430.       SceneManager.scene.show_victory_level_up(actor, temp_actor)
  431.       set_victory_text(actor, :level)
  432.       wait_for_message
  433.     end
  434.   end
  435.   
  436.   #--------------------------------------------------------------------------
  437.   # overwrite method: self.gain_gold
  438.   #--------------------------------------------------------------------------
  439.   def self.gain_gold
  440.     $game_party.gain_gold($game_troop.gold_total)
  441.   end
  442.   
  443.   #--------------------------------------------------------------------------
  444.   # overwrite method: self.gain_drop_items
  445.   #--------------------------------------------------------------------------
  446.   def self.gain_drop_items
  447.     drops = []
  448.     $game_troop.make_drop_items.each do |item|
  449.       $game_party.gain_item(item, 1)
  450.       drops.push(item)
  451.     end
  452.     SceneManager.scene.show_victory_spoils($game_troop.gold_total, drops)
  453.     set_victory_text(@victory_actor, :drops)
  454.     wait_for_message
  455.   end
  456.   
  457.   #--------------------------------------------------------------------------
  458.   # new method: self.close_windows
  459.   #--------------------------------------------------------------------------
  460.   def self.close_windows
  461.     SceneManager.scene.close_victory_windows
  462.   end
  463.   
  464.   #--------------------------------------------------------------------------
  465.   # alias method: load_database
  466.   #--------------------------------------------------------------------------
  467.   class <<self; alias battle_end_va battle_end; end
  468.   def self.battle_end(result)
  469.     battle_end_va(result)
  470.     return if result == 2
  471.     return if YEA::VICTORY_AFTERMATH::AFTERMATH_COMMON_EVENT <= 0
  472.     event_id = YEA::VICTORY_AFTERMATH::AFTERMATH_COMMON_EVENT
  473.     $game_temp.reserve_common_event(event_id)
  474.   end
  475.   
  476. end # BattleManager

  477. #==============================================================================
  478. # ■ Game_Actor
  479. #==============================================================================

  480. class Game_Actor < Game_Battler
  481.   
  482.   #--------------------------------------------------------------------------
  483.   # overwrite method: gain_exp
  484.   #--------------------------------------------------------------------------
  485.   def gain_exp(exp)
  486.     enabled = !SceneManager.scene_is?(Scene_Battle)
  487.     change_exp(self.exp + (exp * final_exp_rate).to_i, enabled)
  488.   end
  489.   
  490.   #--------------------------------------------------------------------------
  491.   # new method: victory_quotes
  492.   #--------------------------------------------------------------------------
  493.   def victory_quotes(type)
  494.     case type
  495.     when :win
  496.       return self.actor.win_quotes if self.actor.win_quotes != [""]
  497.       return self.class.win_quotes
  498.     when :level
  499.       return self.actor.level_quotes if self.actor.level_quotes != [""]
  500.       return self.class.level_quotes
  501.     when :drops
  502.       return self.actor.drops_quotes if self.actor.drops_quotes != [""]
  503.       return self.class.drops_quotes
  504.     else
  505.       return ["NOTEXT"]
  506.     end
  507.   end
  508.   
  509. end # Game_Actor

  510. #==============================================================================
  511. # ■ Window_VictoryTitle
  512. #==============================================================================

  513. class Window_VictoryTitle < Window_Base
  514.   
  515.   #--------------------------------------------------------------------------
  516.   # initialize
  517.   #--------------------------------------------------------------------------
  518.   def initialize
  519.     super(0, 0, Graphics.width, fitting_height(1))
  520.     self.z = 200
  521.     self.openness = 0
  522.   end
  523.   
  524.   #--------------------------------------------------------------------------
  525.   # refresh
  526.   #--------------------------------------------------------------------------
  527.   def refresh(message = "")
  528.     contents.clear
  529.     draw_text(0, 0, contents.width, line_height, message, 1)
  530.   end
  531.   
  532. end # Window_VictoryTitle

  533. #==============================================================================
  534. # ■ Window_VictoryEXP_Back
  535. #==============================================================================

  536. class Window_VictoryEXP_Back < Window_Selectable
  537.   
  538.   #--------------------------------------------------------------------------
  539.   # initialize
  540.   #--------------------------------------------------------------------------
  541.   def initialize
  542.     super(0, fitting_height(1), Graphics.width, window_height)
  543.     self.z = 200
  544.     self.openness = 0
  545.   end
  546.   
  547.   #--------------------------------------------------------------------------
  548.   # window_height
  549.   #--------------------------------------------------------------------------
  550.   def window_height
  551.     return Graphics.height - fitting_height(4) - fitting_height(1)
  552.   end
  553.   
  554.   #--------------------------------------------------------------------------
  555.   # col_max
  556.   #--------------------------------------------------------------------------
  557.   def col_max; return item_max; end
  558.   
  559.   #--------------------------------------------------------------------------
  560.   # spacing
  561.   #--------------------------------------------------------------------------
  562.   def spacing; return 8; end
  563.   
  564.   #--------------------------------------------------------------------------
  565.   # item_max
  566.   #--------------------------------------------------------------------------
  567.   def item_max; return $game_party.battle_members.size; end
  568.   
  569.   #--------------------------------------------------------------------------
  570.   # open
  571.   #--------------------------------------------------------------------------
  572.   def open
  573.     @exp_total = $game_troop.exp_total
  574.     super
  575.   end
  576.   
  577.   #--------------------------------------------------------------------------
  578.   # item_rect
  579.   #--------------------------------------------------------------------------
  580.   def item_rect(index)
  581.     rect = Rect.new
  582.     rect.width = item_width
  583.     rect.height = contents.height
  584.     rect.x = index % col_max * (item_width + spacing)
  585.     rect.y = index / col_max * item_height
  586.     return rect
  587.   end
  588.   
  589.   #--------------------------------------------------------------------------
  590.   # draw_item
  591.   #--------------------------------------------------------------------------
  592.   def draw_item(index)
  593.     actor = $game_party.battle_members[index]
  594.     return if actor.nil?
  595.     rect = item_rect(index)
  596.     reset_font_settings
  597.     draw_actor_name(actor, rect)
  598.     draw_exp_gain(actor, rect)
  599.     draw_jp_gain(actor, rect)
  600.     draw_actor_face(actor, rect)
  601.   end
  602.   
  603.   #--------------------------------------------------------------------------
  604.   # draw_actor_name
  605.   #--------------------------------------------------------------------------
  606.   def draw_actor_name(actor, rect)
  607.     name = actor.name
  608.     draw_text(rect.x, rect.y+line_height, rect.width, line_height, name, 1)
  609.   end
  610.   
  611.   #--------------------------------------------------------------------------
  612.   # draw_actor_face
  613.   #--------------------------------------------------------------------------
  614.   def draw_actor_face(actor, rect)
  615.     face_name = actor.face_name
  616.     face_index = actor.face_index
  617.     bitmap = Cache.face(face_name)
  618.     rw = [rect.width, 96].min
  619.     face_rect = Rect.new(face_index % 4 * 96, face_index / 4 * 96, rw, 96)
  620.     rx = (rect.width - rw) / 2 + rect.x
  621.     contents.blt(rx, rect.y + line_height * 2, bitmap, face_rect, 255)
  622.   end
  623.   
  624.   #--------------------------------------------------------------------------
  625.   # draw_exp_gain
  626.   #--------------------------------------------------------------------------
  627.   def draw_exp_gain(actor, rect)
  628.     dw = rect.width - (rect.width - [rect.width, 96].min) / 2
  629.     dy = rect.y + line_height * 3 + 96
  630.     fmt = YEA::VICTORY_AFTERMATH::VICTORY_EXP
  631.     text = sprintf(fmt, actor_exp_gain(actor).group)
  632.     contents.font.size = YEA::VICTORY_AFTERMATH::FONTSIZE_EXP
  633.     change_color(power_up_color)
  634.     draw_text(rect.x, dy, dw, line_height, text, 2)
  635.   end
  636.   
  637.   #--------------------------------------------------------------------------
  638.   # actor_exp_gain
  639.   #--------------------------------------------------------------------------
  640.   def actor_exp_gain(actor)
  641.     n = @exp_total * actor.final_exp_rate
  642.     return n.to_i
  643.   end
  644.   
  645.   #--------------------------------------------------------------------------
  646.   # draw_jp_gain
  647.   #--------------------------------------------------------------------------
  648.   def draw_jp_gain(actor, rect)
  649.     return unless $imported["YEA-JPManager"]
  650.     dw = rect.width - (rect.width - [rect.width, 96].min) / 2
  651.     dy = rect.y + line_height * 4 + 96
  652.     fmt = YEA::JP::VICTORY_AFTERMATH
  653.     text = sprintf(fmt, actor_jp_gain(actor).group, Vocab::jp)
  654.     contents.font.size = YEA::VICTORY_AFTERMATH::FONTSIZE_EXP
  655.     change_color(power_up_color)
  656.     draw_text(rect.x, dy, dw, line_height, text, 2)
  657.   end
  658.   
  659.   #--------------------------------------------------------------------------
  660.   # actor_jp_gain
  661.   #--------------------------------------------------------------------------
  662.   def actor_jp_gain(actor)
  663.     n = actor.battle_jp_earned
  664.     if actor.exp + actor_exp_gain(actor) > actor.exp_for_level(actor.level + 1)
  665.       n += YEA::JP::LEVEL_UP unless actor.max_level?
  666.     end
  667.     return n
  668.   end
  669.   
  670. end # Window_VictoryEXP_Back

  671. #==============================================================================
  672. # ■ Window_VictoryEXP_Front
  673. #==============================================================================

  674. class Window_VictoryEXP_Front < Window_VictoryEXP_Back
  675.   
  676.   #--------------------------------------------------------------------------
  677.   # initialize
  678.   #--------------------------------------------------------------------------
  679.   def initialize
  680.     super
  681.     self.back_opacity = 0
  682.     @ticks = 0
  683.     @counter = 30
  684.     contents.font.size = YEA::VICTORY_AFTERMATH::FONTSIZE_EXP
  685.   end
  686.   
  687.   #--------------------------------------------------------------------------
  688.   # update
  689.   #--------------------------------------------------------------------------
  690.   def update
  691.     super
  692.     update_tick
  693.   end
  694.   
  695.   #--------------------------------------------------------------------------
  696.   # update_tick
  697.   #--------------------------------------------------------------------------
  698.   def update_tick
  699.     return unless self.openness >= 255
  700.     return unless self.visible
  701.     return if complete_ticks?
  702.     @counter -= 1
  703.     return unless @counter <= 0
  704.     return if @ticks >= YEA::VICTORY_AFTERMATH::EXP_TICKS
  705.     YEA::VICTORY_AFTERMATH::VICTORY_TICK.play
  706.     @counter = 4
  707.     @ticks += 1
  708.     refresh
  709.   end
  710.   
  711.   #--------------------------------------------------------------------------
  712.   # complete_ticks?
  713.   #--------------------------------------------------------------------------
  714.   def complete_ticks?
  715.     for actor in $game_party.battle_members
  716.       total_ticks = YEA::VICTORY_AFTERMATH::EXP_TICKS
  717.       bonus_exp = actor_exp_gain(actor) * @ticks / total_ticks
  718.       now_exp = actor.exp - actor.current_level_exp + bonus_exp
  719.       next_exp = actor.next_level_exp - actor.current_level_exp
  720.       rate = now_exp * 1.0 / next_exp
  721.       return false if rate < 1.0
  722.     end
  723.     return true
  724.   end
  725.   
  726.   #--------------------------------------------------------------------------
  727.   # draw_item
  728.   #--------------------------------------------------------------------------
  729.   def draw_item(index)
  730.     actor = $game_party.battle_members[index]
  731.     return if actor.nil?
  732.     rect = item_rect(index)
  733.     draw_actor_exp(actor, rect)
  734.   end
  735.   
  736.   #--------------------------------------------------------------------------
  737.   # exp_gauge1
  738.   #--------------------------------------------------------------------------
  739.   def exp_gauge1; return text_color(YEA::VICTORY_AFTERMATH::EXP_GAUGE1); end
  740.   
  741.   #--------------------------------------------------------------------------
  742.   # exp_gauge2
  743.   #--------------------------------------------------------------------------
  744.   def exp_gauge2; return text_color(YEA::VICTORY_AFTERMATH::EXP_GAUGE2); end
  745.   
  746.   #--------------------------------------------------------------------------
  747.   # lvl_gauge1
  748.   #--------------------------------------------------------------------------
  749.   def lvl_gauge1; return text_color(YEA::VICTORY_AFTERMATH::LEVEL_GAUGE1); end
  750.   
  751.   #--------------------------------------------------------------------------
  752.   # lvl_gauge2
  753.   #--------------------------------------------------------------------------
  754.   def lvl_gauge2; return text_color(YEA::VICTORY_AFTERMATH::LEVEL_GAUGE2); end
  755.   
  756.   #--------------------------------------------------------------------------
  757.   # draw_actor_exp
  758.   #--------------------------------------------------------------------------
  759.   def draw_actor_exp(actor, rect)
  760.     if actor.max_level?
  761.       draw_exp_gauge(actor, rect, 1.0)
  762.       return
  763.     end
  764.     total_ticks = YEA::VICTORY_AFTERMATH::EXP_TICKS
  765.     bonus_exp = actor_exp_gain(actor) * @ticks / total_ticks
  766.     now_exp = actor.exp - actor.current_level_exp + bonus_exp
  767.     next_exp = actor.next_level_exp - actor.current_level_exp
  768.     rate = now_exp * 1.0 / next_exp
  769.     draw_exp_gauge(actor, rect, rate)
  770.   end
  771.   
  772.   #--------------------------------------------------------------------------
  773.   # draw_exp_gauge
  774.   #--------------------------------------------------------------------------
  775.   def draw_exp_gauge(actor, rect, rate)
  776.     rate = [[rate, 1.0].min, 0.0].max
  777.     dx = (rect.width - [rect.width, 96].min) / 2 + rect.x
  778.     dy = rect.y + line_height * 2 + 96
  779.     dw = [rect.width, 96].min
  780.     colour1 = rate >= 1.0 ? lvl_gauge1 : exp_gauge1
  781.     colour2 = rate >= 1.0 ? lvl_gauge2 : exp_gauge2
  782.     draw_gauge(dx, dy, dw, rate, colour1, colour2)
  783.     fmt = YEA::VICTORY_AFTERMATH::EXP_PERCENT
  784.     text = sprintf(fmt, [rate * 100, 100.00].min)
  785.     if [rate * 100, 100.00].min == 100.00
  786.       text = YEA::VICTORY_AFTERMATH::LEVELUP_TEXT
  787.       text = YEA::VICTORY_AFTERMATH::MAX_LVL_TEXT if actor.max_level?
  788.     end
  789.     draw_text(dx, dy, dw, line_height, text, 1)
  790.   end
  791.   
  792. end # Window_VictoryEXP_Front

  793. #==============================================================================
  794. # ■ Window_VictoryLevelUp
  795. #==============================================================================

  796. class Window_VictoryLevelUp < Window_Base
  797.   
  798.   #--------------------------------------------------------------------------
  799.   # initialize
  800.   #--------------------------------------------------------------------------
  801.   def initialize
  802.     super(0, fitting_height(1), Graphics.width, window_height)
  803.     self.z = 200
  804.     hide
  805.   end
  806.   
  807.   #--------------------------------------------------------------------------
  808.   # window_height
  809.   #--------------------------------------------------------------------------
  810.   def window_height
  811.     return Graphics.height - fitting_height(4) - fitting_height(1)
  812.   end
  813.   
  814.   #--------------------------------------------------------------------------
  815.   # refresh
  816.   #--------------------------------------------------------------------------
  817.   def refresh(actor, temp_actor)
  818.     contents.clear
  819.     reset_font_settings
  820.     YEA::VICTORY_AFTERMATH::LEVEL_SOUND.play
  821.     draw_actor_changes(actor, temp_actor)
  822.   end
  823.   
  824.   #--------------------------------------------------------------------------
  825.   # draw_actor_changes
  826.   #--------------------------------------------------------------------------
  827.   def draw_actor_changes(actor, temp_actor)
  828.     dx = contents.width / 16
  829.     draw_actor_image(actor, temp_actor, dx)
  830.     draw_param_names(actor, dx)
  831.     draw_former_stats(temp_actor)
  832.     draw_arrows
  833.     draw_newer_stats(actor, temp_actor)
  834.     draw_new_skills(actor, temp_actor)
  835.   end
  836.   
  837.   #--------------------------------------------------------------------------
  838.   # draw_actor_image
  839.   #--------------------------------------------------------------------------
  840.   def draw_actor_image(actor, temp_actor, dx)
  841.     draw_text(dx, line_height, 96, line_height, actor.name, 1)
  842.     draw_actor_face(actor, dx, line_height * 2)
  843.     exp = actor.exp - temp_actor.exp
  844.     text = sprintf(YEA::VICTORY_AFTERMATH::VICTORY_EXP, exp.group)
  845.     change_color(power_up_color)
  846.     contents.font.size = YEA::VICTORY_AFTERMATH::FONTSIZE_EXP
  847.     draw_text(0, line_height * 2 + 96, dx + 96, line_height, text, 2)
  848.     reset_font_settings
  849.   end
  850.   
  851.   #--------------------------------------------------------------------------
  852.   # draw_param_names
  853.   #--------------------------------------------------------------------------
  854.   def draw_param_names(actor, dx)
  855.     dx += 108
  856.     change_color(system_color)
  857.     text = Vocab.level
  858.     draw_text(dx, 0, contents.width - dx, line_height, text)
  859.     dy = 0
  860.     for i in 0...8
  861.       dy += line_height
  862.       text = Vocab.param(i)
  863.       draw_text(dx, dy, contents.width - dx, line_height, text)
  864.     end
  865.   end
  866.   
  867.   #--------------------------------------------------------------------------
  868.   # draw_former_stats
  869.   #--------------------------------------------------------------------------
  870.   def draw_former_stats(actor)
  871.     dw = contents.width / 2 - 12
  872.     dy = 0
  873.     change_color(normal_color)
  874.     draw_text(0, dy, dw, line_height, actor.level.group, 2)
  875.     for i in 0...8
  876.       dy += line_height
  877.       draw_text(0, dy, dw, line_height, actor.param(i).group, 2)
  878.     end
  879.   end
  880.   
  881.   #--------------------------------------------------------------------------
  882.   # draw_arrows
  883.   #--------------------------------------------------------------------------
  884.   def draw_arrows
  885.     dx = contents.width / 2 - 12
  886.     dy = 0
  887.     change_color(system_color)
  888.     for i in 0..8
  889.       draw_text(dx, dy, 24, line_height, "→", 1)
  890.       dy += line_height
  891.     end
  892.   end
  893.   
  894.   #--------------------------------------------------------------------------
  895.   # draw_newer_stats
  896.   #--------------------------------------------------------------------------
  897.   def draw_newer_stats(actor, temp_actor)
  898.     dx = contents.width / 2 + 12
  899.     dw = contents.width - dx
  900.     dy = 0
  901.     change_color(param_change_color(actor.level - temp_actor.level))
  902.     draw_text(dx, dy, dw, line_height, actor.level.group, 0)
  903.     for i in 0...8
  904.       dy += line_height
  905.       change_color(param_change_color(actor.param(i) - temp_actor.param(i)))
  906.       draw_text(dx, dy, dw, line_height, actor.param(i).group, 0)
  907.     end
  908.   end
  909.   
  910.   #--------------------------------------------------------------------------
  911.   # draw_new_skills
  912.   #--------------------------------------------------------------------------
  913.   def draw_new_skills(actor, temp_actor)
  914.     return if temp_actor.skills.size == actor.skills.size
  915.     dw = 172 + 24
  916.     dx = contents.width - dw
  917.     change_color(system_color)
  918.     text = YEA::VICTORY_AFTERMATH::SKILLS_TEXT
  919.     draw_text(dx, 0, dw, line_height, text, 0)
  920.   end
  921.   
  922. end # Window_VictoryLevelUp

  923. #==============================================================================
  924. # ■ Window_VictorySkills
  925. #==============================================================================

  926. class Window_VictorySkills < Window_Selectable
  927.   
  928.   #--------------------------------------------------------------------------
  929.   # initialize
  930.   #--------------------------------------------------------------------------
  931.   def initialize
  932.     dy = fitting_height(1) + 24
  933.     dw = 172 + 24 + 24
  934.     dh = Graphics.height - fitting_height(4) - fitting_height(1) - 24
  935.     super(Graphics.width - dw, dy, dw, dh)
  936.     self.opacity = 0
  937.     self.z = 200
  938.     hide
  939.   end
  940.   
  941.   #--------------------------------------------------------------------------
  942.   # item_max
  943.   #--------------------------------------------------------------------------
  944.   def item_max; return @data.nil? ? 0 : @data.size; end
  945.   
  946.   #--------------------------------------------------------------------------
  947.   # refresh
  948.   #--------------------------------------------------------------------------
  949.   def refresh(actor, temp_actor)
  950.     contents.clear
  951.     if actor.skills.size == temp_actor.skills.size
  952.       unselect
  953.       @data = []
  954.       create_contents
  955.       return
  956.     end
  957.     @data = actor.skills - temp_actor.skills
  958.     if @data.size > 8
  959.       select(0)
  960.       activate
  961.     else
  962.       unselect
  963.       deactivate
  964.     end
  965.     create_contents
  966.     draw_all_items
  967.   end
  968.   
  969.   #--------------------------------------------------------------------------
  970.   # refresh
  971.   #--------------------------------------------------------------------------
  972.   def draw_item(index)
  973.     rect = item_rect(index)
  974.     skill = @data[index]
  975.     return if skill.nil?
  976.     rect.width -= 4
  977.     draw_item_name(skill, rect.x, rect.y, true)
  978.   end
  979.   
  980. end # Window_VictorySkills

  981. #==============================================================================
  982. # ■ Window_VictorySpoils
  983. #==============================================================================

  984. class Window_VictorySpoils < Window_ItemList
  985.   
  986.   #--------------------------------------------------------------------------
  987.   # initialize
  988.   #--------------------------------------------------------------------------
  989.   def initialize
  990.     super(0, fitting_height(1), Graphics.width, window_height)
  991.     self.z = 200
  992.     hide
  993.   end
  994.   
  995.   #--------------------------------------------------------------------------
  996.   # window_height
  997.   #--------------------------------------------------------------------------
  998.   def window_height
  999.     return Graphics.height - fitting_height(4) - fitting_height(1)
  1000.   end
  1001.   
  1002.   #--------------------------------------------------------------------------
  1003.   # spacing
  1004.   #--------------------------------------------------------------------------
  1005.   def spacing; return 32; end
  1006.   
  1007.   #--------------------------------------------------------------------------
  1008.   # make
  1009.   #--------------------------------------------------------------------------
  1010.   def make(gold, drops)
  1011.     [url=home.php?mod=space&uid=236945]@gold[/url] = gold
  1012.     @drops = drops
  1013.     refresh
  1014.     select(0)
  1015.     activate
  1016.   end
  1017.   
  1018.   #--------------------------------------------------------------------------
  1019.   # make_item_list
  1020.   #--------------------------------------------------------------------------
  1021.   def make_item_list
  1022.     @data = [nil]
  1023.     items = {}
  1024.     weapons = {}
  1025.     armours = {}
  1026.     @goods = {}
  1027.     for item in @drops
  1028.       case item
  1029.       when RPG::Item
  1030.         items[item] = 0 if items[item].nil?
  1031.         items[item] += 1
  1032.       when RPG::Weapon
  1033.         weapons[item] = 0 if weapons[item].nil?
  1034.         weapons[item] += 1
  1035.       when RPG::Armor
  1036.         armours[item] = 0 if armours[item].nil?
  1037.         armours[item] += 1
  1038.       end
  1039.     end
  1040.     items = items.sort { |a,b| a[0].id <=> b[0].id }
  1041.     weapons = weapons.sort { |a,b| a[0].id <=> b[0].id }
  1042.     armours = armours.sort { |a,b| a[0].id <=> b[0].id }
  1043.     for key in items; @goods[key[0]] = key[1]; @data.push(key[0]); end
  1044.     for key in weapons; @goods[key[0]] = key[1]; @data.push(key[0]); end
  1045.     for key in armours; @goods[key[0]] = key[1]; @data.push(key[0]); end
  1046.   end
  1047.   
  1048.   #--------------------------------------------------------------------------
  1049.   # draw_item
  1050.   #--------------------------------------------------------------------------
  1051.   def draw_item(index)
  1052.     item = @data[index]
  1053.     rect = item_rect(index)
  1054.     reset_font_settings
  1055.     if item.nil?
  1056.       draw_gold(rect)
  1057.       return
  1058.     end
  1059.     rect.width -= 4
  1060.     draw_item_name(item, rect.x, rect.y, true, rect.width - 24)
  1061.     draw_item_number(rect, item)
  1062.   end
  1063.   
  1064.   #--------------------------------------------------------------------------
  1065.   # draw_gold
  1066.   #--------------------------------------------------------------------------
  1067.   def draw_gold(rect)
  1068.     text = Vocab.currency_unit
  1069.     draw_currency_value(@gold, text, rect.x, rect.y, rect.width)
  1070.   end
  1071.   
  1072.   #--------------------------------------------------------------------------
  1073.   # draw_item_number
  1074.   #--------------------------------------------------------------------------
  1075.   def draw_item_number(rect, item)
  1076.     number = @goods[item].group
  1077.     if $imported["YEA-AdjustLimits"]
  1078.       contents.font.size = YEA::LIMIT::ITEM_FONT
  1079.       text = sprintf(YEA::LIMIT::ITEM_PREFIX, number)
  1080.       draw_text(rect, text, 2)
  1081.     else
  1082.       draw_text(rect, sprintf(":%s", number), 2)
  1083.     end
  1084.   end
  1085.   
  1086. end # Window_VictorySpoils

  1087. #==============================================================================
  1088. # ■ Scene_Battle
  1089. #==============================================================================

  1090. class Scene_Battle < Scene_Base
  1091.   
  1092.   #--------------------------------------------------------------------------
  1093.   # alias method: create_all_windows
  1094.   #--------------------------------------------------------------------------
  1095.   alias scene_battle_create_all_windows_va create_all_windows
  1096.   def create_all_windows
  1097.     scene_battle_create_all_windows_va
  1098.     create_victory_aftermath_windows
  1099.   end
  1100.   
  1101.   #--------------------------------------------------------------------------
  1102.   # new method: create_victory_aftermath_windows
  1103.   #--------------------------------------------------------------------------
  1104.   def create_victory_aftermath_windows
  1105.     @victory_title_window = Window_VictoryTitle.new
  1106.     @victory_exp_window_back = Window_VictoryEXP_Back.new
  1107.     @victory_exp_window_front = Window_VictoryEXP_Front.new
  1108.     @victory_level_window = Window_VictoryLevelUp.new
  1109.     @victory_level_skills = Window_VictorySkills.new
  1110.     @victory_spoils_window = Window_VictorySpoils.new
  1111.   end
  1112.   
  1113.   #--------------------------------------------------------------------------
  1114.   # new method: show_victory_display_exp
  1115.   #--------------------------------------------------------------------------
  1116.   def show_victory_display_exp
  1117.     @victory_title_window.open
  1118.     name = $game_party.battle_members[0].name
  1119.     fmt = YEA::VICTORY_AFTERMATH::TOP_TEAM
  1120.     name = sprintf(fmt, name) if $game_party.battle_members.size > 1
  1121.     fmt = YEA::VICTORY_AFTERMATH::TOP_VICTORY_TEXT
  1122.     text = sprintf(fmt, name)
  1123.     @victory_title_window.refresh(text)
  1124.     #---
  1125.     @victory_exp_window_back.open
  1126.     @victory_exp_window_back.refresh
  1127.     @victory_exp_window_front.open
  1128.     @victory_exp_window_front.refresh
  1129.   end
  1130.   
  1131.   #--------------------------------------------------------------------------
  1132.   # new method: show_victory_level_up
  1133.   #--------------------------------------------------------------------------
  1134.   def show_victory_level_up(actor, temp_actor)
  1135.     @victory_exp_window_back.hide
  1136.     @victory_exp_window_front.hide
  1137.     #---
  1138.     fmt = YEA::VICTORY_AFTERMATH::TOP_LEVEL_UP
  1139.     text = sprintf(fmt, actor.name)
  1140.     @victory_title_window.refresh(text)
  1141.     #---
  1142.     @victory_level_window.show
  1143.     @victory_level_window.refresh(actor, temp_actor)
  1144.     @victory_level_skills.show
  1145.     @victory_level_skills.refresh(actor, temp_actor)
  1146.   end
  1147.   
  1148.   #--------------------------------------------------------------------------
  1149.   # new method: show_victory_spoils
  1150.   #--------------------------------------------------------------------------
  1151.   def show_victory_spoils(gold, drops)
  1152.     @victory_exp_window_back.hide
  1153.     @victory_exp_window_front.hide
  1154.     @victory_level_window.hide
  1155.     @victory_level_skills.hide
  1156.     #---
  1157.     text = YEA::VICTORY_AFTERMATH::TOP_SPOILS
  1158.     @victory_title_window.refresh(text)
  1159.     #---
  1160.     @victory_spoils_window.show
  1161.     @victory_spoils_window.make(gold, drops)
  1162.   end
  1163.   
  1164.   #--------------------------------------------------------------------------
  1165.   # new method: close_victory_windows
  1166.   #--------------------------------------------------------------------------
  1167.   def close_victory_windows
  1168.     @victory_title_window.close
  1169.     @victory_exp_window_back.close
  1170.     @victory_exp_window_front.close
  1171.     @victory_level_window.close
  1172.     @victory_level_skills.close
  1173.     @victory_spoils_window.close
  1174.     wait(16)
  1175.   end
  1176.   
  1177. end # Scene_Battle

  1178. #==============================================================================
  1179. #
  1180. # ▼ End of File
  1181. #
  1182. #==============================================================================
复制代码
梦石
0
星屑
50
在线时间
46 小时
注册时间
2013-7-13
回帖
55
发表于 2013-7-24 08:33:01 | 显示全部楼层
删掉不就好了.......
抱歉 我脚本盲一只,没看出开光在哪....

点评

因為LNX11a的勝利很陽春 我比較喜歡Yanfly Engine的Victory Aftermath但Victory Messages無法關閉的情況下背景會出現對話...就跟那張圖一樣  发表于 2013-7-24 14:25
簡單來說就是我想要留下Victory Aftermath這個腳本 但我不需要Victory Aftermath內的Victory Messages  发表于 2013-7-24 14:24
回复

使用道具 举报

梦石
0
星屑
50
在线时间
46 小时
注册时间
2013-7-13
回帖
55
发表于 2013-7-24 15:21:53 | 显示全部楼层
163行到203行   全都删掉试试。
记得点一下保存再测试运行

点评

不行會有錯誤  发表于 2013-7-24 18:25
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部