Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==================================================================================
- # Author: Flare_Fox
- # Email: [email protected]
- # Supporting Authors: Kerbonklin (for basic idea of the script)
- # Title: Flare Fox Level Up Stat Saver
- # Creation Date: 6/24/2014
- # Version: 1.0.0
- #==================================================================================
- # KNOWN BUGS:
- # None
- #----------------------------------------------------------------------------------
- # UPDATES:
- # None
- #----------------------------------------------------------------------------------
- # INSTRUCTIONS:
- # Go to line ? , this is the line that adds the "level_up" state to the first
- # actor by default, change this to the actor that you are using if its actor_id
- # number is different.
- #
- # If you wish to add this to more than one actor in your party, just add another
- # line as follows: $game_actors[actor_id].add_state(state_id)
- #
- # By default, the "level_up" state, which is added to the player at level up,
- # is set to state_id 26. if you have the "level_up" state at a different place in
- # the states list, change the number at .add_state(state_id) to the state_id
- # desired.
- #
- # Also by default, the common event that removes and saves your actor's stats to
- # variables is set to 1. If the common event id is different in your common events
- # list, please remember to change it at line ?.
- #
- # If any errors occur, please feel free to email me at [email protected],
- # or pm me, Flare_Fox.
- #----------------------------------------------------------------------------------
- # TERMS AND CONDITIONS:
- #
- # This script, and its contiguous materials (i.e. common events, variables, states)
- # are free to use in FREE games, where the only thing I ask is to be given credit.
- # For COMMERCIAL games, please email me.
- #==================================================================================
- #==================================================================================
- # ONLY EDIT BELOW HERE BY INSTRUCTION, OR IF YOU KNOW WHAT YOU"RE DOING!!!!!!
- #==================================================================================
- #==================================================================================
- # ** Game_Actor
- #----------------------------------------------------------------------------------
- # This class handles actors. It is used within the Game_Actors class
- # ($game_actors) and is also referenced from the Game_Party class ($game_party).
- #==================================================================================
- class Game_Actor < Game_Battler
- #--------------------------------------------------------------------------
- # * Object Initialization
- #--------------------------------------------------------------------------
- alias flarefox_initialize initialize
- def initialize(actor_id)
- p("Stat Saver Script Initialized")
- actor = flarefox_initialize(actor_id)
- return actor
- end
- #--------------------------------------------------------------------------
- # * Level Up
- #--------------------------------------------------------------------------
- alias flarefox_level_up level_up
- def level_up
- flarefox_level_up
- $game_actors[1].add_state(26)
- $game_temp.reserve_common_event(1)
- p("Stat Saver Level Up Called")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment