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

Project1

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

[已经解决] 求战斗后宣言的脚本

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
26 小时
注册时间
2012-1-11
帖子
12
跳转到指定楼层
1
发表于 2012-3-10 10:07:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
原来找到一个,最后意外删除了。最好要带获得金钱,exp,物品等

Lv1.梦旅人

梦石
0
星屑
108
在线时间
1006 小时
注册时间
2008-11-9
帖子
1658
2
发表于 2012-3-10 11:18:19 | 只看该作者
不明白,物品得失、等级提升提示脚本不符合你的要求么?
http://rpg.blue/forum.php?mod=vi ... D368%26typeid%3D368
回复

使用道具 举报

Lv4.逐梦者 (管理员)

砂上描绘的愿想

梦石
15
星屑
4080
在线时间
5073 小时
注册时间
2012-1-15
帖子
4618

开拓者贵宾短篇七成年组亚军剧作品鉴家

3
发表于 2012-3-10 11:46:48 | 只看该作者
楼主要的是 战斗后显示四个人分别得了多少经验,多少物品,然后最后打败敌人的那个队友还要吼一句:老娘最强!⑨⑨⑨⑨⑨⑨⑨⑨⑨!
这种脚本……
若后退就皆成谎言。
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
154
在线时间
664 小时
注册时间
2011-9-25
帖子
241
4
发表于 2012-3-10 12:28:47 | 只看该作者
本帖最后由 xuzhengchi 于 2012-3-10 12:29 编辑

PHP 代码复制
  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.  
  10. $imported = {} if $imported.nil?
  11. $imported["YEA-VictoryAftermath"] = true
  12.  
  13. #==============================================================================
  14. # ▼ Updates
  15. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  16. # 2012.01.07 - Compatibility Update: JP Manager
  17. # 2012.01.01 - Bug Fixed: Quote tags were mislabeled.
  18. # 2011.12.26 - Compatibility Update: Command Autobattle
  19. # 2011.12.16 - Started Script and Finished.
  20. #
  21. #==============================================================================
  22. # ▼ Introduction
  23. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  24. # At the end of each battle, RPG Maker VX Ace by default shows text saying that
  25. # the party has gained so-and-so EXP while this person leveled up and your
  26. # party happened to find these drops. This script changes that text into
  27. # something more visual for your players to see. Active battle members will be
  28. # seen gaining EXP, any kind of level up changes, and a list of the items
  29. # obtained through drops.
  30. #
  31. #==============================================================================
  32. # ▼ Instructions
  33. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  34. # To install this script, open up your script editor and copy/paste this script
  35. # to an open slot below ▼ Materials/素材 but above ▼ Main. Remember to save.
  36. #
  37. # -----------------------------------------------------------------------------
  38. # Actor Notetags - These notetags go in the actors notebox in the database.
  39. # -----------------------------------------------------------------------------
  40. # <win quotes>
  41. #  string
  42. #  string
  43. # </win quotes>
  44. # Sets the win quote for the actor. The strings are continuous and can use
  45. # text codes. Use \n for a line break. Type in what you want the actor to say
  46. # for the particular win quote. Use [New Quote] in between the two tags to
  47. # start up a new quote.
  48. #
  49. # <level quotes>
  50. #  string
  51. #  string
  52. # </level quotes>
  53. # Sets the level up quote for the actor. The strings are continuous and can use
  54. # text codes. Use \n for a line break. Type in what you want the actor to say
  55. # for the particular win quote. Use [New Quote] in between the two tags to
  56. # start up a new quote.
  57. #
  58. # <drops quotes>
  59. #  string
  60. #  string
  61. # </drops quotes>
  62. # Sets the drops quote for the actor. The strings are continuous and can use
  63. # text codes. Use \n for a line break. Type in what you want the actor to say
  64. # for the particular win quote. Use [New Quote] in between the two tags to
  65. # start up a new quote.
  66. #
  67. # -----------------------------------------------------------------------------
  68. # Class Notetags - These notetags go in the class notebox in the database.
  69. # -----------------------------------------------------------------------------
  70. # <win quotes>
  71. #  string
  72. #  string
  73. # </win quotes>
  74. # Sets the win quote for the class. The strings are continuous and can use
  75. # text codes. Use \n for a line break. Type in what you want the actor to say
  76. # for the particular win quote. Use [New Quote] in between the two tags to
  77. # start up a new quote.
  78. #
  79. # <level quotes>
  80. #  string
  81. #  string
  82. # </level quotes>
  83. # Sets the level up quote for the class. The strings are continuous and can use
  84. # text codes. Use \n for a line break. Type in what you want the actor to say
  85. # for the particular win quote. Use [New Quote] in between the two tags to
  86. # start up a new quote.
  87. #
  88. # <drops quotes>
  89. #  string
  90. #  string
  91. # </drops quotes>
  92. # Sets the drops quote for the class. The strings are continuous and can use
  93. # text codes. Use \n for a line break. Type in what you want the actor to say
  94. # for the particular win quote. Use [New Quote] in between the two tags to
  95. # start up a new quote.
  96. #
  97. #==============================================================================
  98. # ▼ Compatibility
  99. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  100. # This script is made strictly for RPG Maker VX Ace. It is highly unlikely that
  101. # it will run with RPG Maker VX without adjusting.
  102. #
  103. #==============================================================================
  104.  
  105. module YEA
  106.   module VICTORY_AFTERMATH
  107.  
  108.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  109.     # - General Settings -
  110.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  111.     # These are various settings that are used throughout the Victory Aftermath
  112.     # portion of a battle. Adjust them as you see fit.
  113.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  114.     VICTORY_BGM  = RPG::BGM.new("Field1", 100, 100)    # Victory BGM
  115.     VICTORY_TICK = RPG::SE.new("Decision1", 100, 150)  # EXP ticking SFX
  116.     LEVEL_SOUND  = RPG::SE.new("Up4", 80, 150)         # Level Up SFX
  117.     SKILLS_TEXT  = "新技能"                        # New skills text title.
  118.  
  119.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  120.     # - Important Settings -
  121.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  122.     # These are some important settings so please set them up properly. This
  123.     # section includes a switch that allows you to skip the victory aftermath
  124.     # phase (for those back to back battles and making them seamless) and it
  125.     # also allows you to declare a common event to run after each battle. If
  126.     # you do not wish to use either of these features, set them to 0. The
  127.     # common event will run regardless of win or escape.
  128.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  129.     SKIP_AFTERMATH_SWITCH  = 0  # If switch on, skip aftermath. 0 to disable.
  130.     SKIP_MUSIC_SWITCH      = 0  # If switch on, skip music. 0 to disable.
  131.     AFTERMATH_COMMON_EVENT = 0  # Runs common event after battle. 0 to disable.
  132.  
  133.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  134.     # - Top Text Settings -
  135.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  136.     # Here, you can adjust the various text that appears in the window that
  137.     # appears at the top of the screen.
  138.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  139.     TOP_TEAM         = "%s的队伍"           # Team name used.
  140.     TOP_VICTORY_TEXT = "%s取得了胜利!"   # Text used to display victory.
  141.     TOP_LEVEL_UP     = "%s升级了!"  # Text used to display level up.
  142.     TOP_SPOILS       = "战利品!"     # Text used for spoils.
  143.  
  144.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  145.     # - EXP Gauge Settings -
  146.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  147.     # Adjust how the EXP Gauge appears for the Victory Aftermath here. This
  148.     # includes the text display, the font size, the colour of the gauges, and
  149.     # more. Adjust it all here.
  150.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  151.     VICTORY_EXP  = "+%sEXP"      # Text used to display EXP.
  152.     EXP_PERCENT  = "%1.2f%%"     # The way EXP percentage will be displayed.
  153.     LEVELUP_TEXT = "等级提升!"   # Text to replace percentage when leveled.
  154.     MAX_LVL_TEXT = "最大等级"   # Text to replace percentage when max level.
  155.     FONTSIZE_EXP = 20            # Font size used for EXP.
  156.     EXP_TICKS    = 15            # Ticks to full EXP
  157.     EXP_GAUGE1   = 12            # "Window" skin text colour for gauge.
  158.     EXP_GAUGE2   = 4             # "Window" skin text colour for gauge.
  159.     LEVEL_GAUGE1 = 13            # "Window" skin text colour for leveling.
  160.     LEVEL_GAUGE2 = 5             # "Window" skin text colour for leveling.
  161.  
  162.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  163.     # - Victory Messages -
  164.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  165.     # In the Victory Aftermath, actors can say unique things. This is the pool
  166.     # of quotes used for actors without any custom victory quotes. Note that
  167.     # actors with custom quotes will take priority over classes with custom
  168.     # quotes, which will take priority over these default quotes. Use \n for
  169.     # a line break in the quotes.
  170.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  171.     HEADER_TEXT = "\e>\eC[6]%s\eC[0]\e<\n"  # Always at start of messages.
  172.     FOOTER_TEXT = ""                        # Always at end of messages.
  173.  
  174.     # Win Quotes are what the actors say when a battle is won.
  175.     VICTORY_QUOTES ={
  176.     # :type   => Quotes
  177.       #------------------------------------------------------------------------
  178.       :win    => [ # Occurs as initial victory quote.
  179.                    '"We won! What an exciting fight!"',
  180.                    '"I didn\'t even break a sweat."',
  181.                    '"That wasn\'t so tough."',
  182.                    '"Let\'s fight something harder!"',
  183.                     '"请多指教。"',
  184.                  ],# Do not remove this.
  185.       #------------------------------------------------------------------------
  186.       :level  => [ # Occurs as initial victory quote.
  187.                    '"Yes! Level up!"',
  188.                    '"I\'ve gotten stronger!"',
  189.                    '"Try to keep up with me!"',
  190.                    '"I\'ve grown again!"',
  191.                     '"变强的感觉,不错。"',
  192.                  ],# Do not remove this.
  193.       #------------------------------------------------------------------------
  194.       :drops  => [ # Occurs as initial victory quote.
  195.                    '"I\'ll be taking these."',
  196.                    '"To the victor goes the spoils."',
  197.                    '"The enemies dropped something!"',
  198.                    '"Hey, what\'s this?"',
  199.                     '"没掉什么好东西。"',
  200.                  ],# Do not remove this.
  201.       #------------------------------------------------------------------------
  202.     } # Do not remove this.
  203.  
  204.   end # VICTORY_AFTERMATH
  205. end # YEA
  206.  
  207. #==============================================================================
  208. # ▼ Editting anything past this point may potentially result in causing
  209. # computer damage, incontinence, explosion of user's head, coma, death, and/or
  210. # halitosis so edit at your own risk.
  211. #==============================================================================
  212.  
  213. module YEA
  214.   module REGEXP
  215.   module BASEITEM
  216.  
  217.     NEW_QUOTE = /\[(?:NEW_QUOTE|new quote)\]/i
  218.  
  219.     WIN_QUOTE_ON    = /<(?:WIN_QUOTES|win quote|win quotes)>/i
  220.     WIN_QUOTE_OFF   = /<\/(?:WIN_QUOTES|win quote|win quotes)>/i
  221.     LEVEL_QUOTE_ON  = /<(?:LEVEL_QUOTES|level quote|level quotes)>/i
  222.     LEVEL_QUOTE_OFF = /<\/(?:LEVEL_QUOTES|level quote|level quotes)>/i
  223.     DROPS_QUOTE_ON  = /<(?:DROPS_QUOTES|drops quote|drops quotes)>/i
  224.     DROPS_QUOTE_OFF = /<\/(?:DROPS_QUOTES|drops quote|drops quotes)>/i
  225.  
  226.   end # BASEITEM
  227.   end # REGEXP
  228. end # YEA
  229.  
  230. #==============================================================================
  231. # ■ Switch
  232. #==============================================================================
  233.  
  234. module Switch
  235.  
  236.   #--------------------------------------------------------------------------
  237.   # self.skip_aftermath
  238.   #--------------------------------------------------------------------------
  239.   def self.skip_aftermath
  240.     return false if YEA::VICTORY_AFTERMATH::SKIP_AFTERMATH_SWITCH <= 0
  241.     return $game_switches[YEA::VICTORY_AFTERMATH::SKIP_AFTERMATH_SWITCH]
  242.   end
  243.  
  244.   #--------------------------------------------------------------------------
  245.   # self.skip_aftermath_music
  246.   #--------------------------------------------------------------------------
  247.   def self.skip_aftermath_music
  248.     return false if YEA::VICTORY_AFTERMATH::SKIP_MUSIC_SWITCH <=0
  249.     return $game_switches[YEA::VICTORY_AFTERMATH::SKIP_MUSIC_SWITCH]
  250.   end
  251.  
  252. end # Switch
  253.  
  254. #==============================================================================
  255. # ■ Numeric
  256. #==============================================================================
  257.  
  258. class Numeric
  259.  
  260.   #--------------------------------------------------------------------------
  261.   # new method: group_digits
  262.   #--------------------------------------------------------------------------
  263.   unless $imported["YEA-CoreEngine"]
  264.   def group; return self.to_s; end
  265.   end # $imported["YEA-CoreEngine"]
  266.  
  267. end # Numeric
  268.  
  269. #==============================================================================
  270. # ■ DataManager
  271. #==============================================================================
  272.  
  273. module DataManager
  274.  
  275.   #--------------------------------------------------------------------------
  276.   # alias method: load_database
  277.   #--------------------------------------------------------------------------
  278.   class <<self; alias load_database_va load_database; end
  279.   def self.load_database
  280.     load_database_va
  281.     load_notetags_va
  282.   end
  283.  
  284.   #--------------------------------------------------------------------------
  285.   # new method: load_notetags_va
  286.   #--------------------------------------------------------------------------
  287.   def self.load_notetags_va
  288.     groups = [$data_actors, $data_classes]
  289.     for group in groups
  290.       for obj in group
  291.         next if obj.nil?
  292.         obj.load_notetags_va
  293.       end
  294.     end
  295.   end
  296.   
  297. end # DataManager
  298.  
  299. #==============================================================================
  300. # ■ RPG::BaseItem
  301. #==============================================================================
  302.  
  303. class RPG::BaseItem
  304.  
  305.   #--------------------------------------------------------------------------
  306.   # public instance variables
  307.   #--------------------------------------------------------------------------
  308.   attr_accessor :win_quotes
  309.   attr_accessor :level_quotes
  310.   attr_accessor :drops_quotes
  311.  
  312.   #--------------------------------------------------------------------------
  313.   # common cache: load_notetags_va
  314.   #--------------------------------------------------------------------------
  315.   def load_notetags_va
  316.     @win_quotes = [""]
  317.     @level_quotes = [""]
  318.     @drops_quotes = [""]
  319.     @victory_quote_type = nil
  320.     #---
  321.     self.note.split(/[\r\n]+/).each { |line|
  322.       case line
  323.       #---
  324.       when YEA::REGEXP::BASEITEM::WIN_QUOTE_ON
  325.         @victory_quote_type = :win_quote
  326.       when YEA::REGEXP::BASEITEM::WIN_QUOTE_OFF
  327.         @victory_quote_type = nil
  328.       when YEA::REGEXP::BASEITEM::LEVEL_QUOTE_ON
  329.         @victory_quote_type = :level_quote
  330.       when YEA::REGEXP::BASEITEM::LEVEL_QUOTE_OFF
  331.         @victory_quote_type = nil
  332.       when YEA::REGEXP::BASEITEM::DROPS_QUOTE_ON
  333.         @victory_quote_type = :drops_quote
  334.       when YEA::REGEXP::BASEITEM::DROPS_QUOTE_OFF
  335.         @victory_quote_type = nil
  336.       #---
  337.       when YEA::REGEXP::BASEITEM::NEW_QUOTE
  338.         case @victory_quote_type
  339.         when nil; next
  340.         when :win_quote;   @win_quotes.push("")
  341.         when :level_quote; @level_quotes.push("")
  342.         when :drops_quote; @drops_quotes.push("")
  343.         end
  344.       #---
  345.       else
  346.         case @victory_quote_type
  347.         when nil; next
  348.         when :win_quote;   @win_quotes[@win_quotes.size-1] += line.to_s
  349.         when :level_quote; @level_quotes[@level_quotes.size-1] += line.to_s
  350.         when :drops_quote; @drops_quotes[@drops_quotes.size-1] += line.to_s
  351.         end
  352.       end
  353.     } # self.note.split
  354.     #---
  355.     return unless self.is_a?(RPG::Class)
  356.     quotes = YEA::VICTORY_AFTERMATH::VICTORY_QUOTES
  357.     @win_quotes = quotes[:win].clone if @win_quotes == [""]
  358.     @level_quotes = quotes[:level].clone if @level_quotes == [""]
  359.     @drops_quotes = quotes[:drops].clone if @drops_quotes == [""]
  360.   end
  361.  
  362. end # RPG::BaseItem
  363.  
  364. #==============================================================================
  365. # ■ BattleManager
  366. #==============================================================================
  367.  
  368. module BattleManager
  369.  
  370.   #--------------------------------------------------------------------------
  371.   # overwrite method: self.process_victory
  372.   #--------------------------------------------------------------------------
  373.   def self.process_victory
  374.     if $imported["YEA-CommandAutobattle"]
  375.       SceneManager.scene.close_disable_autobattle_window
  376.     end
  377.     return skip_aftermath if Switch.skip_aftermath
  378.     play_battle_end_me
  379.     gain_jp if $imported["YEA-JPManager"]
  380.     display_exp
  381.     gain_exp
  382.     gain_gold
  383.     gain_drop_items
  384.     close_windows
  385.     SceneManager.return
  386.     replay_bgm_and_bgs
  387.     battle_end(0)
  388.     return true
  389.   end
  390.  
  391.   #--------------------------------------------------------------------------
  392.   # new method: self.skip_aftermath
  393.   #--------------------------------------------------------------------------
  394.   def self.skip_aftermath
  395.     $game_party.all_members.each do |actor|
  396.       actor.gain_exp($game_troop.exp_total)
  397.     end
  398.     $game_party.gain_gold($game_troop.gold_total)
  399.     $game_troop.make_drop_items.each do |item|
  400.       $game_party.gain_item(item, 1)
  401.     end
  402.     close_windows
  403.     SceneManager.return
  404.     replay_bgm_and_bgs
  405.     battle_end(0)
  406.   end
  407.  
  408.   #--------------------------------------------------------------------------
  409.   # overwrite method: self.play_battle_end_me
  410.   #--------------------------------------------------------------------------
  411.   def self.play_battle_end_me
  412.     return if Switch.skip_aftermath_music
  413.     $game_system.battle_end_me.play
  414.     YEA::VICTORY_AFTERMATH::VICTORY_BGM.play
  415.   end
  416.  
  417.   #--------------------------------------------------------------------------
  418.   # new method: self.set_victory_text
  419.   #--------------------------------------------------------------------------
  420.   def self.set_victory_text(actor, type)
  421.     text = "" + sprintf(YEA::VICTORY_AFTERMATH::HEADER_TEXT, actor.name)
  422.     text += actor.victory_quotes(type)[rand(actor.victory_quotes(type).size)]
  423.     text += YEA::VICTORY_AFTERMATH::FOOTER_TEXT
  424.     $game_message.face_name = actor.face_name
  425.     $game_message.face_index = actor.face_index
  426.     $game_message.add(text)
  427.     wait_for_message
  428.   end
  429.  
  430.   #--------------------------------------------------------------------------
  431.   # overwrite method: self.display_exp
  432.   #--------------------------------------------------------------------------
  433.   def self.display_exp
  434.     SceneManager.scene.show_victory_display_exp
  435.     actor = $game_party.random_target
  436.     @victory_actor = actor
  437.     set_victory_text(@victory_actor, :win)
  438.   end
  439.  
  440.   #--------------------------------------------------------------------------
  441.   # overwrite method: self.gain_exp
  442.   #--------------------------------------------------------------------------
  443.   def self.gain_exp
  444.     $game_party.all_members.each do |actor|
  445.       temp_actor = Marshal.load(Marshal.dump(actor))
  446.       actor.gain_exp($game_troop.exp_total)
  447.       next if actor.level == temp_actor.level
  448.       SceneManager.scene.show_victory_level_up(actor, temp_actor)
  449.       set_victory_text(actor, :level)
  450.       wait_for_message
  451.     end
  452.   end
  453.  
  454.   #--------------------------------------------------------------------------
  455.   # overwrite method: self.gain_gold
  456.   #--------------------------------------------------------------------------
  457.   def self.gain_gold
  458.     $game_party.gain_gold($game_troop.gold_total)
  459.   end
  460.  
  461.   #--------------------------------------------------------------------------
  462.   # overwrite method: self.gain_drop_items
  463.   #--------------------------------------------------------------------------
  464.   def self.gain_drop_items
  465.     drops = []
  466.     $game_troop.make_drop_items.each do |item|
  467.       $game_party.gain_item(item, 1)
  468.       drops.push(item)
  469.     end
  470.     SceneManager.scene.show_victory_spoils($game_troop.gold_total, drops)
  471.     set_victory_text(@victory_actor, :drops)
  472.     wait_for_message
  473.   end
  474.  
  475.   #--------------------------------------------------------------------------
  476.   # new method: self.close_windows
  477.   #--------------------------------------------------------------------------
  478.   def self.close_windows
  479.     SceneManager.scene.close_victory_windows
  480.   end
  481.  
  482.   #--------------------------------------------------------------------------
  483.   # alias method: load_database
  484.   #--------------------------------------------------------------------------
  485.   class <<self; alias battle_end_va battle_end; end
  486.   def self.battle_end(result)
  487.     battle_end_va(result)
  488.     return if result == 2
  489.     return if YEA::VICTORY_AFTERMATH::AFTERMATH_COMMON_EVENT <= 0
  490.     event_id = YEA::VICTORY_AFTERMATH::AFTERMATH_COMMON_EVENT
  491.     $game_temp.reserve_common_event(event_id)
  492.   end
  493.   
  494. end # BattleManager
  495.  
  496. #==============================================================================
  497. # ■ Game_Actor
  498. #==============================================================================
  499.  
  500. class Game_Actor < Game_Battler
  501.  
  502.   #--------------------------------------------------------------------------
  503.   # overwrite method: gain_exp
  504.   #--------------------------------------------------------------------------
  505.   def gain_exp(exp)
  506.     enabled = !SceneManager.scene_is?(Scene_Battle)
  507.     change_exp(self.exp + (exp * final_exp_rate).to_i, enabled)
  508.   end
  509.  
  510.   #--------------------------------------------------------------------------
  511.   # new method: victory_quotes
  512.   #--------------------------------------------------------------------------
  513.   def victory_quotes(type)
  514.     case type
  515.     when :win
  516.       return self.actor.win_quotes if self.actor.win_quotes != [""]
  517.       return self.class.win_quotes
  518.     when :level
  519.       return self.actor.level_quotes if self.actor.level_quotes != [""]
  520.       return self.class.level_quotes
  521.     when :drops
  522.       return self.actor.drops_quotes if self.actor.drops_quotes != [""]
  523.       return self.class.drops_quotes
  524.     else
  525.       return ["NOTEXT"]
  526.     end
  527.   end
  528.   
  529. end # Game_Actor
  530.  
  531. #==============================================================================
  532. # ■ Window_VictoryTitle
  533. #==============================================================================
  534.  
  535. class Window_VictoryTitle < Window_Base
  536.  
  537.   #--------------------------------------------------------------------------
  538.   # initialize
  539.   #--------------------------------------------------------------------------
  540.   def initialize
  541.     super(0, 0, Graphics.width, fitting_height(1))
  542.     self.z = 200
  543.     self.openness = 0
  544.   end
  545.  
  546.   #--------------------------------------------------------------------------
  547.   # refresh
  548.   #--------------------------------------------------------------------------
  549.   def refresh(message = "")
  550.     contents.clear
  551.     draw_text(0, 0, contents.width, line_height, message, 1)
  552.   end
  553.  
  554. end # Window_VictoryTitle
  555.  
  556. #==============================================================================
  557. # ■ Window_VictoryEXP_Back
  558. #==============================================================================
  559.  
  560. class Window_VictoryEXP_Back < Window_Selectable
  561.  
  562.   #--------------------------------------------------------------------------
  563.   # initialize
  564.   #--------------------------------------------------------------------------
  565.   def initialize
  566.     super(0, fitting_height(1), Graphics.width, window_height)
  567.     self.z = 200
  568.     self.openness = 0
  569.   end
  570.  
  571.   #--------------------------------------------------------------------------
  572.   # window_height
  573.   #--------------------------------------------------------------------------
  574.   def window_height
  575.     return Graphics.height - fitting_height(4) - fitting_height(1)
  576.   end
  577.  
  578.   #--------------------------------------------------------------------------
  579.   # col_max
  580.   #--------------------------------------------------------------------------
  581.   def col_max; return item_max; end
  582.  
  583.   #--------------------------------------------------------------------------
  584.   # spacing
  585.   #--------------------------------------------------------------------------
  586.   def spacing; return 8; end
  587.  
  588.   #--------------------------------------------------------------------------
  589.   # item_max
  590.   #--------------------------------------------------------------------------
  591.   def item_max; return $game_party.battle_members.size; end
  592.  
  593.   #--------------------------------------------------------------------------
  594.   # open
  595.   #--------------------------------------------------------------------------
  596.   def open
  597.     @exp_total = $game_troop.exp_total
  598.     super
  599.   end
  600.  
  601.   #--------------------------------------------------------------------------
  602.   # item_rect
  603.   #--------------------------------------------------------------------------
  604.   def item_rect(index)
  605.     rect = Rect.new
  606.     rect.width = item_width
  607.     rect.height = contents.height
  608.     rect.x = index % col_max * (item_width + spacing)
  609.     rect.y = index / col_max * item_height
  610.     return rect
  611.   end
  612.  
  613.   #--------------------------------------------------------------------------
  614.   # draw_item
  615.   #--------------------------------------------------------------------------
  616.   def draw_item(index)
  617.     actor = $game_party.battle_members[index]
  618.     return if actor.nil?
  619.     rect = item_rect(index)
  620.     reset_font_settings
  621.     draw_actor_name(actor, rect)
  622.     draw_exp_gain(actor, rect)
  623.     draw_jp_gain(actor, rect)
  624.     draw_actor_face(actor, rect)
  625.   end
  626.  
  627.   #--------------------------------------------------------------------------
  628.   # draw_actor_name
  629.   #--------------------------------------------------------------------------
  630.   def draw_actor_name(actor, rect)
  631.     name = actor.name
  632.     draw_text(rect.x, rect.y+line_height, rect.width, line_height, name, 1)
  633.   end
  634.  
  635.   #--------------------------------------------------------------------------
  636.   # draw_actor_face
  637.   #--------------------------------------------------------------------------
  638.   def draw_actor_face(actor, rect)
  639.     face_name = actor.face_name
  640.     face_index = actor.face_index
  641.     bitmap = Cache.face(face_name)
  642.     rw = [rect.width, 96].min
  643.     face_rect = Rect.new(face_index % 4 * 96, face_index / 4 * 96, rw, 96)
  644.     rx = (rect.width - rw) / 2 + rect.x
  645.     contents.blt(rx, rect.y + line_height * 2, bitmap, face_rect, 255)
  646.   end
  647.  
  648.   #--------------------------------------------------------------------------
  649.   # draw_exp_gain
  650.   #--------------------------------------------------------------------------
  651.   def draw_exp_gain(actor, rect)
  652.     dw = rect.width - (rect.width - [rect.width, 96].min) / 2
  653.     dy = rect.y + line_height * 3 + 96
  654.     fmt = YEA::VICTORY_AFTERMATH::VICTORY_EXP
  655.     text = sprintf(fmt, actor_exp_gain(actor).group)
  656.     contents.font.size = YEA::VICTORY_AFTERMATH::FONTSIZE_EXP
  657.     change_color(power_up_color)
  658.     draw_text(rect.x, dy, dw, line_height, text, 2)
  659.   end
  660.  
  661.   #--------------------------------------------------------------------------
  662.   # actor_exp_gain
  663.   #--------------------------------------------------------------------------
  664.   def actor_exp_gain(actor)
  665.     n = @exp_total * actor.final_exp_rate
  666.     return n.to_i
  667.   end
  668.  
  669.   #--------------------------------------------------------------------------
  670.   # draw_jp_gain
  671.   #--------------------------------------------------------------------------
  672.   def draw_jp_gain(actor, rect)
  673.     return unless $imported["YEA-JPManager"]
  674.     dw = rect.width - (rect.width - [rect.width, 96].min) / 2
  675.     dy = rect.y + line_height * 4 + 96
  676.     fmt = YEA::JP::VICTORY_AFTERMATH
  677.     text = sprintf(fmt, actor_jp_gain(actor).group, Vocab::jp)
  678.     contents.font.size = YEA::VICTORY_AFTERMATH::FONTSIZE_EXP
  679.     change_color(power_up_color)
  680.     draw_text(rect.x, dy, dw, line_height, text, 2)
  681.   end
  682.  
  683.   #--------------------------------------------------------------------------
  684.   # actor_jp_gain
  685.   #--------------------------------------------------------------------------
  686.   def actor_jp_gain(actor)
  687.     n = actor.battle_jp_earned
  688.     if actor.exp + actor_exp_gain(actor) > actor.exp_for_level(actor.level + 1)
  689.       n += YEA::JP::LEVEL_UP unless actor.max_level?
  690.     end
  691.     return n
  692.   end
  693.   
  694. end # Window_VictoryEXP_Back
  695.  
  696. #==============================================================================
  697. # ■ Window_VictoryEXP_Front
  698. #==============================================================================
  699.  
  700. class Window_VictoryEXP_Front < Window_VictoryEXP_Back
  701.  
  702.   #--------------------------------------------------------------------------
  703.   # initialize
  704.   #--------------------------------------------------------------------------
  705.   def initialize
  706.     super
  707.     self.back_opacity = 0
  708.     @ticks = 0
  709.     @counter = 30
  710.     contents.font.size = YEA::VICTORY_AFTERMATH::FONTSIZE_EXP
  711.   end
  712.  
  713.   #--------------------------------------------------------------------------
  714.   # update
  715.   #--------------------------------------------------------------------------
  716.   def update
  717.     super
  718.     update_tick
  719.   end
  720.  
  721.   #--------------------------------------------------------------------------
  722.   # update_tick
  723.   #--------------------------------------------------------------------------
  724.   def update_tick
  725.     return unless self.openness >= 255
  726.     return unless self.visible
  727.     return if complete_ticks?
  728.     @counter -= 1
  729.     return unless @counter <= 0
  730.     return if @ticks >= YEA::VICTORY_AFTERMATH::EXP_TICKS
  731.     YEA::VICTORY_AFTERMATH::VICTORY_TICK.play
  732.     @counter = 4
  733.     @ticks += 1
  734.     refresh
  735.   end
  736.  
  737.   #--------------------------------------------------------------------------
  738.   # complete_ticks?
  739.   #--------------------------------------------------------------------------
  740.   def complete_ticks?
  741.     for actor in $game_party.battle_members
  742.       total_ticks = YEA::VICTORY_AFTERMATH::EXP_TICKS
  743.       bonus_exp = actor_exp_gain(actor) * @ticks / total_ticks
  744.       now_exp = actor.exp - actor.current_level_exp + bonus_exp
  745.       next_exp = actor.next_level_exp - actor.current_level_exp
  746.       rate = now_exp * 1.0 / next_exp
  747.       return false if rate < 1.0
  748.     end
  749.     return true
  750.   end
  751.  
  752.   #--------------------------------------------------------------------------
  753.   # draw_item
  754.   #--------------------------------------------------------------------------
  755.   def draw_item(index)
  756.     actor = $game_party.battle_members[index]
  757.     return if actor.nil?
  758.     rect = item_rect(index)
  759.     draw_actor_exp(actor, rect)
  760.   end
  761.  
  762.   #--------------------------------------------------------------------------
  763.   # exp_gauge1
  764.   #--------------------------------------------------------------------------
  765.   def exp_gauge1; return text_color(YEA::VICTORY_AFTERMATH::EXP_GAUGE1); end
  766.  
  767.   #--------------------------------------------------------------------------
  768.   # exp_gauge2
  769.   #--------------------------------------------------------------------------
  770.   def exp_gauge2; return text_color(YEA::VICTORY_AFTERMATH::EXP_GAUGE2); end
  771.  
  772.   #--------------------------------------------------------------------------
  773.   # lvl_gauge1
  774.   #--------------------------------------------------------------------------
  775.   def lvl_gauge1; return text_color(YEA::VICTORY_AFTERMATH::LEVEL_GAUGE1); end
  776.  
  777.   #--------------------------------------------------------------------------
  778.   # lvl_gauge2
  779.   #--------------------------------------------------------------------------
  780.   def lvl_gauge2; return text_color(YEA::VICTORY_AFTERMATH::LEVEL_GAUGE2); end
  781.  
  782.   #--------------------------------------------------------------------------
  783.   # draw_actor_exp
  784.   #--------------------------------------------------------------------------
  785.   def draw_actor_exp(actor, rect)
  786.     if actor.max_level?
  787.       draw_exp_gauge(actor, rect, 1.0)
  788.       return
  789.     end
  790.     total_ticks = YEA::VICTORY_AFTERMATH::EXP_TICKS
  791.     bonus_exp = actor_exp_gain(actor) * @ticks / total_ticks
  792.     now_exp = actor.exp - actor.current_level_exp + bonus_exp
  793.     next_exp = actor.next_level_exp - actor.current_level_exp
  794.     rate = now_exp * 1.0 / next_exp
  795.     draw_exp_gauge(actor, rect, rate)
  796.   end
  797.  
  798.   #--------------------------------------------------------------------------
  799.   # draw_exp_gauge
  800.   #--------------------------------------------------------------------------
  801.   def draw_exp_gauge(actor, rect, rate)
  802.     rate = [[rate, 1.0].min, 0.0].max
  803.     dx = (rect.width - [rect.width, 96].min) / 2 + rect.x
  804.     dy = rect.y + line_height * 2 + 96
  805.     dw = [rect.width, 96].min
  806.     colour1 = rate >= 1.0 ? lvl_gauge1 : exp_gauge1
  807.     colour2 = rate >= 1.0 ? lvl_gauge2 : exp_gauge2
  808.     draw_gauge(dx, dy, dw, rate, colour1, colour2)
  809.     fmt = YEA::VICTORY_AFTERMATH::EXP_PERCENT
  810.     text = sprintf(fmt, [rate * 100, 100.00].min)
  811.     if [rate * 100, 100.00].min == 100.00
  812.       text = YEA::VICTORY_AFTERMATH::LEVELUP_TEXT
  813.       text = YEA::VICTORY_AFTERMATH::MAX_LVL_TEXT if actor.max_level?
  814.     end
  815.     draw_text(dx, dy, dw, line_height, text, 1)
  816.   end
  817.   
  818. end # Window_VictoryEXP_Front
  819.  
  820. #==============================================================================
  821. # ■ Window_VictoryLevelUp
  822. #==============================================================================
  823.  
  824. class Window_VictoryLevelUp < Window_Base
  825.  
  826.   #--------------------------------------------------------------------------
  827.   # initialize
  828.   #--------------------------------------------------------------------------
  829.   def initialize
  830.     super(0, fitting_height(1), Graphics.width, window_height)
  831.     self.z = 200
  832.     hide
  833.   end
  834.  
  835.   #--------------------------------------------------------------------------
  836.   # window_height
  837.   #--------------------------------------------------------------------------
  838.   def window_height
  839.     return Graphics.height - fitting_height(4) - fitting_height(1)
  840.   end
  841.  
  842.   #--------------------------------------------------------------------------
  843.   # refresh
  844.   #--------------------------------------------------------------------------
  845.   def refresh(actor, temp_actor)
  846.     contents.clear
  847.     reset_font_settings
  848.     YEA::VICTORY_AFTERMATH::LEVEL_SOUND.play
  849.     draw_actor_changes(actor, temp_actor)
  850.   end
  851.  
  852.   #--------------------------------------------------------------------------
  853.   # draw_actor_changes
  854.   #--------------------------------------------------------------------------
  855.   def draw_actor_changes(actor, temp_actor)
  856.     dx = contents.width / 16
  857.     draw_actor_image(actor, temp_actor, dx)
  858.     draw_param_names(actor, dx)
  859.     draw_former_stats(temp_actor)
  860.     draw_arrows
  861.     draw_newer_stats(actor, temp_actor)
  862.     draw_new_skills(actor, temp_actor)
  863.   end
  864.  
  865.   #--------------------------------------------------------------------------
  866.   # draw_actor_image
  867.   #--------------------------------------------------------------------------
  868.   def draw_actor_image(actor, temp_actor, dx)
  869.     draw_text(dx, line_height, 96, line_height, actor.name, 1)
  870.     draw_actor_face(actor, dx, line_height * 2)
  871.     exp = actor.exp - temp_actor.exp
  872.     text = sprintf(YEA::VICTORY_AFTERMATH::VICTORY_EXP, exp.group)
  873.     change_color(power_up_color)
  874.     contents.font.size = YEA::VICTORY_AFTERMATH::FONTSIZE_EXP
  875.     draw_text(0, line_height * 2 + 96, dx + 96, line_height, text, 2)
  876.     reset_font_settings
  877.   end
  878.  
  879.   #--------------------------------------------------------------------------
  880.   # draw_param_names
  881.   #--------------------------------------------------------------------------
  882.   def draw_param_names(actor, dx)
  883.     dx += 108
  884.     change_color(system_color)
  885.     text = Vocab.level
  886.     draw_text(dx, 0, contents.width - dx, line_height, text)
  887.     dy = 0
  888.     for i in 0...8
  889.       dy += line_height
  890.       text = Vocab.param(i)
  891.       draw_text(dx, dy, contents.width - dx, line_height, text)
  892.     end
  893.   end
  894.  
  895.   #--------------------------------------------------------------------------
  896.   # draw_former_stats
  897.   #--------------------------------------------------------------------------
  898.   def draw_former_stats(actor)
  899.     dw = contents.width / 2 - 12
  900.     dy = 0
  901.     change_color(normal_color)
  902.     draw_text(0, dy, dw, line_height, actor.level.group, 2)
  903.     for i in 0...8
  904.       dy += line_height
  905.       draw_text(0, dy, dw, line_height, actor.param(i).group, 2)
  906.     end
  907.   end
  908.  
  909.   #--------------------------------------------------------------------------
  910.   # draw_arrows
  911.   #--------------------------------------------------------------------------
  912.   def draw_arrows
  913.     dx = contents.width / 2 - 12
  914.     dy = 0
  915.     change_color(system_color)
  916.     for i in 0..8
  917.       draw_text(dx, dy, 24, line_height, "→", 1)
  918.       dy += line_height
  919.     end
  920.   end
  921.  
  922.   #--------------------------------------------------------------------------
  923.   # draw_newer_stats
  924.   #--------------------------------------------------------------------------
  925.   def draw_newer_stats(actor, temp_actor)
  926.     dx = contents.width / 2 + 12
  927.     dw = contents.width - dx
  928.     dy = 0
  929.     change_color(param_change_color(actor.level - temp_actor.level))
  930.     draw_text(dx, dy, dw, line_height, actor.level.group, 0)
  931.     for i in 0...8
  932.       dy += line_height
  933.       change_color(param_change_color(actor.param(i) - temp_actor.param(i)))
  934.       draw_text(dx, dy, dw, line_height, actor.param(i).group, 0)
  935.     end
  936.   end
  937.  
  938.   #--------------------------------------------------------------------------
  939.   # draw_new_skills
  940.   #--------------------------------------------------------------------------
  941.   def draw_new_skills(actor, temp_actor)
  942.     return if temp_actor.skills.size == actor.skills.size
  943.     dw = 172 + 24
  944.     dx = contents.width - dw
  945.     change_color(system_color)
  946.     text = YEA::VICTORY_AFTERMATH::SKILLS_TEXT
  947.     draw_text(dx, 0, dw, line_height, text, 0)
  948.   end
  949.   
  950. end # Window_VictoryLevelUp
  951.  
  952. #==============================================================================
  953. # ■ Window_VictorySkills
  954. #==============================================================================
  955.  
  956. class Window_VictorySkills < Window_Selectable
  957.  
  958.   #--------------------------------------------------------------------------
  959.   # initialize
  960.   #--------------------------------------------------------------------------
  961.   def initialize
  962.     dy = fitting_height(1) + 24
  963.     dw = 172 + 24 + 24
  964.     dh = Graphics.height - fitting_height(4) - fitting_height(1) - 24
  965.     super(Graphics.width - dw, dy, dw, dh)
  966.     self.opacity = 0
  967.     self.z = 200
  968.     hide
  969.   end
  970.  
  971.   #--------------------------------------------------------------------------
  972.   # item_max
  973.   #--------------------------------------------------------------------------
  974.   def item_max; return @data.nil? ? 0 : @data.size; end
  975.  
  976.   #--------------------------------------------------------------------------
  977.   # refresh
  978.   #--------------------------------------------------------------------------
  979.   def refresh(actor, temp_actor)
  980.     contents.clear
  981.     if actor.skills.size == temp_actor.skills.size
  982.       unselect
  983.       @data = []
  984.       create_contents
  985.       return
  986.     end
  987.     @data = actor.skills - temp_actor.skills
  988.     if @data.size > 8
  989.       select(0)
  990.       activate
  991.     else
  992.       unselect
  993.       deactivate
  994.     end
  995.     create_contents
  996.     draw_all_items
  997.   end
  998.  
  999.   #--------------------------------------------------------------------------
  1000.   # refresh
  1001.   #--------------------------------------------------------------------------
  1002.   def draw_item(index)
  1003.     rect = item_rect(index)
  1004.     skill = @data[index]
  1005.     return if skill.nil?
  1006.     rect.width -= 4
  1007.     draw_item_name(skill, rect.x, rect.y, true)
  1008.   end
  1009.  
  1010. end # Window_VictorySkills
  1011.  
  1012. #==============================================================================
  1013. # ■ Window_VictorySpoils
  1014. #==============================================================================
  1015.  
  1016. class Window_VictorySpoils < Window_ItemList
  1017.  
  1018.   #--------------------------------------------------------------------------
  1019.   # initialize
  1020.   #--------------------------------------------------------------------------
  1021.   def initialize
  1022.     super(0, fitting_height(1), Graphics.width, window_height)
  1023.     self.z = 200
  1024.     hide
  1025.   end
  1026.  
  1027.   #--------------------------------------------------------------------------
  1028.   # window_height
  1029.   #--------------------------------------------------------------------------
  1030.   def window_height
  1031.     return Graphics.height - fitting_height(4) - fitting_height(1)
  1032.   end
  1033.  
  1034.   #--------------------------------------------------------------------------
  1035.   # spacing
  1036.   #--------------------------------------------------------------------------
  1037.   def spacing; return 32; end
  1038.  
  1039.   #--------------------------------------------------------------------------
  1040.   # make
  1041.   #--------------------------------------------------------------------------
  1042.   def make(gold, drops)
  1043.     @gold = gold
  1044.     @drops = drops
  1045.     refresh
  1046.     select(0)
  1047.     activate
  1048.   end
  1049.  
  1050.   #--------------------------------------------------------------------------
  1051.   # make_item_list
  1052.   #--------------------------------------------------------------------------
  1053.   def make_item_list
  1054.     @data = [nil]
  1055.     items = {}
  1056.     weapons = {}
  1057.     armours = {}
  1058.     @goods = {}
  1059.     for item in @drops
  1060.       case item
  1061.       when RPG::Item
  1062.         items[item] = 0 if items[item].nil?
  1063.         items[item] += 1
  1064.       when RPG::Weapon
  1065.         weapons[item] = 0 if weapons[item].nil?
  1066.         weapons[item] += 1
  1067.       when RPG::Armor
  1068.         armours[item] = 0 if armours[item].nil?
  1069.         armours[item] += 1
  1070.       end
  1071.     end
  1072.     items = items.sort { |a,b| a[0].id <=> b[0].id }
  1073.     weapons = weapons.sort { |a,b| a[0].id <=> b[0].id }
  1074.     armours = armours.sort { |a,b| a[0].id <=> b[0].id }
  1075.     for key in items; @goods[key[0]] = key[1]; @data.push(key[0]); end
  1076.     for key in weapons; @goods[key[0]] = key[1]; @data.push(key[0]); end
  1077.     for key in armours; @goods[key[0]] = key[1]; @data.push(key[0]); end
  1078.   end
  1079.  
  1080.   #--------------------------------------------------------------------------
  1081.   # draw_item
  1082.   #--------------------------------------------------------------------------
  1083.   def draw_item(index)
  1084.     item = @data[index]
  1085.     rect = item_rect(index)
  1086.     reset_font_settings
  1087.     if item.nil?
  1088.       draw_gold(rect)
  1089.       return
  1090.     end
  1091.     rect.width -= 4
  1092.     draw_item_name(item, rect.x, rect.y, true, rect.width - 24)
  1093.     draw_item_number(rect, item)
  1094.   end
  1095.  
  1096.   #--------------------------------------------------------------------------
  1097.   # draw_gold
  1098.   #--------------------------------------------------------------------------
  1099.   def draw_gold(rect)
  1100.     text = Vocab.currency_unit
  1101.     draw_currency_value(@gold, text, rect.x, rect.y, rect.width)
  1102.   end
  1103.  
  1104.   #--------------------------------------------------------------------------
  1105.   # draw_item_number
  1106.   #--------------------------------------------------------------------------
  1107.   def draw_item_number(rect, item)
  1108.     number = @goods[item].group
  1109.     if $imported["YEA-AdjustLimits"]
  1110.       contents.font.size = YEA::LIMIT::ITEM_FONT
  1111.       text = sprintf(YEA::LIMIT::ITEM_PREFIX, number)
  1112.       draw_text(rect, text, 2)
  1113.     else
  1114.       draw_text(rect, sprintf(":%s", number), 2)
  1115.     end
  1116.   end
  1117.   
  1118. end # Window_VictorySpoils
  1119.  
  1120. #==============================================================================
  1121. # ■ Scene_Battle
  1122. #==============================================================================
  1123.  
  1124. class Scene_Battle < Scene_Base
  1125.  
  1126.   #--------------------------------------------------------------------------
  1127.   # alias method: create_all_windows
  1128.   #--------------------------------------------------------------------------
  1129.   alias scene_battle_create_all_windows_va create_all_windows
  1130.   def create_all_windows
  1131.     scene_battle_create_all_windows_va
  1132.     create_victory_aftermath_windows
  1133.   end
  1134.  
  1135.   #--------------------------------------------------------------------------
  1136.   # new method: create_victory_aftermath_windows
  1137.   #--------------------------------------------------------------------------
  1138.   def create_victory_aftermath_windows
  1139.     @victory_title_window = Window_VictoryTitle.new
  1140.     @victory_exp_window_back = Window_VictoryEXP_Back.new
  1141.     @victory_exp_window_front = Window_VictoryEXP_Front.new
  1142.     @victory_level_window = Window_VictoryLevelUp.new
  1143.     @victory_level_skills = Window_VictorySkills.new
  1144.     @victory_spoils_window = Window_VictorySpoils.new
  1145.   end
  1146.  
  1147.   #--------------------------------------------------------------------------
  1148.   # new method: show_victory_display_exp
  1149.   #--------------------------------------------------------------------------
  1150.   def show_victory_display_exp
  1151.     @victory_title_window.open
  1152.     name = $game_party.battle_members[0].name
  1153.     fmt = YEA::VICTORY_AFTERMATH::TOP_TEAM
  1154.     name = sprintf(fmt, name) if $game_party.battle_members.size > 1
  1155.     fmt = YEA::VICTORY_AFTERMATH::TOP_VICTORY_TEXT
  1156.     text = sprintf(fmt, name)
  1157.     @victory_title_window.refresh(text)
  1158.     #---
  1159.     @victory_exp_window_back.open
  1160.     @victory_exp_window_back.refresh
  1161.     @victory_exp_window_front.open
  1162.     @victory_exp_window_front.refresh
  1163.   end
  1164.  
  1165.   #--------------------------------------------------------------------------
  1166.   # new method: show_victory_level_up
  1167.   #--------------------------------------------------------------------------
  1168.   def show_victory_level_up(actor, temp_actor)
  1169.     @victory_exp_window_back.hide
  1170.     @victory_exp_window_front.hide
  1171.     #---
  1172.     fmt = YEA::VICTORY_AFTERMATH::TOP_LEVEL_UP
  1173.     text = sprintf(fmt, actor.name)
  1174.     @victory_title_window.refresh(text)
  1175.     #---
  1176.     @victory_level_window.show
  1177.     @victory_level_window.refresh(actor, temp_actor)
  1178.     @victory_level_skills.show
  1179.     @victory_level_skills.refresh(actor, temp_actor)
  1180.   end
  1181.  
  1182.   #--------------------------------------------------------------------------
  1183.   # new method: show_victory_spoils
  1184.   #--------------------------------------------------------------------------
  1185.   def show_victory_spoils(gold, drops)
  1186.     @victory_exp_window_back.hide
  1187.     @victory_exp_window_front.hide
  1188.     @victory_level_window.hide
  1189.     @victory_level_skills.hide
  1190.     #---
  1191.     text = YEA::VICTORY_AFTERMATH::TOP_SPOILS
  1192.     @victory_title_window.refresh(text)
  1193.     #---
  1194.     @victory_spoils_window.show
  1195.     @victory_spoils_window.make(gold, drops)
  1196.   end
  1197.  
  1198.   #--------------------------------------------------------------------------
  1199.   # new method: close_victory_windows
  1200.   #--------------------------------------------------------------------------
  1201.   def close_victory_windows
  1202.     @victory_title_window.close
  1203.     @victory_exp_window_back.close
  1204.     @victory_exp_window_front.close
  1205.     @victory_level_window.close
  1206.     @victory_level_skills.close
  1207.     @victory_spoils_window.close
  1208.     wait(16)
  1209.   end
  1210.   
  1211. end # Scene_Battle
  1212.  
  1213. #==============================================================================
  1214. #
  1215. # ▼ End of File
  1216. #
  1217. #==============================================================================

点评

不能点  发表于 2012-3-11 10:31
右上角有复制代码四个字吧  发表于 2012-3-10 23:30
这怎么粘贴  发表于 2012-3-10 19:19
回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-9-21 17:43

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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