查看: 1112|回复: 3

[已经解决] YEA胜利显示脚本,如何关掉其中某些不要的功能?

[复制链接]
梦石
1
星屑
472
在线时间
120 小时
注册时间
2016-3-6
回帖
63
发表于 2016-8-10 20:46:40 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 square320 于 2016-8-15 22:12 编辑

我的问题跟这个帖子的有点像:https://rpg.blue/forum.php?mod=viewthread&tid=369384
只是我想要关掉的功能跟那人不一样..
下面给出我工程里的YEA脚本(我工程内的脚本和原脚本不同,为了兼容另外个脚本而修改了一些地方..)


  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 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.     AFTERMATH_COMMON_EVENT = 0  # Runs common event after battle. 0 to disable.
  128.    
  129.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  130.     # - Top Text Settings -
  131.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  132.     # Here, you can adjust the various text that appears in the window that
  133.     # appears at the top of the screen.
  134.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  135.     TOP_TEAM         = "%s的队伍"           # Team name used.
  136.     TOP_VICTORY_TEXT = "%s胜利了!"   # Text used to display victory.
  137.     TOP_LEVEL_UP     = "%s升级!"  # Text used to display level up.
  138.     TOP_SPOILS       = "胜利战利品!"     # Text used for spoils.
  139.    
  140.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  141.     # - EXP Gauge Settings -
  142.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  143.     # Adjust how the EXP Gauge appears for the Victory Aftermath here. This
  144.     # includes the text display, the font size, the colour of the gauges, and
  145.     # more. Adjust it all here.
  146.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  147.     VICTORY_EXP  = "+%sEXP"      # Text used to display EXP.
  148.     EXP_PERCENT  = "%1.2f%%"     # The way EXP percentage will be displayed.
  149.     LEVELUP_TEXT = "LEVEL UP!"   # Text to replace percentage when leveled.
  150.     MAX_LVL_TEXT = "MAX LEVEL"   # Text to replace percentage when max level.
  151.     FONTSIZE_EXP = 20            # Font size used for EXP.
  152.     EXP_TICKS    = 15            # Ticks to full EXP
  153.     EXP_GAUGE1   = 12            # "Window" skin text colour for gauge.
  154.     EXP_GAUGE2   = 4             # "Window" skin text colour for gauge.
  155.     LEVEL_GAUGE1 = 13            # "Window" skin text colour for leveling.
  156.     LEVEL_GAUGE2 = 5             # "Window" skin text colour for leveling.
  157.    
  158.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  159.     # - Victory Messages -
  160.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  161.     # In the Victory Aftermath, actors can say unique things. This is the pool
  162.     # of quotes used for actors without any custom victory quotes. Note that
  163.     # actors with custom quotes will take priority over classes with custom
  164.     # quotes, which will take priority over these default quotes. Use \n for
  165.     # a line break in the quotes.
  166.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  167.     HEADER_TEXT = "\e>\eC[6]%s\eC[0]\e<\n"  # Always at start of messages.
  168.     FOOTER_TEXT = ""                        # Always at end of messages.
  169.    
  170.     # Win Quotes are what the actors say when a battle is won.
  171.     VICTORY_QUOTES ={
  172.     # :type   => Quotes
  173.       #------------------------------------------------------------------------
  174.       :win    => [ # Occurs as initial victory quote.
  175.                    '战斗胜利',
  176.                  ],# Do not remove this.
  177.       #------------------------------------------------------------------------
  178.       :level  => [ # Occurs as initial victory quote.
  179.                    '等级提升',
  180.                  ],# Do not remove this.
  181.       #------------------------------------------------------------------------
  182.       :drops  => [ # Occurs as initial victory quote.
  183.                    '掉落物品',
  184.                  ],# Do not remove this.
  185.       #------------------------------------------------------------------------
  186.     } # Do not remove this.
  187.    
  188.   end # VICTORY_AFTERMATH
  189. end # YEA

  190. #==============================================================================
  191. # ▼ Editting anything past this point may potentially result in causing
  192. # computer damage, incontinence, explosion of user's head, coma, death, and/or
  193. # halitosis so edit at your own risk.
  194. #==============================================================================

  195. module YEA
  196.   module REGEXP
  197.   module BASEITEM
  198.    
  199.     NEW_QUOTE = /\[(?:NEW_QUOTE|new quote)\]/i
  200.    
  201.     WIN_QUOTE_ON    = /<(?:WIN_QUOTES|win quote|win quotes)>/i
  202.     WIN_QUOTE_OFF   = /<\/(?:WIN_QUOTES|win quote|win quotes)>/i
  203.     LEVEL_QUOTE_ON  = /<(?:LEVEL_QUOTES|level quote|level quotes)>/i
  204.     LEVEL_QUOTE_OFF = /<\/(?:LEVEL_QUOTES|level quote|level quotes)>/i
  205.     DROPS_QUOTE_ON  = /<(?:DROPS_QUOTES|drops quote|drops quotes)>/i
  206.     DROPS_QUOTE_OFF = /<\/(?:DROPS_QUOTES|drops quote|drops quotes)>/i
  207.    
  208.   end # BASEITEM
  209.   end # REGEXP
  210. end # YEA

  211. #==============================================================================
  212. # ■ Switch
  213. #==============================================================================

  214. module Switch
  215.   
  216.   #--------------------------------------------------------------------------
  217.   # self.skip_aftermath
  218.   #--------------------------------------------------------------------------
  219.   def self.skip_aftermath
  220.     return false if YEA::VICTORY_AFTERMATH::SKIP_AFTERMATH_SWITCH <= 0
  221.     return $game_switches[YEA::VICTORY_AFTERMATH::SKIP_AFTERMATH_SWITCH]
  222.   end
  223.    
  224. end # Switch

  225. #==============================================================================
  226. # ■ Numeric
  227. #==============================================================================

  228. class Numeric
  229.   
  230.   #--------------------------------------------------------------------------
  231.   # new method: group_digits
  232.   #--------------------------------------------------------------------------
  233.   unless $imported["YEA-CoreEngine"]
  234.   def group; return self.to_s; end
  235.   end # $imported["YEA-CoreEngine"]
  236.    
  237. end # Numeric

  238. #==============================================================================
  239. # ■ DataManager
  240. #==============================================================================

  241. module DataManager
  242.   
  243.   #--------------------------------------------------------------------------
  244.   # alias method: load_database
  245.   #--------------------------------------------------------------------------
  246.   class <<self; alias load_database_va load_database; end
  247.   def self.load_database
  248.     load_database_va
  249.     load_notetags_va
  250.   end
  251.   
  252.   #--------------------------------------------------------------------------
  253.   # new method: load_notetags_va
  254.   #--------------------------------------------------------------------------
  255.   def self.load_notetags_va
  256.     groups = [$data_actors, $data_classes]
  257.     for group in groups
  258.       for obj in group
  259.         next if obj.nil?
  260.         obj.load_notetags_va
  261.       end
  262.     end
  263.   end
  264.   
  265. end # DataManager

  266. #==============================================================================
  267. # ■ RPG::BaseItem
  268. #==============================================================================

  269. class RPG::BaseItem
  270.   
  271.   #--------------------------------------------------------------------------
  272.   # public instance variables
  273.   #--------------------------------------------------------------------------
  274.   attr_accessor :win_quotes
  275.   attr_accessor :level_quotes
  276.   attr_accessor :drops_quotes
  277.   
  278.   #--------------------------------------------------------------------------
  279.   # common cache: load_notetags_va
  280.   #--------------------------------------------------------------------------
  281.   def load_notetags_va
  282.     @win_quotes = [""]
  283.     @level_quotes = [""]
  284.     @drops_quotes = [""]
  285.     @victory_quote_type = nil
  286.     #---
  287.     self.note.split(/[\r\n]+/).each { |line|
  288.       case line
  289.       #---
  290.       when YEA::REGEXP::BASEITEM::WIN_QUOTE_ON
  291.         @victory_quote_type = :win_quote
  292.       when YEA::REGEXP::BASEITEM::WIN_QUOTE_OFF
  293.         @victory_quote_type = nil
  294.       when YEA::REGEXP::BASEITEM::LEVEL_QUOTE_ON
  295.         @victory_quote_type = :level_quote
  296.       when YEA::REGEXP::BASEITEM::LEVEL_QUOTE_OFF
  297.         @victory_quote_type = nil
  298.       when YEA::REGEXP::BASEITEM::DROPS_QUOTE_ON
  299.         @victory_quote_type = :drops_quote
  300.       when YEA::REGEXP::BASEITEM::DROPS_QUOTE_OFF
  301.         @victory_quote_type = nil
  302.       #---
  303.       when YEA::REGEXP::BASEITEM::NEW_QUOTE
  304.         case @victory_quote_type
  305.         when nil; next
  306.         when :win_quote;   @win_quotes.push("")
  307.         when :level_quote; @level_quotes.push("")
  308.         when :drops_quote; @drops_quotes.push("")
  309.         end
  310.       #---
  311.       else
  312.         case @victory_quote_type
  313.         when nil; next
  314.         when :win_quote;   @win_quotes[@win_quotes.size-1] += line.to_s
  315.         when :level_quote; @level_quotes[@level_quotes.size-1] += line.to_s
  316.         when :drops_quote; @drops_quotes[@drops_quotes.size-1] += line.to_s
  317.         end
  318.       end
  319.     } # self.note.split
  320.     #---
  321.     return unless self.is_a?(RPG::Class)
  322.     quotes = YEA::VICTORY_AFTERMATH::VICTORY_QUOTES
  323.     @win_quotes = quotes[:win].clone if @win_quotes == [""]
  324.     @level_quotes = quotes[:level].clone if @level_quotes == [""]
  325.     @drops_quotes = quotes[:drops].clone if @drops_quotes == [""]
  326.   end
  327.   
  328. end # RPG::BaseItem

  329. #==============================================================================
  330. # ■ BattleManager
  331. #==============================================================================

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

  468. #==============================================================================
  469. # ■ Game_Actor
  470. #==============================================================================

  471. class Game_Actor < Game_Battler
  472.   
  473.   #--------------------------------------------------------------------------
  474.   # overwrite method: gain_exp
  475.   #--------------------------------------------------------------------------
  476.   def gain_exp(exp)
  477.     enabled = !SceneManager.scene_is?(Scene_Battle)
  478.     change_exp(self.exp + (exp * final_exp_rate).to_i, enabled)
  479.   end
  480.   
  481.   #--------------------------------------------------------------------------
  482.   # new method: victory_quotes
  483.   #--------------------------------------------------------------------------
  484.   def victory_quotes(type)
  485.     case type
  486.     when :win
  487.       return self.actor.win_quotes if self.actor.win_quotes != [""]
  488.       return self.class.win_quotes
  489.     when :level
  490.       return self.actor.level_quotes if self.actor.level_quotes != [""]
  491.       return self.class.level_quotes
  492.     when :drops
  493.       return self.actor.drops_quotes if self.actor.drops_quotes != [""]
  494.       return self.class.drops_quotes
  495.     else
  496.       return ["NOTEXT"]
  497.     end
  498.   end
  499.   
  500. end # Game_Actor

  501. #==============================================================================
  502. # ■ Window_VictoryTitle
  503. #==============================================================================

  504. class Window_VictoryTitle < Window_Base
  505.   
  506.   #--------------------------------------------------------------------------
  507.   # initialize
  508.   #--------------------------------------------------------------------------
  509.   def initialize
  510.     super(0, 0, Graphics.width, fitting_height(1))
  511.     self.z = 200
  512.     self.openness = 0
  513.   end
  514.   
  515.   #--------------------------------------------------------------------------
  516.   # refresh
  517.   #--------------------------------------------------------------------------
  518.   def refresh(message = "")
  519.     contents.clear
  520.     draw_text(0, 0, contents.width, line_height, message, 1)
  521.   end
  522.   
  523. end # Window_VictoryTitle

  524. #==============================================================================
  525. # ■ Window_VictoryEXP_Back
  526. #==============================================================================

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

  662. #==============================================================================
  663. # ■ Window_VictoryEXP_Front
  664. #==============================================================================

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

  784. #==============================================================================
  785. # ■ Window_VictoryLevelUp
  786. #==============================================================================

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

  914. #==============================================================================
  915. # ■ Window_VictorySkills
  916. #==============================================================================

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

  972. #==============================================================================
  973. # ■ Window_VictorySpoils
  974. #==============================================================================

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

  1078. #==============================================================================
  1079. # ■ Scene_Battle
  1080. #==============================================================================

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

  1169. #==============================================================================
  1170. #
  1171. # ▼ End of File
  1172. #
  1173. #==============================================================================
复制代码



如上,我用红笔标注出的,那个 胜利后显示对话框和角色头像以及胜利台词的功能可否去掉...来自圈子: 白菜组
R
梦石
1
星屑
472
在线时间
120 小时
注册时间
2016-3-6
回帖
63
 楼主| 发表于 2016-8-10 20:51:20 | 显示全部楼层
本帖最后由 square320 于 2016-8-10 20:54 编辑
  1.    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  2.     # - Victory Messages -
  3.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  4.     # In the Victory Aftermath, actors can say unique things. This is the pool
  5.     # of quotes used for actors without any custom victory quotes. Note that
  6.     # actors with custom quotes will take priority over classes with custom
  7.     # quotes, which will take priority over these default quotes. Use \n for
  8.     # a line break in the quotes.
  9.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  10.     HEADER_TEXT = "\e>\eC[6]%s\eC[0]\e<\n"  # Always at start of messages.
  11.     FOOTER_TEXT = ""                        # Always at end of messages.
  12.    
  13.     # Win Quotes are what the actors say when a battle is won.
  14.     VICTORY_QUOTES ={
  15.     # :type   => Quotes
  16.       #------------------------------------------------------------------------
  17.       :win    => [ # Occurs as initial victory quote.
  18. #                  '战斗胜利',
  19.                  ],# Do not remove this.
  20.       #------------------------------------------------------------------------
  21.       :level  => [ # Occurs as initial victory quote.
  22. #                   '等级提升',
  23.                  ],# Do not remove this.
  24.       #------------------------------------------------------------------------
  25.       :drops  => [ # Occurs as initial victory quote.
  26. #                  '掉落物品',
  27.                  ],# Do not remove this.
  28.       #------------------------------------------------------------------------
  29.     } # Do not remove this.
  30.    
  31.   end # VICTORY_AFTERMATH
  32. end # YEA
复制代码


就是上面这段功能不要= = 如果用那个人帖子里提到的‘注释掉功能有关的脚本’这个办法的话,要注释掉哪些内容?
R
回复

使用道具 举报

梦石
0
星屑
9726
在线时间
2775 小时
注册时间
2008-9-5
回帖
3458

开拓者短篇八RM组冠军短篇九导演组亚军白银编剧

发表于 2016-8-15 22:42:26 | 显示全部楼层

  1. class Scene_Battle < Scene_Base
  2.   #--------------------------------------------------------------------------
  3.   # ○ 建立结算窗口的时候设定坐标居中
  4.   #--------------------------------------------------------------------------
  5.   alias sny46_160815_cvaw create_victory_aftermath_windows
  6.   def create_victory_aftermath_windows
  7.     sny46_160815_cvaw
  8.     # 设置标题窗口的位置
  9.     title_y = (Graphics.height - @victory_title_window.height - @victory_level_window.height) / 2
  10.     @victory_title_window.y = title_y
  11.     # 设置其他窗口的位置
  12.     @victory_exp_window_back.y = @victory_exp_window_front.y =
  13.     @victory_level_window.y = @victory_level_skills.y =
  14.     @victory_spoils_window.y = title_y + @victory_title_window.height
  15.   end
  16.   #--------------------------------------------------------------------------
  17.   # ○ 显示经验的时候关闭状态栏
  18.   #--------------------------------------------------------------------------
  19.   alias sny46_160815_svde show_victory_display_exp
  20.   def show_victory_display_exp
  21.     @status_window.close
  22.     sny46_160815_svde
  23.   end
  24. end


  25. module BattleManager
  26.   #--------------------------------------------------------------------------
  27.   # ○ 等待,直到按下确定键
  28.   #--------------------------------------------------------------------------
  29.   def self.wait_until_enter
  30.     loop do
  31.       SceneManager.scene.update_basic
  32.       break if Input.trigger?(:C)
  33.     end
  34.   end
  35.   #--------------------------------------------------------------------------
  36.   # ○ 改为等待按下确定键,不再显示对话
  37.   #--------------------------------------------------------------------------
  38.   def self.set_victory_text(actor, type)
  39.     wait_until_enter
  40.   end
  41. end
复制代码

这段代码丢到结算脚本的下面试试看。

评分

参与人数 1星屑 +250 梦石 +1 收起 理由
RaidenInfinity + 250 + 1 楼主认可的解答

查看全部评分

回复 1 0

使用道具 举报

梦石
1
星屑
472
在线时间
120 小时
注册时间
2016-3-6
回帖
63
 楼主| 发表于 2016-8-15 23:16:46 | 显示全部楼层
cinderelmini 发表于 2016-8-15 22:42
这段代码丢到结算脚本的下面试试看。

恩!可以了!感谢大触帮忙!
R
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部