Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin
- J-Param-Limit
- A parameterific story.
- Currently [1.0.0] version.
- This is a very short, very sweet little snippet that enables all base parameters
- to either have a limit lower or higher than the default of
- 999999 hp, 9999 mp, 999 bparams.
- Use the small module below to decide.
- =end
- $imported = {} if $imported.nil?
- $imported["J-Param-Limit"] = true
- #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- # This is a module used for setting the cap for the parameters.
- module J
- module ParamLimit
- HP = 250
- MP = 2500
- PMAX = 250
- end#ParamBoost
- end#module J
- #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- # Overwrites: def param_max (in Game_Actor)
- # : Allows the module to add in the new caps for player stats.
- class Game_Actor
- # \\ Redefines the method to enable custom parameter limits for all bparams.
- def param_max(param_id)
- return J::ParamLimit::HP if param_id == 0 # MHP
- return J::ParamLimit::MP if param_id == 1 # MMP
- return J::ParamLimit::PMAX
- end#def
- end#Game_Actor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement