VanCoolz

[RGSS 2] No EXP Gained

May 19th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.04 KB | None | 0 0
  1. #==============================================================================
  2. # [RGSS 2] No EXP Gained
  3. # Version : 1.0
  4. # Author : LowlingLife
  5. #==============================================================================
  6. # Script ini dapat membuat aktor tidak mendapatkan EXP.
  7. #==============================================================================
  8. module NoExp
  9.   # ID dari Actor yang tidak mendapat EXP.
  10.   NO_EXP = [1, 2, 3]
  11. end
  12. #==============================================================================
  13. # EDITING BEYOND THIS LINE CAN CAUSE DAMAGE TO YOUR GAME, THEREFORE EDIT
  14. # WITH YOUR OWN RISK.
  15. #==============================================================================
  16. class Scene_Battle < Scene_Base
  17.   include NoExp
  18.   def display_level_up
  19.     exp = $game_troop.exp_total
  20.     for actor in $game_party.existing_members
  21.       unless NO_EXP.include?(actor.id)
  22.         last_level = actor.level
  23.         last_skills = actor.skills
  24.         actor.gain_exp(exp, true)
  25.       end
  26.     end
  27.     wait_for_message
  28.   end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment