IceDragon200

NoMessage-Battle

Apr 9th, 2011
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.60 KB | None | 0 0
  1. class Scene_Battle < Scene_Base
  2.  
  3.   #--------------------------------------------------------------------------
  4.   # * Display Gained Experience and Gold
  5.   #--------------------------------------------------------------------------
  6.   def display_exp_and_gold
  7.     exp = $game_troop.exp_total
  8.     gold = $game_troop.gold_total
  9.     $game_party.gain_gold(gold)
  10.     #text = sprintf(Vocab::Victory, $game_party.name)
  11.     #$game_message.texts.push('\|' + text)
  12.     #if exp > 0
  13.     #  text = sprintf(Vocab::ObtainExp, exp)
  14.     #  $game_message.texts.push('\.' + text)
  15.     #end
  16.     #if gold > 0
  17.     #  text = sprintf(Vocab::ObtainGold, gold, Vocab::gold)
  18.     #  $game_message.texts.push('\.' + text)
  19.     #end
  20.     #wait_for_message
  21.   end
  22.   #--------------------------------------------------------------------------
  23.   # * Display Gained Drop Items
  24.   #--------------------------------------------------------------------------
  25.   def display_drop_items
  26.     drop_items = $game_troop.make_drop_items
  27.     for item in drop_items
  28.       $game_party.gain_item(item, 1)
  29.       #text = sprintf(Vocab::ObtainItem, item.name)
  30.       #$game_message.texts.push(text)
  31.     end
  32.     #wait_for_message
  33.   end
  34.   #--------------------------------------------------------------------------
  35.   # * Display Level Up
  36.   #--------------------------------------------------------------------------
  37.   def display_level_up
  38.     exp = $game_troop.exp_total
  39.     for actor in $game_party.existing_members
  40.       last_level = actor.level
  41.       last_skills = actor.skills
  42.       actor.gain_exp(exp, false)
  43.     end
  44.     #wait_for_message
  45.   end
  46.  
  47. end
Advertisement
Add Comment
Please, Sign In to add comment