Advertisement
KK20

Modules

Aug 15th, 2015
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 3.83 KB | None | 0 0
  1. module J
  2. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  3. # This is a module used for setting the cap for the parameters.
  4. module Resize
  5.   W = 640
  6.   H = 360
  7. end#Resize
  8. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  9. # This is a module used for setting the cap for the parameters.
  10. module ParamBoost
  11.   HP = 250
  12.   MP = 2500
  13.   PMAX = 250
  14.   XMAX = 100
  15.   SMAX = 100
  16. end#ParamBoost
  17. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  18. # This is a hash used for assigning words to icons, specifically parameters.
  19. module StatIcons
  20.   ICONS ={
  21.   # Standard Parameters
  22.   "Life"    => 3453,
  23.   "Magi"    => 3452,
  24.   "Power"   => 3448,
  25.   "Endure"  => 3451,
  26.   "Force"   => 3450,
  27.   "Resist"  => 3454,
  28.   "Speed"   => 3449,
  29.   "Luck"    => 3455,
  30.  
  31.   # xParameters
  32.   "HIT" => 3090,
  33.   "EVA" => 3099,
  34.   "CRI" => 3097,
  35.   "CEV" => 3101,
  36.   "MEV" => 3102,
  37.   "MRF" => 3110,
  38.   "CNT" => 3096,
  39.   "HRG" => 3109,
  40.   "MRG" => 3098,
  41.   "TRG" => 3108,
  42.  
  43.   # sParameters
  44.   "TGR" => 3114,
  45.   "GRD" => 3094,
  46.   "REC" => 3100,
  47.   "PHA" => 3092,
  48.   "MCR" => 3089,
  49.   "TCR" => 3088,
  50.   "PDR" => 3091,
  51.   "MDR" => 3113,
  52.   "FDR" => 3105,
  53.   "EXR" => 3111,
  54.  
  55.   }#
  56. end#StatIcons
  57. end#J
  58.  
  59. module Vocab
  60.   # Parameters
  61.   def self.sparam(sparam_id) #0-9
  62.     case sparam_id
  63.       when 0; return "TGR";# TGR  TarGet Rate
  64.       when 1; return "GRD";# GRD  GuaRD effect rate
  65.       when 2; return "REC";# REC  RECovery effect rate
  66.       when 3; return "PHA";# PHA  PHArmacology
  67.       when 4; return "MCR";# MCR  Mp Cost Rate
  68.       when 5; return "TCR";# TCR  Tp Charge Rate
  69.       when 6; return "PDR";# PDR  Physical Damage Rate
  70.       when 7; return "MDR";# MDR  Magical Damage Rate
  71.       when 8; return "FDR";# FDR  Floor Damage Rate
  72.       when 9; return "EXR";# EXR  EXperience Rate
  73.     end
  74.   end
  75.   def self.xparam(xparam_id) #0-9
  76.     case xparam_id
  77.       when 0; return "HIT";# HIT  HIT rate
  78.       when 1; return "EVA";# EVA  EVAsion rate
  79.       when 2; return "CRI";# CRI  CRItical rate
  80.       when 3; return "CEV";# CEV  Critical EVasion rate
  81.       when 4; return "MEV";# MEV  Magic EVasion rate
  82.       when 5; return "MRF";# MRF  Magic ReFlection rate
  83.       when 6; return "CNT";# CNT  CouNTer attack rate
  84.       when 7; return "HRG";# HRG  Hp ReGeneration rate
  85.       when 8; return "MRG";# MRG  Mp ReGeneration rate
  86.       when 9; return "TRG";# TRG  Tp ReGeneration rate
  87.     end
  88.   end
  89.  
  90.   def self.paramInfo(param_id)
  91.     case param_id
  92.     when 0; return "The maximum HP of the character";                 # MaxHP
  93.     when 1; return "The likelihood of being attacked by the enemy";   # TGR
  94.     when 2; return "The base accuracy of the equipped weapon";        # HIT
  95.     else
  96.       return "Default help description. Fill them in yourself"
  97.     end
  98.   end
  99.  
  100.  
  101. end#Vocab
  102. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  103. # Overwrites: def param_max (in Game_BattlerBase)
  104. #   : Allows the module to add in the new caps for player stats.
  105. class Game_BattlerBase
  106.  
  107.   def param_max(param_id)
  108.     return 999999 if param_id == 0  # MHP
  109. #    return 9999   if param_id == 1  # MMP
  110. #    return 999   #for regular parameters
  111.     return J::ParamBoost::MP if param_id == 1  # MMP
  112.     return J::ParamBoost::PMAX
  113.   end#def
  114.  
  115. end#Game_BattlerBase
  116. #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  117. # Overwrites: def param_max (in Game_Actor)
  118. #   : Allows the module to add in the new caps for player stats.
  119. class Game_Actor
  120.  
  121.   def param_max(param_id)
  122. #    return 9999 if param_id == 0  # MHP
  123.     return J::ParamBoost::HP if param_id == 0  # MHP
  124.     return super
  125.   end#def
  126.  
  127. end#Game_Actor
  128.  
  129. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  130. Graphics.resize_screen(J::Resize::W, J::Resize::H)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement