ThePageMaster

Flare_Fox Stat Saver Script

Jun 24th, 2014
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 3.27 KB | None | 0 0
  1. #==================================================================================
  2. # Author: Flare_Fox
  3. # Supporting Authors: Kerbonklin (for basic idea of the script)
  4. # Title: Flare Fox Level Up Stat Saver
  5. # Creation Date: 6/24/2014
  6. # Version: 1.0.0
  7. #==================================================================================
  8. # KNOWN BUGS:
  9. # None
  10. #----------------------------------------------------------------------------------
  11. # UPDATES:
  12. # None
  13. #----------------------------------------------------------------------------------
  14. # INSTRUCTIONS:
  15. # Go to line ? , this is the line that adds the "level_up" state to the first
  16. # actor by default, change this to the actor that you are using if its actor_id
  17. # number is different.
  18. #
  19. # If you wish to add this to more than one actor in your party, just add another
  20. # line as follows: $game_actors[actor_id].add_state(state_id)
  21. #
  22. # By default, the "level_up" state, which is added to the player at level up,
  23. # is set to state_id 26. if you have the "level_up" state at a different place in
  24. # the states list, change the number at .add_state(state_id) to the state_id
  25. # desired.
  26. #
  27. # Also by default, the common event that removes and saves your actor's stats to
  28. # variables is set to 1. If the common event id is different in your common events
  29. # list, please remember to change it at line ?.
  30. #
  31. # If any errors occur, please feel free to email me at [email protected],
  32. # or pm me, Flare_Fox.
  33. #----------------------------------------------------------------------------------
  34. # TERMS AND CONDITIONS:
  35. #
  36. # This script, and its contiguous materials (i.e. common events, variables, states)
  37. # are free to use in FREE games, where the only thing I ask is to be given credit.
  38. # For COMMERCIAL games, please email me.
  39. #==================================================================================
  40.  
  41. #==================================================================================
  42. # ONLY EDIT BELOW HERE BY INSTRUCTION, OR IF YOU KNOW WHAT YOU"RE DOING!!!!!!
  43. #==================================================================================
  44.  
  45. #==================================================================================
  46. # ** Game_Actor
  47. #----------------------------------------------------------------------------------
  48. #  This class handles actors. It is used within the Game_Actors class
  49. # ($game_actors) and is also referenced from the Game_Party class ($game_party).
  50. #==================================================================================
  51.  
  52. class Game_Actor < Game_Battler
  53.     #--------------------------------------------------------------------------
  54.     # * Object Initialization
  55.     #--------------------------------------------------------------------------
  56.     alias flarefox_initialize initialize
  57.     def initialize(actor_id)
  58.         p("Stat Saver Script Initialized")
  59.         actor = flarefox_initialize(actor_id)
  60.         return actor
  61.     end
  62.     #--------------------------------------------------------------------------
  63.     # * Level Up
  64.     #--------------------------------------------------------------------------
  65.     alias flarefox_level_up level_up
  66.     def level_up
  67.         flarefox_level_up
  68.         $game_actors[1].add_state(26)
  69.         $game_temp.reserve_common_event(1)
  70.         p("Stat Saver Level Up Called")
  71.     end
  72. end
Advertisement
Add Comment
Please, Sign In to add comment