查看: 1973|回复: 1

[已经解决] 怎么修改升级信息呢

[复制链接]
梦石
0
星屑
4853
在线时间
1157 小时
注册时间
2009-10-3
回帖
140
发表于 2012-10-10 14:47:30 | 显示全部楼层 |阅读模式

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

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

×
RT
怎么才能修改那个升级以后的提示信息呢?
现在是升级以后提示升到多少级 然后学会神马技能。
我想问问怎么才能将属性增减弄到上面去。
例如说  力量4→7   体质5→10  智力10→20
这种怎么弄那。
自己给自己挖了一个坑,然后掉下去的我,竟然爬不上来了,呵呵(NMB)。
梦石
0
星屑
50
在线时间
212 小时
注册时间
2012-3-5
回帖
206
发表于 2012-10-10 20:57:27 | 显示全部楼层
本帖最后由 Mic_洛洛 于 2012-10-12 22:29 编辑

这个脚本包含那要求的内容~
  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.                                      '"玩火者必烫伤!"',
  177.                  ],# Do not remove this.
  178.       #------------------------------------------------------------------------
  179.       :level  => [ # Occurs as initial victory quote.
  180.                    '"升级了!"',
  181.                    '"我的能力更上一层了!"',
  182.                    '"试试超过我!"',
  183.                    '"我又成长了!"',
  184.                  ],# Do not remove this.
  185.       #------------------------------------------------------------------------
  186.       :drops  => [ # Occurs as initial victory quote.
  187.                    '"过马路要左右看,红灯停,绿灯行!"',
  188.                                '"玩火者必烫伤!"',
  189.                  ],# Do not remove this.
  190.       #------------------------------------------------------------------------
  191.     } # Do not remove this.
  192.    
  193.   end # VICTORY_AFTERMATH
  194. end # YEA

  195. #==============================================================================
  196. # ▼ Editting anything past this point may potentially result in causing
  197. # computer damage, incontinence, explosion of user's head, coma, death, and/or
  198. # halitosis so edit at your own risk.
  199. #==============================================================================

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

  216. #==============================================================================
  217. # ■ Switch
  218. #==============================================================================

  219. module Switch
  220.   
  221.   #--------------------------------------------------------------------------
  222.   # self.skip_aftermath
  223.   #--------------------------------------------------------------------------
  224.   def self.skip_aftermath
  225.     return false if YEA::VICTORY_AFTERMATH::SKIP_AFTERMATH_SWITCH <= 0
  226.     return $game_switches[YEA::VICTORY_AFTERMATH::SKIP_AFTERMATH_SWITCH]
  227.   end
  228.    
  229. end # Switch

  230. #==============================================================================
  231. # ■ Numeric
  232. #==============================================================================

  233. class Numeric
  234.   
  235.   #--------------------------------------------------------------------------
  236.   # new method: group_digits
  237.   #--------------------------------------------------------------------------
  238.   unless $imported["YEA-CoreEngine"]
  239.   def group; return self.to_s; end
  240.   end # $imported["YEA-CoreEngine"]
  241.    
  242. end # Numeric

  243. #==============================================================================
  244. # ■ DataManager
  245. #==============================================================================

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

  271. #==============================================================================
  272. # ■ RPG::BaseItem
  273. #==============================================================================

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

  334. #==============================================================================
  335. # ■ BattleManager
  336. #==============================================================================

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

  466. #==============================================================================
  467. # ■ Game_Actor
  468. #==============================================================================

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

  499. #==============================================================================
  500. # ■ Window_VictoryTitle
  501. #==============================================================================

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

  522. #==============================================================================
  523. # ■ Window_VictoryEXP_Back
  524. #==============================================================================

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

  660. #==============================================================================
  661. # ■ Window_VictoryEXP_Front
  662. #==============================================================================

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

  782. #==============================================================================
  783. # ■ Window_VictoryLevelUp
  784. #==============================================================================

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

  912. #==============================================================================
  913. # ■ Window_VictorySkills
  914. #==============================================================================

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

  970. #==============================================================================
  971. # ■ Window_VictorySpoils
  972. #==============================================================================

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

  1076. #==============================================================================
  1077. # ■ Scene_Battle
  1078. #==============================================================================

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

  1167. #==============================================================================
  1168. #
  1169. # ▼ End of File
  1170. #
  1171. #==============================================================================
复制代码

点评

收到~谢谢~  发表于 2012-10-12 22:33
^^洛子已帮你编辑了。以后发脚本要用代码框——高级模式里选<>,然后在里面插入就可以了喔!  发表于 2012-10-12 22:32
不懂得怎么贴出可以复制的脚本~抱歉了~  发表于 2012-10-10 21:01

评分

参与人数 1梦石 +2 收起 理由
Mic_洛洛 + 2 认可答案,附赠6R精美好人卡一张!.

查看全部评分

回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部