Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin =========================================================================
- Dekita's v2.1
- ★ Perfect Stat Point Distribution System™ ★
- ================================================================================
- Script Information:
- ====================
- This script is a highly dynamic & customisable stat point distribution system,
- it not only provides you with a way to distribute stats, it actually gives you
- new stats as well, vit/str/dex and mag are now the proud parents of all other
- stats. And they are far superior...
- Set which stats increase, how much it costs, does one stat make another stat go
- down? is the luck gain for your characters going to be completely random ?
- maybe you want to continue to gain params via the param curves in the database,
- but you wish you could give your characters just that little bit more flexablity?
- NOW YOU CAN DECIDE.
- Dont want that much control? thats fine set the system to be as random as
- you like.
- It is HIGHLY advised you take a moment to look through the cusomisation options
- to see if any apply to your current project. (they also change regularly)
- THIS SCRIPT NOW REQUIRES DEKITA - CORE SCRIPT !
- ================================================================================
- FEATURES:
- ==========
- - New Parent Stats that give you COMPLETE control over ALL other stats
- - Use your new stats in skill formula's and even conditional branches
- - OVER 170 customisation options, NOT including random gain feature(another 100+)
- - Plug and Play ? YES !
- ================================================================================
- ================================================================================
- ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
- ================================================================================
- 1. You must give credit to "Dekita"
- 2. You are NOT allowed to repost this script.(or modified versions)
- 3. You are NOT allowed to convert this script.(into other game engines e.g RGSS2)
- 4. You are NOT allowed to use this script for Commercial games.
- 5. ENJOY!
- "FINE PRINT"
- By using this script you hereby agree to the above terms and conditions,
- if any violation of the above terms occurs "legal action" may be taken.
- Not understanding the above terms and conditions does NOT mean that
- they do not apply to you.
- If you wish to discuss the terms and conditions in further detail you can
- contact me at http://dekitarpg.wordpress.com/ or DekitaRPG@gmail.com
- ================================================================================
- History:
- =========
- D /M /Y
- 07/11/2o12 - Finished compatibility with CORE script.
- REMOVED attribute points, will redo in its own script.
- 20/09/2o12 - Fixed a small bug, (v1.9)
- 19/09/2o12 - HUGE "tidy up", (v1.8)
- Updated Terms and Conditions,
- Updated information throughout script,
- Added max stats for actors,
- Added more script calls,
- Added MORE customisation,
- Added NoteTag customisation options,
- Efficiency upgraded,
- 13/09/2o12 - Added More Notetags,
- 12/09/2o12 - Improved script layout and compatability with future features,
- Added Notetags for enemy's to drop Distribution/Attribute points,
- 29/08/2o12 - Added extra random-ness to the stat gains for each option,
- 24/08/2o12 - Improved Script calls,
- Changed vit/str/dex and mag from useless counters into unique params.
- 22/08/2o12 - Started "Re-Writing" script for compatibility with future add-on's,
- 21/08/2o12 - Finished.(v1.4),
- - other stuff,
- 15/08/2o12 - Added options for "Dekita - Perfect Element/Status Control"
- 14/08/2o12 - Compatability update for "Dekita - Perfect Element/Status Control"
- - Released Script.(v1.3)
- 13/08/2o12 - Added bonus level points.
- - Released Script.(v1.2)
- 12/08/2o12 - Added ability to continue using parameter curves growth.
- - Fixed bug where using "SceneManager.call(Scene_Level_Up)" gave an
- error message(if no actor had leveled).
- - Added main menu command, Added switch to show/enable menu command.
- - Removed a useless script call.(lose_pts)
- - General tidying of the script.
- 11/08/2o12 - Added script calls to increase vit,str,dex and mag counters.
- - Removed "Perfect Stat Point Control Mode"
- - Changed name of script to Perfect Stat Point Distribution System.
- - Updated script to give ALOT more control over how
- x-params/s-params increase/decrease via command options.
- - Removed formula's method for increasing x/s-params.
- 08/08/2o12 - Released Script. (v1.1)
- - Compatability update -> (Perfect Status Screen).
- 07/08/2o12 - Fixed PROPERTIES_BIGGER_NUMBERS < Customisation module.
- - Added Gain/Lose points script calls as requested by "The Attendee"
- @ http://www.rpgmakervxace.net
- - Released Script. (v1.0)
- 06/08/2o12 - Added TP cost, HP Cost and GOLD Cost formula's.
- - Improved layout again.
- 05/08/2O12 - Added visual Vit,Str,Mag,Dex counters.
- 02/08/2012 - Added Ability to convert from "PSPDS" into "PSPCS"
- - Added more customisation.
- 01/08/2o12 - Added MASS Customisation.
- - Finished Script Base.
- 31/07/2o12 - Improved layout.
- - Added customisation options for when the SPD Screen triggers.
- 30/07/2o12 - Script now displays actors JP if Yanfly's JP manager is installed.
- - Added minor customisation.
- - Improved Layout.
- 21/07/2o12 - Started script.
- ================================================================================
- Credit and Thanks to :
- =======================
- mobychan & Tsukihime - for helping me understand notetags a little better ^_^
- Adrian Meza - for showing me how to add bonus level points.
- Niclas - for showing me how to properly define add_xparam.
- De Mack - for showing me how to write a basic distribute parameters script.
- ================================================================================
- Known Bugs:
- ============
- Guardian/Summon Scripts usually override the SPD Screen process if
- "INBATTLE = true" < Customisation module
- If you encounter this problem simply set
- "ONMAP" to "true" and "INBATTLE" to "false" < Customisation module
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- If a new bug is found please contact me at
- http://dekitarpg.wordpress.com/
- ================================================================================
- INSTRUCTIONS:
- ==============
- Place this script UNDER "▼ Materials" and ABOVE "▼ Main" in your script editor.
- ================================================================================
- Script Calls:
- ==============
- Use the following script call in game (an event) to change the amount of
- points you gain each time you level up
- $pts = x
- e.g
- $pts = 7 <- this will change the points gained per level to 7
- $bonuspts = x <- this changes the bonus points gained (each level you set)
- --------------------------------------------------------------------------------
- Use the following script call to give an actor x amount of points
- gain_pts(actor_id, value)
- gain_atti(actor_id, value) < requires add-ons to spend attribute points.
- e.g
- gain_pts(1, 10) < This will give actor 1, 10 points to distribute.
- NOTE:
- value can be negative e.g
- gain_pts(1, -10) < This will remove 10 points from actor 1.
- NOTE_2: if an actor does not have the points you try to remove it wont work!
- --------------------------------------------------------------------------------
- Use the following script calls to add vit, str, dex or mag to an actor.
- inc_vit(actor_id, value)
- inc_str(actor_id, value)
- inc_dex(actor_id, value)
- inc_mag(actor_id, value)
- NOTE: I have made these script calls work the same way as if you spend a point
- in a stat(vit,str,dex and mag) e.g if you increase vit it will increase
- all params/xparams and sparams that you define under option 1 customisation.
- The same goes for str, dex and mag also.
- NOTE_2: value can NOT be negative.
- $game_actors[ACTOR_ID].reduce_vit(VALUE)
- $game_actors[ACTOR_ID].reduce_str(VALUE)
- $game_actors[ACTOR_ID].reduce_dex(VALUE)
- $game_actors[ACTOR_ID].reduce_mag(VALUE)
- Use these script calls to reduce stats
- --------------------------------------------------------------------------------
- Use the following script calls to change the maximum value of an actors stats
- by default the maximum is 999 for all options
- change_MaxVIT(actor_id, value)
- change_MaxSTR(actor_id, value)
- change_MaxDEX(actor_id, value)
- change_MaxMAG(actor_id, value)
- NOTE: same as above (value can be negative).
- --------------------------------------------------------------------------------
- Use the following script call in game (an event) to trigger the SPD Screen
- SceneManager.call(Scene_Level_Up)
- NOTE: If no actor has leveled when you call this scene it will display the first
- actor in the party. If an actor has leveled it will show the SPDS for them.
- ================================================================================
- NoteTags: (default, customisation options are below)
- ==========
- <pts gain: X> (Gains Distribution Points)
- <atti gain: X> (Gains Attribute Points)
- Place these notetags into enemy noteboxes to gain X amount of points when the
- enemy is defeated. replace X with a value of your choosing, e.g <pts gain: 99>
- --------------------------------------------------------------------------------
- <vit: X>
- <str: X>
- <dex: X>
- <mag: X>
- Place these notetags into weapon or armor noteboxes to increase actors stats by
- X amount of points when the item is equipped,
- OR
- Place these notetags into enemy noteboxes to increase the enemys stats by
- X amount of points.
- NOTE: This will increase all params/x-params and s-params that you have set
- to increase for vit,str,dex and mag options within the stat point distribution
- script. e.g if option_1_MaxHP_GAIN = 9.5 for each one point of vit you will
- gain 1 vit and 9.5 MaxHP added to your current amount.
- ================================================================================
- !!!! OTHER VERY USEFULL INFORMATION THAT YOU SHOULD MOST DEFINETLY READ !!!!
- ================================================================================
- Skill Formula's
- ===============
- YES, you can use your nice, new, shiny, metalic stats in skill formula's
- simply put vit / str / dex / mag in the formula box, heres an example
- (a.vit + a.str + a.dex + a.mag) - (b.vit + b.str + b.dex + b.mag)
- try it out and see for yourself, it may even give your game that extra unique
- feel you've been looking for ...
- ================================================================================
- Conditional Branches:
- =====================
- YES , you can use objects from this script in your conditional branches
- (the script option of course) heres a few examples,
- $game_actors[1].level_up_pts == 5
- # This checks if actor id [1] has spare level up points equal to 5
- $game_party.members[0].vit == 11
- # This checks if party memeber [0] has vit points equal to 11
- #(party member 0 is the leader)
- $game_actors[5].mag <= 5
- # This checks if actor id [5] has magic points lower than/equal to 5
- # ">=" would mean higher than/equal to
- You can use:
- vit / str / dex / mag / level_up_pts
- ================================================================================
- Import:
- ========
- =end
- $imported = {} if $imported.nil?
- $imported[:Dekita__PSPDS] = true
- module DPB ; module PSPDS
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ Command's DO NOT CHANGE OR REMOVE ANY OF THESE!
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- COMMANDS =[
- :Vitality, # < DO NOT REMOVE OR
- :Strength, # < CHANGE ANY OF THESE
- :Dexterity,# < COMMANDS
- :Magic, # < DO NOT REMOVE !
- ] # Do not remove this.
- #===============================================================================
- #
- # PSPDS
- # (Perfect Stat Point Distribution System)
- # - CUSTOMISATION BEGIN -
- #
- # I have added as much customisation as i thought was needed.
- # Probably a little too much, :o , if there is such a thing.\..\..
- #
- #===============================================================================
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ NOTETAG CUSTOMISATION !!
- #-------------------------------------------------------------------------------
- # You can change the string in the notetags to whatever you want.
- # remember to keep the same format e.g /<RENAME_HERE: (.*)>/i
- #
- # NOTE: Only change these if you have to for compatability reasons.
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # These are the notetags for enemies only (to make them drop points)
- GAIN_POINTS_NOTETAG = /<pts gain: (.*)>/i
- GAIN_ATTRIBUTE_NOTETAG = /<atti gain: (.*)>/i
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ VOCAB CUSTOMISATION !!
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # These are vocab settings for your points information.
- LVLUPPTSVOCAB = "Points" # Help info used for the name of your level up points
- Points_Icon = 123
- COST_VOCAB = "Points Cost:" # help info
- ADDSTATTEXT = "Stat Added !" # Help info for when points are added
- NOPOINTSTEXT = "No Points Left To Add !!" # Help info for when no points are remaining
- # This is how Yanfly's jp will appear in the infomation screen (if imported)
- YANFLY_JP_VOCAB = "Yanfly-JP" # <Only visable if using yanfly's Jp Manager
- # This adjusts the victory message shown for the default battle system.
- GAINED_POINTS_MESSAGE = "%s has earned %s %s!"
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ Display SPD (Stat Point Distribution) Screen
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # By default the SPD Screen will be displayed at the end of battle (if you
- # level up). Some scripts may interfere with this one e.g summoning scripts,
- # when you level after your summon kills a monster in battle, the De-Summon
- # process usually overrides this one :(
- #
- # NOTE: if your party has more than 1 member that levels at the same time
- # then i recommend having both these options = true
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- INBATTLE = false # IF "true" screen triggers at end of battle (if an actor levels up)
- ONMAP = true # IF "true" screen triggers on map screen after an actor levels up.
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ Draw Actor Graphic ?
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- DRAW_ACTOR_GRAPHIC = false
- DAG_X = 432 # x location for actor graphic
- DAG_Y = 90 # y location for actor graphic
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ Font Settings
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- #PROPFONTSIZE = 14 # For Displayed Properties
- #PARAMFONTSIZE = 20 # For Parameters in point selection window and JP if
- # Yanfly JP Manager is installed
- #FONTSIZE = 16 # For Almost Everything Else and information in PSS*
- # (PSS = Perfect Status Screen) * = If imported.
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ Points gained after each level up
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # This is where you define the amount of distribution points each character
- # gains after each level up.
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- LVUPPTS = 5 # Recommended to be under 10
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ Bonus Point Gains
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # Here you can grant bonus points on specific levels e.g reach level 10
- # gain 5 bonus spendable points as a reward .
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- BONUS_POINTS_ON_LEVELS = true # If 'true' this will grant bonus points on
- # levels listed in LEVELS.
- LEVELS = [10, 20, 30, 40, 50, 75, 100] # If BONUS_POINTS_ON_LEVELS is 'true'
- # these will be the levels that the
- # actor(s) will gain bonus points on.
- #NOTE: BONUS_POINTS_ON_LEVELS "MUST!" be "true" for this option to work.
- ONLY_GAIN_POINTS_ON_LEVELS = false # Make this option "true" if you only want
- # to gains points on the levels stated
- # in LEVELS.
- BONUSPOINTS = 10 # Define here how many bonus points your actors
- # gain on their bonus point levels.
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ General Customisation
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # Depending on your screen resolution you may need to slightly resize the
- # command column.
- COMMAND_COLUMN_EXTRA_WIDTH = 0
- WAIT_TIME = 40 # the time you wait (for the command window to re-activate)
- # after increasing a stat.(time is in frames. 60 frames = 1 second)
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ Parameter gain settings
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # These settings adjust the points gained for each point spent
- # in each command option as well as each command options name.
- # You can also put negative values for each parameter.
- #
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ Default parameter growth
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # This is where you define whether you still gain parameters via
- # the parameter curves in the database.
- # set this to true if you wish to use that method (as well as SPD method).
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- USE_DEFAULT_PARAM_GAIN = false
- ########################
- # !! VERY IMPORTANT !! #
- ########################
- # Usually Actor Ex-Parameters and Sp-Parameters deal with percentage chance
- # values. This means that their gain/reduce values represent rates.
- # What this means is:
- # 0.001 = 0.1%
- # 0.01 = 1%
- # 0.1 = 10%
- # 1.0 = 100%
- #
- # These rules still apply e.g 0.001 = 0.1%
- # HOWEVER !
- # Normally the percentage of increase/decrease is of the current value, e.g
- # if you increase a Sp-Parameter by 1.5% it would increase the total value by 1.5%
- # e.g
- # 100% would turn into 101.5%,
- # 101% turns into 103.0225%,
- # 103.0225% turns into 104.5678375%.
- # This rule DOES NOT apply when gaining Ex/Sp-Params from increasing vit/str ect
- # e.g
- # 100% turns into 101.5%,
- # 101.5% turns into 103%,
- # 103% turns into 104.5%
- #
- #-------------------------------------------------------------------------------
- # Draw Gauges ?
- Draw_Vit_Str_Dex_Mag_Gauges = true
- # Draw Icons ?
- Draw_Vit_Str_Dex_Mag_Icons = true
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # Option 1 settings (command option 1)
- #-------------------------------------
- # Adjust these to your liking. you can set it to decrease by using "-" before
- # your value. e.g OPTION_1_MaxHP_GAIN = -9.5 will reduce MHP by 9.5
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- COMMAND_NAME_1 = "Vitality" # Name of command option
- Vit_Icon = 9169
- Vit_Color_1 = Color.new(0, 90, 30, 50)
- Vit_Color_2 = Color.new(0, 60, 120)
- DEFAULT_VIT_NOTETAG = /<vit: (.*)>/i # the default notetag <vit: X>
- VIT_GAIN_VOCAB = "Increases overall Survivability" # Help info for command option 1
- DEFAULT_MAX_VIT = 999 # default max vit stat.(change by script call)
- MAX_VIT_VOCAB = "You have reached your vitality limit!" # have i really...
- OPTION_1_COST = 1 # The amount of points it costs to increase this option
- # Default = 1
- #Regular-Parameters
- OPTION_1_MaxHP_GAIN = 9.5 # Maximum HP Stat.
- OP_1_MaxHP_RAND_MIN = 0 # Random gain minimum.
- OP_1_MaxHP_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_MaxMP_GAIN = 0 # Maximum MP Stat.
- OP_1_MaxMP_RAND_MIN = 0 # Random gain minimum.
- OP_1_MaxMP_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_ATK_GAIN = 0 # Attack Stat.
- OP_1_ATK_RAND_MIN = 0 # Random gain minimum.
- OP_1_ATK_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_DEF_GAIN = 0.4 # Defence Stat.
- OP_1_DEF_RAND_MIN = 0 # Random gain minimum.
- OP_1_DEF_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_MAT_GAIN = 0 # Magic Attack Stat.
- OP_1_MAT_RAND_MIN = 0 # Random gain minimum.
- OP_1_MAT_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_MDF_GAIN = 0.4 # Magic Defence Stat.
- OP_1_MDF_RAND_MIN = 0 # Random gain minimum.
- OP_1_MDF_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_AGI_GAIN = 0 # Agility Stat.
- OP_1_AGI_RAND_MIN = 0 # Random gain minimum.
- OP_1_AGI_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_LUK_GAIN = 0 # Luck Stat.
- OP_1_LUK_RAND_MIN = 0 # Random gain minimum.
- OP_1_LUK_RAND_MAX = 0 # Random gain maximum.
- #The following are % gains, 0.01 = 1%
- #X-Parameters
- OPTION_1_HIT_GAIN = 0.00 # Hit Rate.
- OP_1_HIT_RAND_MIN = 0 # Random gain minimum.
- OP_1_HIT_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_EVA_GAIN = 0.00 # Evasion Rate.
- OP_1_EVA_RAND_MIN = 0 # Random gain minimum.
- OP_1_EVA_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_CRI_GAIN = 0.00 # Critical Hit Rate.
- OP_1_CRI_RAND_MIN = 0 # Random gain minimum.
- OP_1_CRI_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_CEV_GAIN = 0.001 # Critical Evasion Rate.
- OP_1_CEV_RAND_MIN = 0 # Random gain minimum.
- OP_1_CEV_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_MEV_GAIN = 0.00 # Magic Evasion Rate.
- OP_1_MEV_RAND_MIN = 0 # Random gain minimum.
- OP_1_MEV_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_MRF_GAIN = 0.00 # Magic Reflect Rate.
- OP_1_MRF_RAND_MIN = 0 # Random gain minimum.
- OP_1_MRF_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_CNT_GAIN = 0.00 # Counter Rate.
- OP_1_CNT_RAND_MIN = 0 # Random gain minimum.
- OP_1_CNT_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_HRG_GAIN = 0.0005 # HP Regeneration Rate.
- OP_1_HRG_RAND_MIN = 0 # Random gain minimum.
- OP_1_HRG_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_MRG_GAIN = 0.00 # MP Regeneration Rate.
- OP_1_MRG_RAND_MIN = 0 # Random gain minimum.
- OP_1_MRG_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_TRG_GAIN = 0.00 # TP Regeneration Rate.
- OP_1_TRG_RAND_MIN = 0 # Random gain minimum.
- OP_1_TRG_RAND_MAX = 0 # Random gain maximum.
- #S-Parameters 0.013 = 1.30%
- OPTION_1_TGR_GAIN = 0.013 # Target Rate. (monsters targeting you)
- OP_1_TGR_RAND_MIN = 0.0 # Random gain minimum.
- OP_1_TGR_RAND_MAX = 0.0 # Random gain maximum.
- OPTION_1_GRD_GAIN = 0.013 # Guard Effect Rate
- OP_1_GRD_RAND_MIN = 0 # Random gain minimum.
- OP_1_GRD_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_REC_GAIN = 0.00 # Recovery Effect Rate.
- OP_1_REC_RAND_MIN = 0 # Random gain minimum.
- OP_1_REC_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_PHA_GAIN = 0.00 # Pharmacology Effect Rate.
- OP_1_PHA_RAND_MIN = 0 # Random gain minimum.
- OP_1_PHA_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_MCR_GAIN = -0.00 # MP Cost Rate
- OP_1_MCR_RAND_MIN = 0 # Random gain minimum.
- OP_1_MCR_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_TCR_GAIN = -0.00 # TP Charge Rate.
- OP_1_TCR_RAND_MIN = 0 # Random gain minimum.
- OP_1_TCR_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_PDR_GAIN = -0.00025 # Physical Damage Rate.(incomming)
- OP_1_PDR_RAND_MIN = 0 # Random gain minimum.
- OP_1_PDR_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_MDR_GAIN = -0.00025 # Magical Damage Rate.(incomming)
- OP_1_MDR_RAND_MIN = 0 # Random gain minimum.
- OP_1_MDR_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_FDR_GAIN = -0.00 # Floor Damage Rate.
- OP_1_FDR_RAND_MIN = 0 # Random gain minimum.
- OP_1_FDR_RAND_MAX = 0 # Random gain maximum.
- OPTION_1_EXR_GAIN = 0 # EXP Gain Rate.
- OP_1_EXR_RAND_MIN = 0 # Random gain minimum.
- OP_1_EXR_RAND_MAX = 0 # Random gain maximum.
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # Option 2 settings (command option 2)
- #-------------------------------------
- # Adjust these to your liking. you can set it to decrease by using "-" before
- # your value. e.g OPTION_1_MaxHP_GAIN = -9.5 will reduce MHP by 9.5
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- COMMAND_NAME_2 = "Strength"
- Str_Icon = 9933
- Str_Color_1 = Color.new(135, 130, 0, 50)
- Str_Color_2 = Color.new(120, 0, 0)
- DEFAULT_STR_NOTETAG = /<str: (.*)>/i # default notetag, <str: X>
- STR_GAIN_VOCAB = "Increases overall Strength" # Help info for command option 2
- DEFAULT_MAX_STR = 999 # default max str stat.(change by script call)
- MAX_STR_VOCAB = "You have reached your strength limit!" # i think not...
- OPTION_2_COST = 1 # The amount of points it costs to increase this option
- # Default = 1
- #Regular-Parameters
- OPTION_2_MaxHP_GAIN = 0 # Maximum HP Stat.
- OP_2_MaxHP_RAND_MIN = 0 # Random gain minimum.
- OP_2_MaxHP_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_MaxMP_GAIN = 0 # Maximum MP Stat.
- OP_2_MaxMP_RAND_MIN = 0 # Random gain minimum.
- OP_2_MaxMP_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_ATK_GAIN = 1.2 # Attack Stat.
- OP_2_ATK_RAND_MIN = 0 # Random gain minimum.
- OP_2_ATK_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_DEF_GAIN = 0.6 # Defence Stat.
- OP_2_DEF_RAND_MIN = 0 # Random gain minimum.
- OP_2_DEF_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_MAT_GAIN = -0.01 # Magic Attack Stat.
- OP_2_MAT_RAND_MIN = 0 # Random gain minimum.
- OP_2_MAT_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_MDF_GAIN = -0.01 # Magic Defence Stat.
- OP_2_MDF_RAND_MIN = 0 # Random gain minimum.
- OP_2_MDF_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_AGI_GAIN = 0 # Agility Stat.
- OP_2_AGI_RAND_MIN = 0 # Random gain minimum.
- OP_2_AGI_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_LUK_GAIN = 0.1 # Luck Stat.
- OP_2_LUK_RAND_MIN = 0 # Random gain minimum.
- OP_2_LUK_RAND_MAX = 0 # Random gain maximum.
- #The following are % gains, 0.01 = 1%
- #X-Parameters
- OPTION_2_HIT_GAIN = 0.00 # Hit Rate.
- OP_2_HIT_RAND_MIN = 0 # Random gain minimum.
- OP_2_HIT_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_EVA_GAIN = 0.00 # Evasion Rate.
- OP_2_EVA_RAND_MIN = 0 # Random gain minimum.
- OP_2_EVA_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_CRI_GAIN = 0.00 # Critical Hit Rate.
- OP_2_CRI_RAND_MIN = 0 # Random gain minimum.
- OP_2_CRI_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_CEV_GAIN = 0.00 # Critical Evasion Rate.
- OP_2_CEV_RAND_MIN = 0 # Random gain minimum.
- OP_2_CEV_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_MEV_GAIN = 0.00 # Magic Evasion Rate.
- OP_2_MEV_RAND_MIN = 0 # Random gain minimum.
- OP_2_MEV_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_MRF_GAIN = 0.00 # Magic Reflect Rate.
- OP_2_MRF_RAND_MIN = 0 # Random gain minimum.
- OP_2_MRF_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_CNT_GAIN = 0.0005 # Counter Rate.
- OP_2_CNT_RAND_MIN = 0 # Random gain minimum.
- OP_2_CNT_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_HRG_GAIN = 0.00 # HP Regeneration Rate.
- OP_2_HRG_RAND_MIN = 0 # Random gain minimum.
- OP_2_HRG_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_MRG_GAIN = 0.00 # MP Regeneration Rate.
- OP_2_MRG_RAND_MIN = 0 # Random gain minimum.
- OP_2_MRG_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_TRG_GAIN = 0.00 # TP Regeneration Rate.
- OP_2_TRG_RAND_MIN = 0 # Random gain minimum.
- OP_2_TRG_RAND_MAX = 0 # Random gain maximum.
- #S-Parameters
- OPTION_2_TGR_GAIN = 0.0009 # Target Rate. (monsters targeting you)
- OP_2_TGR_RAND_MIN = 0 # Random gain minimum.
- OP_2_TGR_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_GRD_GAIN = 0.005 # Guard Effect Rate
- OP_2_GRD_RAND_MIN = 0 # Random gain minimum.
- OP_2_GRD_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_REC_GAIN = 0.00 # Recovery Effect Rate.
- OP_2_REC_RAND_MIN = 0 # Random gain minimum.
- OP_2_REC_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_PHA_GAIN = 0.00 # Pharmacology Effect Rate.
- OP_2_PHA_RAND_MIN = 0 # Random gain minimum.
- OP_2_PHA_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_MCR_GAIN = -0.00 # MP Cost Rate
- OP_2_MCR_RAND_MIN = 0 # Random gain minimum.
- OP_2_MCR_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_TCR_GAIN = -0.00 # TP Charge Rate.
- OP_2_TCR_RAND_MIN = 0 # Random gain minimum.
- OP_2_TCR_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_PDR_GAIN = -0.0020 # Physical Damage Rate.(incomming)
- OP_2_PDR_RAND_MIN = 0 # Random gain minimum.
- OP_2_PDR_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_MDR_GAIN = -0.00 # Magical Damage Rate.(incomming)
- OP_2_MDR_RAND_MIN = 0 # Random gain minimum.
- OP_2_MDR_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_FDR_GAIN = -0.00 # Floor Damage Rate.
- OP_2_FDR_RAND_MIN = 0 # Random gain minimum.
- OP_2_FDR_RAND_MAX = 0 # Random gain maximum.
- OPTION_2_EXR_GAIN = 0 # EXP Gain Rate.
- OP_2_EXR_RAND_MIN = 0 # Random gain minimum.
- OP_2_EXR_RAND_MAX = 0 # Random gain maximum.
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # Option 3 settings (command option 3)
- #-------------------------------------
- # Adjust these to your liking. you can set it to decrease by using "-" before
- # your value. e.g OPTION_1_MaxHP_GAIN = -9.5 will reduce MHP by 9.5
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- COMMAND_NAME_3 = "Dexterity"
- Dex_Icon = 8985
- Dex_Color_1 = Color.new(70, 60, 0, 50)
- Dex_Color_2 = Color.new(0, 90, 0)
- DEFAULT_DEX_NOTETAG = /<dex: (.*)>/i # default ntoetag <dex: X>
- DEX_GAIN_VOCAB = "Increases overall Dexterity" # Help info for command option 3
- DEFAULT_MAX_DEX = 999 # default max dex stat.(change by script call)
- MAX_DEX_VOCAB = "You have reached your dexterity limit!" # WTF, again ?
- OPTION_3_COST = 1 # The amount of points it costs to increase this option
- # Default = 1
- #Regular-Parameters
- OPTION_3_MaxHP_GAIN = 0 # Maximum HP Stat.
- OP_3_MaxHP_RAND_MIN = 0 # Random gain minimum.
- OP_3_MaxHP_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_MaxMP_GAIN = 0 # Maximum MP Stat.
- OP_3_MaxMP_RAND_MIN = 0 # Random gain minimum.
- OP_3_MaxMP_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_ATK_GAIN = 0 # Attack Stat.
- OP_3_ATK_RAND_MIN = 0 # Random gain minimum.
- OP_3_ATK_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_DEF_GAIN = 0 # Defence Stat.
- OP_3_DEF_RAND_MIN = 0 # Random gain minimum.
- OP_3_DEF_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_MAT_GAIN = 0 # Magic Attack Stat.
- OP_3_MAT_RAND_MIN = 0 # Random gain minimum.
- OP_3_MAT_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_MDF_GAIN = 0 # Magic Defence Stat.
- OP_3_MDF_RAND_MIN = 0 # Random gain minimum.
- OP_3_MDF_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_AGI_GAIN = 1.2 # Agility Stat.
- OP_3_AGI_RAND_MIN = 0 # Random gain minimum.
- OP_3_AGI_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_LUK_GAIN = 0.6 # Luck Stat.
- OP_3_LUK_RAND_MIN = 0 # Random gain minimum.
- OP_3_LUK_RAND_MAX = 0 # Random gain maximum.
- #The following are % gains, 0.01 = 1%
- #X-Parameters
- OPTION_3_HIT_GAIN = 0.005 # Hit Rate.
- OP_3_HIT_RAND_MIN = 0 # Random gain minimum.
- OP_3_HIT_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_EVA_GAIN = 0.0005 # Evasion Rate.
- OP_3_EVA_RAND_MIN = 0 # Random gain minimum.
- OP_3_EVA_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_CRI_GAIN = 0.001 # Critical Hit Rate.
- OP_3_CRI_RAND_MIN = 0 # Random gain minimum.
- OP_3_CRI_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_CEV_GAIN = 0.0005 # Critical Evasion Rate.
- OP_3_CEV_RAND_MIN = 0 # Random gain minimum.
- OP_3_CEV_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_MEV_GAIN = 0.00025 # Magic Evasion Rate.
- OP_3_MEV_RAND_MIN = 0 # Random gain minimum.
- OP_3_MEV_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_MRF_GAIN = 0.00 # Magic Reflect Rate.
- OP_3_MRF_RAND_MIN = 0 # Random gain minimum.
- OP_3_MRF_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_CNT_GAIN = 0.0002 # Counter Rate.
- OP_3_CNT_RAND_MIN = 0 # Random gain minimum.
- OP_3_CNT_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_HRG_GAIN = 0.00 # HP Regeneration Rate.
- OP_3_HRG_RAND_MIN = 0 # Random gain minimum.
- OP_3_HRG_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_MRG_GAIN = 0.00 # MP Regeneration Rate.
- OP_3_MRG_RAND_MIN = 0 # Random gain minimum.
- OP_3_MRG_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_TRG_GAIN = 0.0005 # TP Regeneration Rate.
- OP_3_TRG_RAND_MIN = 0 # Random gain minimum.
- OP_3_TRG_RAND_MAX = 0 # Random gain maximum.
- #S-Parameters
- OPTION_3_TGR_GAIN = 0.00 # Target Rate. (monsters targeting you)
- OP_3_TGR_RAND_MIN = 0 # Random gain minimum.
- OP_3_TGR_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_GRD_GAIN = 0.00 # Guard Effect Rate
- OP_3_GRD_RAND_MIN = 0 # Random gain minimum.
- OP_3_GRD_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_REC_GAIN = 0.00 # Recovery Effect Rate.
- OP_3_REC_RAND_MIN = 0 # Random gain minimum.
- OP_3_REC_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_PHA_GAIN = 0.00 # Pharmacology Effect Rate.
- OP_3_PHA_RAND_MIN = 0 # Random gain minimum.
- OP_3_PHA_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_MCR_GAIN = -0.00 # MP Cost Rate
- OP_3_MCR_RAND_MIN = 0 # Random gain minimum.
- OP_3_MCR_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_TCR_GAIN = -0.0025 # TP Charge Rate.
- OP_3_TCR_RAND_MIN = 0 # Random gain minimum.
- OP_3_TCR_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_PDR_GAIN = -0.00 # Physical Damage Rate.(incomming)
- OP_3_PDR_RAND_MIN = 0 # Random gain minimum.
- OP_3_PDR_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_MDR_GAIN = -0.00 # Magical Damage Rate.(incomming)
- OP_3_MDR_RAND_MIN = 0 # Random gain minimum.
- OP_3_MDR_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_FDR_GAIN = -0.00 # Floor Damage Rate.
- OP_3_FDR_RAND_MIN = 0 # Random gain minimum.
- OP_3_FDR_RAND_MAX = 0 # Random gain maximum.
- OPTION_3_EXR_GAIN = 0 # EXP Gain Rate.
- OP_3_EXR_RAND_MIN = 0 # Random gain minimum.
- OP_3_EXR_RAND_MAX = 0 # Random gain maximum.
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # Option 4 settings (command option 4)
- #-------------------------------------
- # Adjust these to your liking. you can set it to decrease by using "-" before
- # your value. e.g OPTION_1_MaxHP_GAIN = -9.5 will reduce MHP by 9.5
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- COMMAND_NAME_4 = "Magic"
- Mag_Icon = 9306
- Mag_Color_1 = Color.new(255, 0, 50, 50)
- Mag_Color_2 = Color.new(70, 60, 120)
- DEFAULT_MAG_NOTETAG = /<mag: (.*)>/i # default notetag <mag: X>
- MAG_GAIN_VOCAB = "Increases overall Magic Power" # Help info for command option 4
- DEFAULT_MAX_MAG = 999 # default max mag stat.(change by script call)
- MAX_MAG_VOCAB = "You have reached your magic limit!" # i've had enough of this shitake mushroom...
- OPTION_4_COST = 1 # The amount of points it costs to increase this option
- # Default = 1
- #Regular-Parameters
- OPTION_4_MaxHP_GAIN = 0 # Maximum HP Stat.
- OP_4_MaxHP_RAND_MIN = 0 # Random gain minimum.
- OP_4_MaxHP_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_MaxMP_GAIN = 9.5 # Maximum MP Stat.
- OP_4_MaxMP_RAND_MIN = 0 # Random gain minimum.
- OP_4_MaxMP_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_ATK_GAIN = -0.01 # Attack Stat.
- OP_4_ATK_RAND_MIN = 0 # Random gain minimum.
- OP_4_ATK_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_DEF_GAIN = -0.01 # Defence Stat.
- OP_4_DEF_RAND_MIN = 0 # Random gain minimum.
- OP_4_DEF_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_MAT_GAIN = 1.2 # Magic Attack Stat.
- OP_4_MAT_RAND_MIN = 0 # Random gain minimum.
- OP_4_MAT_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_MDF_GAIN = 0.6 # Magic Defence Stat.
- OP_4_MDF_RAND_MIN = 0 # Random gain minimum.
- OP_4_MDF_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_AGI_GAIN = 0 # Agility Stat.
- OP_4_AGI_RAND_MIN = 0 # Random gain minimum.
- OP_4_AGI_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_LUK_GAIN = 0.1 # Luck Stat.
- OP_4_LUK_RAND_MIN = 0 # Random gain minimum.
- OP_4_LUK_RAND_MAX = 0 # Random gain maximum.
- #The following are % gains, 0.01 = 1%
- #X-Parameters
- OPTION_4_HIT_GAIN = 0.00 # Hit Rate.
- OP_4_HIT_RAND_MIN = 0 # Random gain minimum.
- OP_4_HIT_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_EVA_GAIN = 0.00 # Evasion Rate.
- OP_4_EVA_RAND_MIN = 0 # Random gain minimum.
- OP_4_EVA_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_CRI_GAIN = 0.00 # Critical Hit Rate.
- OP_4_CRI_RAND_MIN = 0 # Random gain minimum.
- OP_4_CRI_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_CEV_GAIN = 0.00 # Critical Evasion Rate.
- OP_4_CEV_RAND_MIN = 0 # Random gain minimum.
- OP_4_CEV_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_MEV_GAIN = 0.001 # Magic Evasion Rate.
- OP_4_MEV_RAND_MIN = 0 # Random gain minimum.
- OP_4_MEV_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_MRF_GAIN = 0.00 # Magic Reflect Rate.
- OP_4_MRF_RAND_MIN = 0 # Random gain minimum.
- OP_4_MRF_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_CNT_GAIN = 0.00 # Counter Rate.
- OP_4_CNT_RAND_MIN = 0 # Random gain minimum.
- OP_4_CNT_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_HRG_GAIN = 0.00 # HP Regeneration Rate.
- OP_4_HRG_RAND_MIN = 0 # Random gain minimum.
- OP_4_HRG_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_MRG_GAIN = 0.0005 # MP Regeneration Rate.
- OP_4_MRG_RAND_MIN = 0 # Random gain minimum.
- OP_4_MRG_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_TRG_GAIN = 0.00 # TP Regeneration Rate.
- OP_4_TRG_RAND_MIN = 0 # Random gain minimum.
- OP_4_TRG_RAND_MAX = 0 # Random gain maximum.
- #S-Parameters
- OPTION_4_TGR_GAIN = 0.00 # Target Rate. (monsters targeting you)
- OP_4_TGR_RAND_MIN = 0 # Random gain minimum.
- OP_4_TGR_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_GRD_GAIN = 0.004 # Guard Effect Rate
- OP_4_GRD_RAND_MIN = 0 # Random gain minimum.
- OP_4_GRD_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_REC_GAIN = 0.00 # Recovery Effect Rate.
- OP_4_REC_RAND_MIN = 0 # Random gain minimum.
- OP_4_REC_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_PHA_GAIN = 0.00 # Pharmacology Effect Rate.
- OP_4_PHA_RAND_MIN = 0 # Random gain minimum.
- OP_4_PHA_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_MCR_GAIN = -0.0025 # MP Cost Rate
- OP_4_MCR_RAND_MIN = 0 # Random gain minimum.
- OP_4_MCR_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_TCR_GAIN = -0.00 # TP Charge Rate.
- OP_4_TCR_RAND_MIN = 0 # Random gain minimum.
- OP_4_TCR_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_PDR_GAIN = -0.00 # Physical Damage Rate.(incomming)
- OP_4_PDR_RAND_MIN = 0 # Random gain minimum.
- OP_4_PDR_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_MDR_GAIN = -0.0020 # Magical Damage Rate.(incomming)
- OP_4_MDR_RAND_MIN = 0 # Random gain minimum.
- OP_4_MDR_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_FDR_GAIN = -0.00 # Floor Damage Rate.
- OP_4_FDR_RAND_MIN = 0 # Random gain minimum.
- OP_4_FDR_RAND_MAX = 0 # Random gain maximum.
- OPTION_4_EXR_GAIN = 0 # EXP Gain Rate.
- OP_4_EXR_RAND_MIN = 0 # Random gain minimum.
- OP_4_EXR_RAND_MAX = 0 # Random gain maximum.
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ Properties Window Settings
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # These settings adjust the way the properties window visually appears.
- # The properties have abbreviations, but leaving them as such makes things
- # confusing (as it's sometimes hard to figure out what the abbreviations
- # mean). Change the way the appear, whether or not they appear, and what
- # order they will appear in.
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # These are the parameters that appear in column 1.
- # This column's settings are only relevant if DRAW_PARAM_GAUGES = false (above)
- PROPERTIES_PARAMCOLUMN =[
- [:mhp],
- [:mmp],
- [:mtp],# Requires Dekita TP Limits
- [:atk],
- [:def],
- [:mat],
- [:mdf],
- [:agi],
- [:luk],
- ] # Do not remove this.
- # THESE ARE COLUMN 2's PROPERTIES.
- PROPERTIES_COLUMN1 =[
- [:hit],
- [:eva],
- [:cri],
- [:cev],
- [:mev],
- [:mrf],
- [:cnt],
- [:hrg],
- [:mrg],
- #[:trg],
- ] # Do not remove this.
- # THESE ARE COLUMN 3's PROPERTIES.
- PROPERTIES_COLUMN2 =[
- [:tgr],
- [:grd],
- [:rec],
- [:mcr],
- [:tcr],
- [:pdr],
- [:mdr],
- #[:mrg],
- [:exr],
- [:fdr],
- #[:atl],
- #[:dfl],
- ] # Do not remove this.
- def self.PWIs_Gauge_Rate(target, stat)
- if target.is_a?(RPG::EquipItem)
- gauge_rate = self.Get_Equip_PWIs_Gauge_Rate(target, stat)
- return gauge_rate
- elsif target == false
- return 0
- else
- gauge_rate = self.Get_Actor_PWIs_Gauge_Rate(target, stat)
- return gauge_rate
- end
- end
- def self.Get_Actor_PWIs_Gauge_Rate(target, stat)
- return (target.vit.to_f-1)/(target.MAX_VIT).to_f if stat == :vit
- return (target.str.to_f-1)/(target.MAX_STR).to_f if stat == :str
- return (target.dex.to_f-1)/(target.MAX_DEX).to_f if stat == :dex
- return (target.mag.to_f-1)/(target.MAX_MAG).to_f if stat == :mag
- return 0# nil
- end
- def self.Get_Equip_PWIs_Gauge_Rate(target, stat)
- return ((target.dpbzparams[0].to_f-1)/99).to_f if stat == :vit
- return ((target.dpbzparams[1].to_f-1)/99).to_f if stat == :str
- return ((target.dpbzparams[2].to_f-1)/99).to_f if stat == :dex
- return ((target.dpbzparams[3].to_f-1)/99).to_f if stat == :mag
- return 0# nil
- end
- def self.PSPDS_Icons(stat)
- return Vit_Icon if stat == :vit
- return Str_Icon if stat == :str
- return Dex_Icon if stat == :dex
- return Mag_Icon if stat == :mag
- return 0#nil
- end
- def self.PSPDS_Gauge_Color_1(stat)
- return Vit_Color_1 if stat == :vit
- return Str_Color_1 if stat == :str
- return Dex_Color_1 if stat == :dex
- return Mag_Color_1 if stat == :mag
- return 0#nil
- end
- def self.PSPDS_Gauge_Color_2(stat)
- return Vit_Color_2 if stat == :vit
- return Str_Color_2 if stat == :str
- return Dex_Color_2 if stat == :dex
- return Mag_Color_2 if stat == :mag
- return 0#nil
- end
- def self.PSPDS_Vocab(stat)
- return COMMAND_NAME_1 if stat == :vit
- return COMMAND_NAME_2 if stat == :str
- return COMMAND_NAME_3 if stat == :dex
- return COMMAND_NAME_4 if stat == :mag
- return "NuLL"#nil
- end
- def self.PSPDS_Value(target, stat)
- return Dekita__CORE::N_A_Vocab if target == false
- return PSPDS_EquipzValue(target, stat) if target.is_a?(RPG::EquipItem)
- return "#{target.vit.to_i}" if stat == :vit
- return "#{target.str.to_i}" if stat == :str
- return "#{target.dex.to_i}" if stat == :dex
- return "#{target.mag.to_i}" if stat == :mag
- return Dekita__CORE::N_A_Vocab
- end
- def self.PSPDS_EquipzValue(target, stat)
- return Dekita__CORE::N_A_Vocab if target == false
- return "#{target.dpbzparams[0].to_i}" if stat == :vit && target.is_a?(RPG::EquipItem)
- return "#{target.dpbzparams[1].to_i}" if stat == :str && target.is_a?(RPG::EquipItem)
- return "#{target.dpbzparams[2].to_i}" if stat == :dex && target.is_a?(RPG::EquipItem)
- return "#{target.dpbzparams[3].to_i}" if stat == :mag && target.is_a?(RPG::EquipItem)
- return Dekita__CORE::N_A_Vocab
- end
- #===============================================================================#
- # #
- # PSPDS #
- # (Perfect Stat Point Distribution System) #
- # - CUSTOMISATION END - #
- # #
- #===============================================================================#
- # http://dekitarpg.wordpress.com/
- #===============================================================================#
- #☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★#
- #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
- # #
- # PSPDS #
- # (Perfect Stat Point Distribution System) #
- # - SCRIPT BEGIN - #
- # #
- # #
- #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
- #☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★#
- #===============================================================================#
- # http://dekitarpg.wordpress.com/
- #===============================================================================#
- # ARE YOU MODIFYING BEYOND THIS POINT? \.\. #
- # YES?\.\. #
- # OMG, REALLY? #
- # WELL SLAP MY FACE AND CALL ME A DRAGON.\..\.. #
- # I REALLY DIDN'T THINK YOU HAD IT IN YOU.\..\.. #
- #===============================================================================#
- POINTS_COLUMN =[
- [:points, DPB::PSPDS::LVLUPPTSVOCAB],
- [:yanflyjp, DPB::PSPDS::YANFLY_JP_VOCAB],
- ] # Do not remove this.
- NEW_STATS_COLUMN =[
- [:vit, DPB::PSPDS::COMMAND_NAME_1],
- [:str, DPB::PSPDS::COMMAND_NAME_2],
- [:dex, DPB::PSPDS::COMMAND_NAME_3],
- [:mag, DPB::PSPDS::COMMAND_NAME_4],
- ] # Do not remove this.
- $pts = DPB::PSPDS::LVUPPTS
- $bonuspts = DPB::PSPDS::BONUSPOINTS
- end # PSPDS
- end # DPB
- #===============================================================================#
- # http://dekitarpg.wordpress.com/
- #===============================================================================#
- module DPB
- module REGEXP
- module EQUIPITEM
- INC_VIT = DPB::PSPDS::DEFAULT_VIT_NOTETAG
- INC_STR = DPB::PSPDS::DEFAULT_STR_NOTETAG
- INC_DEX = DPB::PSPDS::DEFAULT_DEX_NOTETAG
- INC_MAG = DPB::PSPDS::DEFAULT_MAG_NOTETAG
- end # EQUIPITEM
- module ENEMY
- PTS_GAIN = DPB::PSPDS::GAIN_POINTS_NOTETAG
- ATTI_GAIN = DPB::PSPDS::GAIN_ATTRIBUTE_NOTETAG
- end # ENEMY
- end # REGEXP
- end # DPB
- #==============================================================================
- class Game_Temp
- #==============================================================================
- attr_accessor :actor_level_up
- alias pspds_initialize initialize
- def initialize
- pspds_initialize
- @actor_level_up = []
- end
- end # class
- #==============================================================================
- class Game_BattlerBase
- #==============================================================================
- FEATURE_DPBzPARAM = 1989
- alias dpb_pspds_init initialize
- def initialize(*args, &block)
- clear_xparam_plus
- clear_sparam_plus
- clear_dpbzparam_plus
- dpb_pspds_init(*args, &block)
- end
- def vit; dpbzparam(0); end
- def str; dpbzparam(1); end
- def dex; dpbzparam(2); end
- def mag; dpbzparam(3); end
- def xparam(xparam_id)
- (features_sum(FEATURE_XPARAM, xparam_id) + xparam_plus(xparam_id))
- end
- def xparam_plus(xparam_id)
- @xparam_plus[xparam_id]
- end
- def clear_xparam_plus
- @xparam_plus = [0] * 10
- end
- def add_xparam(xparam_id, value)
- @xparam_plus[xparam_id] += value
- refresh
- end
- def sparam(sparam_id)
- (features_pi(FEATURE_SPARAM, sparam_id) + sparam_plus(sparam_id))
- end
- def sparam_plus(sparam_id)
- @sparam_plus[sparam_id]
- end
- def clear_sparam_plus
- @sparam_plus = [0] * 10
- end
- def add_sparam(sparam_id, value)
- @sparam_plus[sparam_id] += value
- refresh
- end
- def dpbzparam(dpbzparam_id)
- (features_sum(FEATURE_DPBzPARAM, dpbzparam_id) + dpbzparam_plus(dpbzparam_id))
- end
- def dpbzparam_plus(dpbzparam_id)
- @dpbzparam_plus[dpbzparam_id]
- end
- def clear_dpbzparam_plus
- @dpbzparam_plus = [0] * 4
- end
- def add_dpbzparam(dpbzparam_id, value)
- @dpbzparam_plus[dpbzparam_id] += value
- refresh
- end
- end # Game_BattlerBase
- #==============================================================================
- class Game_Actor < Game_Battler
- #==============================================================================
- attr_reader :level_up_pts
- attr_reader :MAX_VIT
- attr_reader :MAX_STR
- attr_reader :MAX_DEX
- attr_reader :MAX_MAG
- alias old_initialize initialize
- def initialize(actor_id)
- old_initialize(actor_id)
- @level_up_pts = 0
- @MAX_VIT = DPB::PSPDS::DEFAULT_MAX_VIT
- @MAX_STR = DPB::PSPDS::DEFAULT_MAX_STR
- @MAX_DEX = DPB::PSPDS::DEFAULT_MAX_DEX
- @MAX_MAG = DPB::PSPDS::DEFAULT_MAX_MAG
- end
- alias dpbzGAsetup setup
- def setup(actor_id)
- dpbzGAsetup(actor_id)
- clear_dpbzparam_plus
- clear_xparam_plus
- clear_sparam_plus
- end
- def cost_caract(param)
- tbl = [DPB::PSPDS::OPTION_1_COST,
- DPB::PSPDS::OPTION_2_COST,
- DPB::PSPDS::OPTION_3_COST,
- DPB::PSPDS::OPTION_4_COST]
- return tbl[param]
- end
- def gain_lvl_pts(value)
- @level_up_pts += value
- if @level_up_pts < 0
- @level_up_pts = 0
- end
- end
- def change_max_vit(value)
- @MAX_VIT = value
- end
- def change_max_str(value)
- @MAX_STR = value
- end
- def change_max_dex(value)
- @MAX_DEX = value
- end
- def change_max_mag(value)
- @MAX_MAG = value
- end
- def param_base(param_id)
- if DPB::PSPDS::USE_DEFAULT_PARAM_GAIN
- return self.class.params[param_id, @level]
- else
- return self.class.params[param_id, actor.initial_level]
- end
- end
- alias pspds_level_up level_up
- def level_up
- pspds_level_up
- $game_temp.actor_level_up.push(self) unless $game_temp.actor_level_up.include?(self)
- gain_lvl_pts($pts) if !DPB::PSPDS::ONLY_GAIN_POINTS_ON_LEVELS
- if DPB::PSPDS::BONUS_POINTS_ON_LEVELS
- return unless DPB::PSPDS::LEVELS.include?(@level)
- gain_lvl_pts($bonuspts)
- end
- end
- def mod_vit_params
- add_param(0, DPB::PSPDS::OPTION_1_MaxHP_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MaxHP_RAND_MIN, DPB::PSPDS::OP_1_MaxHP_RAND_MAX))
- add_param(1, DPB::PSPDS::OPTION_1_MaxMP_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MaxMP_RAND_MIN, DPB::PSPDS::OP_1_MaxMP_RAND_MAX))
- add_param(2, DPB::PSPDS::OPTION_1_ATK_GAIN + dpbz_randy(DPB::PSPDS::OP_1_ATK_RAND_MIN, DPB::PSPDS::OP_1_ATK_RAND_MAX))
- add_param(3, DPB::PSPDS::OPTION_1_DEF_GAIN + dpbz_randy(DPB::PSPDS::OP_1_DEF_RAND_MIN, DPB::PSPDS::OP_1_DEF_RAND_MAX))
- add_param(4, DPB::PSPDS::OPTION_1_MAT_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MAT_RAND_MIN, DPB::PSPDS::OP_1_MAT_RAND_MAX))
- add_param(5, DPB::PSPDS::OPTION_1_MDF_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MDF_RAND_MIN, DPB::PSPDS::OP_1_MDF_RAND_MAX))
- add_param(6, DPB::PSPDS::OPTION_1_AGI_GAIN + dpbz_randy(DPB::PSPDS::OP_1_AGI_RAND_MIN, DPB::PSPDS::OP_1_AGI_RAND_MAX))
- add_param(7, DPB::PSPDS::OPTION_1_LUK_GAIN + dpbz_randy(DPB::PSPDS::OP_1_LUK_RAND_MIN, DPB::PSPDS::OP_1_LUK_RAND_MAX))
- #x's
- add_xparam(0, DPB::PSPDS::OPTION_1_HIT_GAIN + dpbz_randy(DPB::PSPDS::OP_1_HIT_RAND_MIN, DPB::PSPDS::OP_1_HIT_RAND_MAX))
- add_xparam(1, DPB::PSPDS::OPTION_1_EVA_GAIN + dpbz_randy(DPB::PSPDS::OP_1_EVA_RAND_MIN, DPB::PSPDS::OP_1_EVA_RAND_MAX))
- add_xparam(2, DPB::PSPDS::OPTION_1_CRI_GAIN + dpbz_randy(DPB::PSPDS::OP_1_CRI_RAND_MIN, DPB::PSPDS::OP_1_CRI_RAND_MAX))
- add_xparam(3, DPB::PSPDS::OPTION_1_CEV_GAIN + dpbz_randy(DPB::PSPDS::OP_1_CEV_RAND_MIN, DPB::PSPDS::OP_1_CEV_RAND_MAX))
- add_xparam(4, DPB::PSPDS::OPTION_1_MEV_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MEV_RAND_MIN, DPB::PSPDS::OP_1_MEV_RAND_MAX))
- add_xparam(5, DPB::PSPDS::OPTION_1_MRF_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MRF_RAND_MIN, DPB::PSPDS::OP_1_MRF_RAND_MAX))
- add_xparam(6, DPB::PSPDS::OPTION_1_CNT_GAIN + dpbz_randy(DPB::PSPDS::OP_1_CNT_RAND_MIN, DPB::PSPDS::OP_1_CNT_RAND_MAX))
- add_xparam(7, DPB::PSPDS::OPTION_1_HRG_GAIN + dpbz_randy(DPB::PSPDS::OP_1_HRG_RAND_MIN, DPB::PSPDS::OP_1_HRG_RAND_MAX))
- add_xparam(8, DPB::PSPDS::OPTION_1_MRG_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MRG_RAND_MIN, DPB::PSPDS::OP_1_MRG_RAND_MAX))
- add_xparam(9, DPB::PSPDS::OPTION_1_TRG_GAIN + dpbz_randy(DPB::PSPDS::OP_1_TRG_RAND_MIN, DPB::PSPDS::OP_1_TRG_RAND_MAX))
- #s's
- add_sparam(0, DPB::PSPDS::OPTION_1_TGR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_TGR_RAND_MIN, DPB::PSPDS::OP_1_TGR_RAND_MAX))
- add_sparam(1, DPB::PSPDS::OPTION_1_GRD_GAIN + dpbz_randy(DPB::PSPDS::OP_1_GRD_RAND_MIN, DPB::PSPDS::OP_1_GRD_RAND_MAX))
- add_sparam(2, DPB::PSPDS::OPTION_1_REC_GAIN + dpbz_randy(DPB::PSPDS::OP_1_REC_RAND_MIN, DPB::PSPDS::OP_1_REC_RAND_MAX))
- add_sparam(3, DPB::PSPDS::OPTION_1_PHA_GAIN + dpbz_randy(DPB::PSPDS::OP_1_PHA_RAND_MIN, DPB::PSPDS::OP_1_PHA_RAND_MAX))
- add_sparam(4, DPB::PSPDS::OPTION_1_MCR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MCR_RAND_MIN, DPB::PSPDS::OP_1_MCR_RAND_MAX))
- add_sparam(5, DPB::PSPDS::OPTION_1_TCR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_TCR_RAND_MIN, DPB::PSPDS::OP_1_TCR_RAND_MAX))
- add_sparam(6, DPB::PSPDS::OPTION_1_PDR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_PDR_RAND_MIN, DPB::PSPDS::OP_1_PDR_RAND_MAX))
- add_sparam(7, DPB::PSPDS::OPTION_1_MDR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MDR_RAND_MIN, DPB::PSPDS::OP_1_MDR_RAND_MAX))
- add_sparam(8, DPB::PSPDS::OPTION_1_FDR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_FDR_RAND_MIN, DPB::PSPDS::OP_1_FDR_RAND_MAX))
- add_sparam(9, DPB::PSPDS::OPTION_1_EXR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_EXR_RAND_MIN, DPB::PSPDS::OP_1_EXR_RAND_MAX))
- #dpbz'
- add_dpbzparam(0, 1)
- end
- def mod_str_params
- #reg's
- add_param(0, DPB::PSPDS::OPTION_2_MaxHP_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MaxHP_RAND_MIN, DPB::PSPDS::OP_1_MaxHP_RAND_MAX))
- add_param(1, DPB::PSPDS::OPTION_2_MaxMP_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MaxMP_RAND_MIN, DPB::PSPDS::OP_1_MaxMP_RAND_MAX))
- add_param(2, DPB::PSPDS::OPTION_2_ATK_GAIN + dpbz_randy(DPB::PSPDS::OP_1_ATK_RAND_MIN, DPB::PSPDS::OP_1_ATK_RAND_MAX))
- add_param(3, DPB::PSPDS::OPTION_2_DEF_GAIN + dpbz_randy(DPB::PSPDS::OP_1_DEF_RAND_MIN, DPB::PSPDS::OP_1_DEF_RAND_MAX))
- add_param(4, DPB::PSPDS::OPTION_2_MAT_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MAT_RAND_MIN, DPB::PSPDS::OP_1_MAT_RAND_MAX))
- add_param(5, DPB::PSPDS::OPTION_2_MDF_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MDF_RAND_MIN, DPB::PSPDS::OP_1_MDF_RAND_MAX))
- add_param(6, DPB::PSPDS::OPTION_2_AGI_GAIN + dpbz_randy(DPB::PSPDS::OP_1_AGI_RAND_MIN, DPB::PSPDS::OP_1_AGI_RAND_MAX))
- add_param(7, DPB::PSPDS::OPTION_2_LUK_GAIN + dpbz_randy(DPB::PSPDS::OP_1_LUK_RAND_MIN, DPB::PSPDS::OP_1_LUK_RAND_MAX))
- #x's
- add_xparam(0, DPB::PSPDS::OPTION_2_HIT_GAIN + dpbz_randy(DPB::PSPDS::OP_1_HIT_RAND_MIN, DPB::PSPDS::OP_1_HIT_RAND_MAX))
- add_xparam(1, DPB::PSPDS::OPTION_2_EVA_GAIN + dpbz_randy(DPB::PSPDS::OP_1_EVA_RAND_MIN, DPB::PSPDS::OP_1_EVA_RAND_MAX))
- add_xparam(2, DPB::PSPDS::OPTION_2_CRI_GAIN + dpbz_randy(DPB::PSPDS::OP_1_CRI_RAND_MIN, DPB::PSPDS::OP_1_CRI_RAND_MAX))
- add_xparam(3, DPB::PSPDS::OPTION_2_CEV_GAIN + dpbz_randy(DPB::PSPDS::OP_1_CEV_RAND_MIN, DPB::PSPDS::OP_1_CEV_RAND_MAX))
- add_xparam(4, DPB::PSPDS::OPTION_2_MEV_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MEV_RAND_MIN, DPB::PSPDS::OP_1_MEV_RAND_MAX))
- add_xparam(5, DPB::PSPDS::OPTION_2_MRF_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MRF_RAND_MIN, DPB::PSPDS::OP_1_MRF_RAND_MAX))
- add_xparam(6, DPB::PSPDS::OPTION_2_CNT_GAIN + dpbz_randy(DPB::PSPDS::OP_1_CNT_RAND_MIN, DPB::PSPDS::OP_1_CNT_RAND_MAX))
- add_xparam(7, DPB::PSPDS::OPTION_2_HRG_GAIN + dpbz_randy(DPB::PSPDS::OP_1_HRG_RAND_MIN, DPB::PSPDS::OP_1_HRG_RAND_MAX))
- add_xparam(8, DPB::PSPDS::OPTION_2_MRG_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MRG_RAND_MIN, DPB::PSPDS::OP_1_MRG_RAND_MAX))
- add_xparam(9, DPB::PSPDS::OPTION_2_TRG_GAIN + dpbz_randy(DPB::PSPDS::OP_1_TRG_RAND_MIN, DPB::PSPDS::OP_1_TRG_RAND_MAX))
- #s's
- add_sparam(0, DPB::PSPDS::OPTION_2_TGR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_TGR_RAND_MIN, DPB::PSPDS::OP_2_TGR_RAND_MAX))
- add_sparam(1, DPB::PSPDS::OPTION_2_GRD_GAIN + dpbz_randy(DPB::PSPDS::OP_2_GRD_RAND_MIN, DPB::PSPDS::OP_2_GRD_RAND_MAX))
- add_sparam(2, DPB::PSPDS::OPTION_2_REC_GAIN + dpbz_randy(DPB::PSPDS::OP_2_REC_RAND_MIN, DPB::PSPDS::OP_2_REC_RAND_MAX))
- add_sparam(3, DPB::PSPDS::OPTION_2_PHA_GAIN + dpbz_randy(DPB::PSPDS::OP_2_PHA_RAND_MIN, DPB::PSPDS::OP_2_PHA_RAND_MAX))
- add_sparam(4, DPB::PSPDS::OPTION_2_MCR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_MCR_RAND_MIN, DPB::PSPDS::OP_2_MCR_RAND_MAX))
- add_sparam(5, DPB::PSPDS::OPTION_2_TCR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_TCR_RAND_MIN, DPB::PSPDS::OP_2_TCR_RAND_MAX))
- add_sparam(6, DPB::PSPDS::OPTION_2_PDR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_PDR_RAND_MIN, DPB::PSPDS::OP_2_PDR_RAND_MAX))
- add_sparam(7, DPB::PSPDS::OPTION_2_MDR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_MDR_RAND_MIN, DPB::PSPDS::OP_2_MDR_RAND_MAX))
- add_sparam(8, DPB::PSPDS::OPTION_2_FDR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_FDR_RAND_MIN, DPB::PSPDS::OP_2_FDR_RAND_MAX))
- add_sparam(9, DPB::PSPDS::OPTION_2_EXR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_EXR_RAND_MIN, DPB::PSPDS::OP_2_EXR_RAND_MAX))
- #dpbz'
- add_dpbzparam(1, 1)
- end
- def mod_dex_params
- #reg's
- add_param(0, DPB::PSPDS::OPTION_3_MaxHP_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MaxHP_RAND_MIN, DPB::PSPDS::OP_1_MaxHP_RAND_MAX))
- add_param(1, DPB::PSPDS::OPTION_3_MaxMP_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MaxMP_RAND_MIN, DPB::PSPDS::OP_1_MaxMP_RAND_MAX))
- add_param(2, DPB::PSPDS::OPTION_3_ATK_GAIN + dpbz_randy(DPB::PSPDS::OP_3_ATK_RAND_MIN, DPB::PSPDS::OP_3_ATK_RAND_MAX))
- add_param(3, DPB::PSPDS::OPTION_3_DEF_GAIN + dpbz_randy(DPB::PSPDS::OP_3_DEF_RAND_MIN, DPB::PSPDS::OP_3_DEF_RAND_MAX))
- add_param(4, DPB::PSPDS::OPTION_3_MAT_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MAT_RAND_MIN, DPB::PSPDS::OP_3_MAT_RAND_MAX))
- add_param(5, DPB::PSPDS::OPTION_3_MDF_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MDF_RAND_MIN, DPB::PSPDS::OP_3_MDF_RAND_MAX))
- add_param(6, DPB::PSPDS::OPTION_3_AGI_GAIN + dpbz_randy(DPB::PSPDS::OP_3_AGI_RAND_MIN, DPB::PSPDS::OP_3_AGI_RAND_MAX))
- add_param(7, DPB::PSPDS::OPTION_3_LUK_GAIN + dpbz_randy(DPB::PSPDS::OP_3_LUK_RAND_MIN, DPB::PSPDS::OP_3_LUK_RAND_MAX))
- #x's
- add_xparam(0, DPB::PSPDS::OPTION_3_HIT_GAIN + dpbz_randy(DPB::PSPDS::OP_3_HIT_RAND_MIN, DPB::PSPDS::OP_3_HIT_RAND_MAX))
- add_xparam(1, DPB::PSPDS::OPTION_3_EVA_GAIN + dpbz_randy(DPB::PSPDS::OP_3_EVA_RAND_MIN, DPB::PSPDS::OP_3_EVA_RAND_MAX))
- add_xparam(2, DPB::PSPDS::OPTION_3_CRI_GAIN + dpbz_randy(DPB::PSPDS::OP_3_CRI_RAND_MIN, DPB::PSPDS::OP_3_CRI_RAND_MAX))
- add_xparam(3, DPB::PSPDS::OPTION_3_CEV_GAIN + dpbz_randy(DPB::PSPDS::OP_3_CEV_RAND_MIN, DPB::PSPDS::OP_3_CEV_RAND_MAX))
- add_xparam(4, DPB::PSPDS::OPTION_3_MEV_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MEV_RAND_MIN, DPB::PSPDS::OP_3_MEV_RAND_MAX))
- add_xparam(5, DPB::PSPDS::OPTION_3_MRF_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MRF_RAND_MIN, DPB::PSPDS::OP_3_MRF_RAND_MAX))
- add_xparam(6, DPB::PSPDS::OPTION_3_CNT_GAIN + dpbz_randy(DPB::PSPDS::OP_3_CNT_RAND_MIN, DPB::PSPDS::OP_3_CNT_RAND_MAX))
- add_xparam(7, DPB::PSPDS::OPTION_3_HRG_GAIN + dpbz_randy(DPB::PSPDS::OP_3_HRG_RAND_MIN, DPB::PSPDS::OP_3_HRG_RAND_MAX))
- add_xparam(8, DPB::PSPDS::OPTION_3_MRG_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MRG_RAND_MIN, DPB::PSPDS::OP_3_MRG_RAND_MAX))
- add_xparam(9, DPB::PSPDS::OPTION_3_TRG_GAIN + dpbz_randy(DPB::PSPDS::OP_3_TRG_RAND_MIN, DPB::PSPDS::OP_3_TRG_RAND_MAX))
- #s's
- add_sparam(0, DPB::PSPDS::OPTION_3_TGR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_TGR_RAND_MIN, DPB::PSPDS::OP_3_TGR_RAND_MAX))
- add_sparam(1, DPB::PSPDS::OPTION_3_GRD_GAIN + dpbz_randy(DPB::PSPDS::OP_3_GRD_RAND_MIN, DPB::PSPDS::OP_3_GRD_RAND_MAX))
- add_sparam(2, DPB::PSPDS::OPTION_3_REC_GAIN + dpbz_randy(DPB::PSPDS::OP_3_REC_RAND_MIN, DPB::PSPDS::OP_3_REC_RAND_MAX))
- add_sparam(3, DPB::PSPDS::OPTION_3_PHA_GAIN + dpbz_randy(DPB::PSPDS::OP_3_PHA_RAND_MIN, DPB::PSPDS::OP_3_PHA_RAND_MAX))
- add_sparam(4, DPB::PSPDS::OPTION_3_MCR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MCR_RAND_MIN, DPB::PSPDS::OP_3_MCR_RAND_MAX))
- add_sparam(5, DPB::PSPDS::OPTION_3_TCR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_TCR_RAND_MIN, DPB::PSPDS::OP_3_TCR_RAND_MAX))
- add_sparam(6, DPB::PSPDS::OPTION_3_PDR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_PDR_RAND_MIN, DPB::PSPDS::OP_3_PDR_RAND_MAX))
- add_sparam(7, DPB::PSPDS::OPTION_3_MDR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MDR_RAND_MIN, DPB::PSPDS::OP_3_MDR_RAND_MAX))
- add_sparam(8, DPB::PSPDS::OPTION_3_FDR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_FDR_RAND_MIN, DPB::PSPDS::OP_3_FDR_RAND_MAX))
- add_sparam(9, DPB::PSPDS::OPTION_3_EXR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_EXR_RAND_MIN, DPB::PSPDS::OP_3_EXR_RAND_MAX))
- #dpbz'
- add_dpbzparam(2, 1)
- end
- def mod_mag_params
- #reg's
- add_param(0, DPB::PSPDS::OPTION_4_MaxHP_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MaxHP_RAND_MIN, DPB::PSPDS::OP_4_MaxHP_RAND_MAX))
- add_param(1, DPB::PSPDS::OPTION_4_MaxMP_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MaxMP_RAND_MIN, DPB::PSPDS::OP_4_MaxMP_RAND_MAX))
- add_param(2, DPB::PSPDS::OPTION_4_ATK_GAIN + dpbz_randy(DPB::PSPDS::OP_4_ATK_RAND_MIN, DPB::PSPDS::OP_4_ATK_RAND_MAX))
- add_param(3, DPB::PSPDS::OPTION_4_DEF_GAIN + dpbz_randy(DPB::PSPDS::OP_4_DEF_RAND_MIN, DPB::PSPDS::OP_4_DEF_RAND_MAX))
- add_param(4, DPB::PSPDS::OPTION_4_MAT_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MAT_RAND_MIN, DPB::PSPDS::OP_4_MAT_RAND_MAX))
- add_param(5, DPB::PSPDS::OPTION_4_MDF_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MDF_RAND_MIN, DPB::PSPDS::OP_4_MDF_RAND_MAX))
- add_param(6, DPB::PSPDS::OPTION_4_AGI_GAIN + dpbz_randy(DPB::PSPDS::OP_4_AGI_RAND_MIN, DPB::PSPDS::OP_4_AGI_RAND_MAX))
- add_param(7, DPB::PSPDS::OPTION_4_LUK_GAIN + dpbz_randy(DPB::PSPDS::OP_4_LUK_RAND_MIN, DPB::PSPDS::OP_4_LUK_RAND_MAX))
- #x's
- add_xparam(0, DPB::PSPDS::OPTION_4_HIT_GAIN + dpbz_randy(DPB::PSPDS::OP_4_HIT_RAND_MIN, DPB::PSPDS::OP_4_HIT_RAND_MAX))
- add_xparam(1, DPB::PSPDS::OPTION_4_EVA_GAIN + dpbz_randy(DPB::PSPDS::OP_4_EVA_RAND_MIN, DPB::PSPDS::OP_4_EVA_RAND_MAX))
- add_xparam(2, DPB::PSPDS::OPTION_4_CRI_GAIN + dpbz_randy(DPB::PSPDS::OP_4_CRI_RAND_MIN, DPB::PSPDS::OP_4_CRI_RAND_MAX))
- add_xparam(3, DPB::PSPDS::OPTION_4_CEV_GAIN + dpbz_randy(DPB::PSPDS::OP_4_CEV_RAND_MIN, DPB::PSPDS::OP_4_CEV_RAND_MAX))
- add_xparam(4, DPB::PSPDS::OPTION_4_MEV_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MEV_RAND_MIN, DPB::PSPDS::OP_4_MEV_RAND_MAX))
- add_xparam(5, DPB::PSPDS::OPTION_4_MRF_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MRF_RAND_MIN, DPB::PSPDS::OP_4_MRF_RAND_MAX))
- add_xparam(6, DPB::PSPDS::OPTION_4_CNT_GAIN + dpbz_randy(DPB::PSPDS::OP_4_CNT_RAND_MIN, DPB::PSPDS::OP_4_CNT_RAND_MAX))
- add_xparam(7, DPB::PSPDS::OPTION_4_HRG_GAIN + dpbz_randy(DPB::PSPDS::OP_4_HRG_RAND_MIN, DPB::PSPDS::OP_4_HRG_RAND_MAX))
- add_xparam(8, DPB::PSPDS::OPTION_4_MRG_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MRG_RAND_MIN, DPB::PSPDS::OP_4_MRG_RAND_MAX))
- add_xparam(9, DPB::PSPDS::OPTION_4_TRG_GAIN + dpbz_randy(DPB::PSPDS::OP_4_TRG_RAND_MIN, DPB::PSPDS::OP_4_TRG_RAND_MAX))
- #s's
- add_sparam(0, DPB::PSPDS::OPTION_4_TGR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_TGR_RAND_MIN, DPB::PSPDS::OP_4_TGR_RAND_MAX))
- add_sparam(1, DPB::PSPDS::OPTION_4_GRD_GAIN + dpbz_randy(DPB::PSPDS::OP_4_GRD_RAND_MIN, DPB::PSPDS::OP_4_GRD_RAND_MAX))
- add_sparam(2, DPB::PSPDS::OPTION_4_REC_GAIN + dpbz_randy(DPB::PSPDS::OP_4_REC_RAND_MIN, DPB::PSPDS::OP_4_REC_RAND_MAX))
- add_sparam(3, DPB::PSPDS::OPTION_4_PHA_GAIN + dpbz_randy(DPB::PSPDS::OP_4_PHA_RAND_MIN, DPB::PSPDS::OP_4_PHA_RAND_MAX))
- add_sparam(4, DPB::PSPDS::OPTION_4_MCR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MCR_RAND_MIN, DPB::PSPDS::OP_4_MCR_RAND_MAX))
- add_sparam(5, DPB::PSPDS::OPTION_4_TCR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_TCR_RAND_MIN, DPB::PSPDS::OP_4_TCR_RAND_MAX))
- add_sparam(6, DPB::PSPDS::OPTION_4_PDR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_PDR_RAND_MIN, DPB::PSPDS::OP_4_PDR_RAND_MAX))
- add_sparam(7, DPB::PSPDS::OPTION_4_MDR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MDR_RAND_MIN, DPB::PSPDS::OP_4_MDR_RAND_MAX))
- add_sparam(8, DPB::PSPDS::OPTION_4_FDR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_FDR_RAND_MIN, DPB::PSPDS::OP_4_FDR_RAND_MAX))
- add_sparam(9, DPB::PSPDS::OPTION_4_EXR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_EXR_RAND_MIN, DPB::PSPDS::OP_4_EXR_RAND_MAX))
- #dpbz'
- add_dpbzparam(3, 1)
- end
- end # Game_Actor
- #==============================================================================
- class Game_Interpreter
- #==============================================================================
- def change_MaxVIT(actor_id, value)
- actor = $game_actors[actor_id]
- return if actor == nil
- actor.change_max_vit(value)
- end
- def change_MaxSTR(actor_id, value)
- actor = $game_actors[actor_id]
- return if actor == nil
- actor.change_max_str(value)
- end
- def change_MaxDEX(actor_id, value)
- actor = $game_actors[actor_id]
- return if actor == nil
- actor.change_max_dex(value)
- end
- def change_MaxMAG(actor_id, value)
- actor = $game_actors[actor_id]
- return if actor == nil
- actor.change_max_mag(value)
- end
- def gain_pts(actor_id, value)
- actor = $game_actors[actor_id]
- return if actor == nil
- actor.gain_lvl_pts(value)
- end
- def gain_atti(actor_id, value)
- actor = $game_actors[actor_id]
- return if actor == nil
- actor.gain_atti_ptz(value)
- end
- def inc_vit(actor_id, value)
- actor = $game_actors[actor_id]
- return if actor == nil
- t = 1
- loop do
- actor.mod_vit_params
- if t == value
- break
- end
- t += 1
- end
- end
- def inc_str(actor_id, value)
- actor = $game_actors[actor_id]
- return if actor == nil
- t = 1
- loop do
- actor.mod_str_params
- if t == value
- break
- end
- t += 1
- end
- end
- def inc_dex(actor_id, value)
- actor = $game_actors[actor_id]
- return if actor == nil
- t = 1
- loop do
- actor.mod_dex_params
- if t == value
- break
- end
- t += 1
- end
- end
- def inc_mag(actor_id, value)
- actor = $game_actors[actor_id]
- return if actor == nil
- t = 1
- loop do
- actor.mod_mag_params
- if t == value
- break
- end
- t += 1
- end
- end
- end# class
- #===============================================================================#
- # ☆ WINDOWS
- #===============================================================================#
- # http://dekitarpg.wordpress.com/
- #===============================================================================#
- class Window_Level_upCommand < Window_Command
- #===============================================================================#
- def initialize
- super(0, 300)
- @actor = $game_temp.actor_level_up[0]
- @@last_command_symbol = nil
- select_last
- self.opacity = 0
- end
- def actor=(actor)
- return if @actor == actor
- @actor = actor
- refresh
- end
- def window_width
- return (Graphics.width - 24) / 4.15 + (DPB::PSPDS::COMMAND_COLUMN_EXTRA_WIDTH)
- end
- def window_height
- return 344
- end
- def visible_line_number
- item_max
- end
- def make_command_list
- for command in DPB::PSPDS::COMMANDS
- case command
- when :Vitality ; add_command("", :gain_vit)
- when :Strength ; add_command("", :gain_str)
- when :Dexterity ; add_command("", :gain_dex)
- when :Magic ; add_command("", :gain_mag)
- end
- end
- end
- def process_ok
- @@last_command_symbol = current_symbol
- super
- end
- def select_last
- select_symbol(@@last_command_symbol)
- end
- end# Window_Level_upCommand
- #==============================================================================
- class Window_Status_Level_up < Window_Selectable
- #==============================================================================
- #include Dekita__CORE__Module
- def initialize(actor)
- super(-50, -50, window_width, window_height)
- contents.font.size = Dekita__CORE::Info_Font_Size
- @actor = actor
- refresh
- activate
- end
- def actor=(actor)
- return if @actor == actor
- @actor = actor
- refresh
- end
- def window_width; return Graphics.width - 0; end
- def window_height; return Graphics.height - 0; end
- def refresh
- contents.clear
- draw_block1(line_height * 1)
- draw_block2(line_height * 1)
- end
- def draw_block1(y)
- draw_actor_face(@actor, window_width / 2.5, 0)
- if DPB::PSPDS::DRAW_ACTOR_GRAPHIC
- draw_actor_graphic(@actor, DPB::PSPDS::DAG_X, DPB::PSPDS::DAG_Y)#, 50)
- end
- end
- def draw_block2(y)
- draw_basic_info(32, y)
- draw_points_column
- end
- def draw_horz_line(y)
- line_y = y + line_height / 2 - 1
- contents.fill_rect(0, line_y, contents_width, 2, line_color)
- end
- def line_color
- color = normal_color
- color.alpha = 48
- color
- end
- def draw_basic_info(x, y)
- draw_actor_icons(@actor, (window_width - 24) / 2.5, y + line_height * 3)
- draw_properties_paramcolumn
- contents.font.size = Dekita__CORE::Info_Font_Size
- draw_horz_line(line_height * 4)
- draw_horz_line(Graphics.height - line_height * 4)
- draw_new_stats_column
- draw_properties_column1
- draw_properties_column2
- reset_font_settings
- end
- def draw_points_column
- dx = (window_width - 24) / 5 * 4
- dw = (window_width - 24) / 5
- dy = 0
- for property in DPB::PSPDS::POINTS_COLUMN
- dy = draw_points_info_DPBz(property, @actor, dx, dy, dw)
- end
- end
- def draw_new_stats_column
- dx = 0
- dw = (window_width - 24) / 5
- dy = 0
- for property in DPB::PSPDS::NEW_STATS_COLUMN
- dy = draw_stat_info_DPBz(property, @actor, dx, dy, dw)
- end
- end
- def draw_properties_column1
- dx = window_width / 3 * 1 - 6
- dw = window_width / 3 - 12
- dy = line_height * 4.7
- for property in DPB::PSPDS::PROPERTIES_COLUMN1
- dy = draw_stat_info_DPBz(property, @actor, dx, dy, dw)
- end
- end
- def draw_properties_column2
- dx = window_width / 3 * 2 - 12
- dw = window_width / 3 - 12
- dy = line_height * 4.7
- for property in DPB::PSPDS::PROPERTIES_COLUMN2
- dy = draw_stat_info_DPBz(property, @actor, dx, dy, dw)
- end
- end
- def draw_properties_paramcolumn
- dx = window_width / 3 * 0
- dw = ((window_width) / 3) - 12
- dy = line_height * 4.7
- for property in DPB::PSPDS::PROPERTIES_PARAMCOLUMN
- dy = draw_stat_info_DPBz(property, @actor, dx, dy, dw)
- end
- end#
- end # Window_Status_Level_up
- #===============================================================================#
- # ☆ SCENES
- #===============================================================================#
- # http://dekitarpg.wordpress.com/
- #===============================================================================#
- if DPB::PSPDS::ONMAP
- #==============================================================================
- class Scene_Map < Scene_Base # < Only used if "ONMAP" is true
- #==============================================================================
- alias old_update update
- def update
- old_update
- if $game_temp.actor_level_up[0]
- SceneManager.call(Scene_Level_Up)
- end
- end
- end# class
- end# if
- if DPB::PSPDS::INBATTLE
- #==============================================================================
- class Scene_Battle < Scene_Base # < Default setting. Only used when "INBATTLE" is true
- #==============================================================================
- alias old_update update
- def update
- old_update
- if $game_temp.actor_level_up[0]
- SceneManager.call(Scene_Level_Up)
- end
- end
- end#class
- end# if
- #==============================================================================
- class Scene_Level_Up < Scene_MenuBase
- #==============================================================================
- def msg
- s = ["#{DPB::PSPDS::VIT_GAIN_VOCAB}
- #{DPB::PSPDS::COST_VOCAB} #{@actor.cost_caract(0)}",
- "#{DPB::PSPDS::STR_GAIN_VOCAB}
- #{DPB::PSPDS::COST_VOCAB} #{@actor.cost_caract(1)}",
- "#{DPB::PSPDS::DEX_GAIN_VOCAB}
- #{DPB::PSPDS::COST_VOCAB} #{@actor.cost_caract(2)}",
- "#{DPB::PSPDS::MAG_GAIN_VOCAB}
- #{DPB::PSPDS::COST_VOCAB} #{@actor.cost_caract(3)}"]
- return s
- end
- def start
- super
- if $game_temp.actor_level_up[0]
- @actor = $game_temp.actor_level_up[0]
- end
- create_status_window
- create_command_window
- create_help_window
- @help_window.set_text(msg[@command_window.index])
- @help_window.y = (Graphics.height - 80)
- @help_window.opacity = 0
- $game_temp.actor_level_up.delete_at(0)
- end
- def create_command_window
- @command_window = Window_Level_upCommand.new
- @command_window.set_handler(:gain_vit, method(:command_gain_vit))
- @command_window.set_handler(:gain_str, method(:command_gain_str))
- @command_window.set_handler(:gain_dex, method(:command_gain_dex))
- @command_window.set_handler(:gain_mag, method(:command_gain_mag))
- @command_window.set_handler(:cancel, method(:exit_pspds_screen))
- @command_window.set_handler(:pagedown, method(:next_actor))
- @command_window.set_handler(:pageup, method(:prev_actor))
- @command_window.y = 0
- end
- def create_status_window
- @status_window = Window_Status_Level_up.new(@actor)
- @status_window.x = 0
- @status_window.y = 0
- end
- def exit_pspds_screen
- return_scene
- end
- def command_gain_vit
- @command_window.refresh
- index = @command_window.index
- if @actor.level_up_pts >= @actor.cost_caract(index) && @actor.vit < @actor.MAX_VIT
- @actor.gain_lvl_pts(-@actor.cost_caract(index))
- vit_option_stat_mods
- @help_window.set_text(DPB::PSPDS::ADDSTATTEXT)
- else
- if @actor.vit == @actor.MAX_VIT
- @help_window.set_text(DPB::PSPDS::MAX_VIT_VOCAB)
- else
- @help_window.set_text(DPB::PSPDS::NOPOINTSTEXT)
- end # if
- end # if
- @status_window.refresh
- @command_window.refresh
- wait(DPB::PSPDS::WAIT_TIME)
- @command_window.activate
- end
- def command_gain_str
- @command_window.refresh
- index = @command_window.index
- if @actor.level_up_pts >= @actor.cost_caract(index) && @actor.str < @actor.MAX_STR
- @actor.gain_lvl_pts(-@actor.cost_caract(index))
- str_option_stat_mods
- @help_window.set_text(DPB::PSPDS::ADDSTATTEXT)
- else
- if @actor.str == @actor.MAX_STR
- @help_window.set_text(DPB::PSPDS::MAX_STR_VOCAB)
- else
- @help_window.set_text(DPB::PSPDS::NOPOINTSTEXT)
- end # if
- end # if
- @status_window.refresh
- @command_window.refresh
- wait(DPB::PSPDS::WAIT_TIME)
- @command_window.activate
- end
- def command_gain_dex
- @command_window.refresh
- index = @command_window.index
- if @actor.level_up_pts >= @actor.cost_caract(index) && @actor.dex < @actor.MAX_DEX
- @actor.gain_lvl_pts(-@actor.cost_caract(index))
- dex_option_stat_mods
- @help_window.set_text(DPB::PSPDS::ADDSTATTEXT)
- else
- if @actor.dex == @actor.MAX_DEX
- @help_window.set_text(DPB::PSPDS::MAX_DEX_VOCAB)
- else
- @help_window.set_text(DPB::PSPDS::NOPOINTSTEXT)
- end # if
- end # if
- @status_window.refresh
- @command_window.refresh
- wait(DPB::PSPDS::WAIT_TIME)
- @command_window.activate
- end
- def command_gain_mag
- @command_window.refresh
- index = @command_window.index
- if @actor.level_up_pts >= @actor.cost_caract(index) && @actor.mag < @actor.MAX_MAG
- @actor.gain_lvl_pts(-@actor.cost_caract(index))
- mag_option_stat_mods
- @help_window.set_text(DPB::PSPDS::ADDSTATTEXT)
- else
- if @actor.mag == @actor.MAX_MAG
- @help_window.set_text(DPB::PSPDS::MAX_MAG_VOCAB)
- else
- @help_window.set_text(DPB::PSPDS::NOPOINTSTEXT)
- end # if
- end # if
- @status_window.refresh
- @command_window.refresh
- wait(DPB::PSPDS::WAIT_TIME)
- @command_window.activate
- end
- def vit_option_stat_mods
- @actor.mod_vit_params
- end
- def str_option_stat_mods
- @actor.mod_str_params
- end
- def dex_option_stat_mods
- @actor.mod_dex_params
- end
- def mag_option_stat_mods
- @actor.mod_mag_params
- end
- def wait(time)
- t = 0
- loop do
- update_basic
- # Graphics.update
- if t == time
- break
- end
- t += 1
- end
- end
- def update
- super
- @help_window.set_text(msg[@command_window.index])
- end
- def on_actor_change
- @status_window.actor = @actor
- @command_window.actor = @actor
- @status_window.refresh
- @command_window.activate
- end
- end # class
- #===============================================================================#
- # http://dekitarpg.wordpress.com/
- #===============================================================================#
- # Equipment Stats (vit, str, ect)
- #==============================================================================
- module DataManager
- #==============================================================================
- class <<self; alias load_database_PSPDS load_database; end
- def self.load_database
- load_database_PSPDS
- load_notetags_PSPDS
- end
- def self.load_notetags_PSPDS
- groups = [$data_weapons, $data_armors]
- for group in groups
- for obj in group
- next if obj.nil?
- obj.load_notetags_PSPDS
- end
- end
- end
- end # DataManager
- #==============================================================================
- class RPG::EquipItem < RPG::BaseItem
- #==============================================================================
- attr_accessor :dpbzparams
- attr_accessor :xparams
- attr_accessor :sparams
- def load_notetags_PSPDS
- @dpbzparams = [0] * 4
- @xparams = [0] * 10
- @sparams = [0] * 10
- self.note.split(/[\r\n]+/).each { |line|
- case line
- when DPB::REGEXP::EQUIPITEM::INC_VIT
- @dpbzparams[0] += $1.to_i
- @params[0] += (DPB::PSPDS::OPTION_1_MaxHP_GAIN * $1.to_i)
- @params[1] += (DPB::PSPDS::OPTION_1_MaxMP_GAIN * $1.to_i)
- @params[2] += (DPB::PSPDS::OPTION_1_ATK_GAIN * $1.to_i)
- @params[3] += (DPB::PSPDS::OPTION_1_DEF_GAIN * $1.to_i)
- @params[4] += (DPB::PSPDS::OPTION_1_MAT_GAIN * $1.to_i)
- @params[5] += (DPB::PSPDS::OPTION_1_MDF_GAIN * $1.to_i)
- @params[6] += (DPB::PSPDS::OPTION_1_AGI_GAIN * $1.to_i)
- @params[7] += (DPB::PSPDS::OPTION_1_LUK_GAIN * $1.to_i)
- #x's
- @xparams[0] += (DPB::PSPDS::OPTION_1_HIT_GAIN * $1.to_i)
- @xparams[1] += (DPB::PSPDS::OPTION_1_EVA_GAIN * $1.to_i)
- @xparams[2] += (DPB::PSPDS::OPTION_1_CRI_GAIN * $1.to_i)
- @xparams[3] += (DPB::PSPDS::OPTION_1_CEV_GAIN * $1.to_i)
- @xparams[4] += (DPB::PSPDS::OPTION_1_MEV_GAIN * $1.to_i)
- @xparams[5] += (DPB::PSPDS::OPTION_1_MRF_GAIN * $1.to_i)
- @xparams[6] += (DPB::PSPDS::OPTION_1_CNT_GAIN * $1.to_i)
- @xparams[7] += (DPB::PSPDS::OPTION_1_HRG_GAIN * $1.to_i)
- @xparams[8] += (DPB::PSPDS::OPTION_1_MRG_GAIN * $1.to_i)
- @xparams[9] += (DPB::PSPDS::OPTION_1_TRG_GAIN * $1.to_i)
- #s's
- @sparams[0] += (DPB::PSPDS::OPTION_1_TGR_GAIN * $1.to_i)
- @sparams[1] += (DPB::PSPDS::OPTION_1_GRD_GAIN * $1.to_i)
- @sparams[2] += (DPB::PSPDS::OPTION_1_REC_GAIN * $1.to_i)
- @sparams[3] += (DPB::PSPDS::OPTION_1_PHA_GAIN * $1.to_i)
- @sparams[4] += (DPB::PSPDS::OPTION_1_MCR_GAIN * $1.to_i)
- @sparams[5] += (DPB::PSPDS::OPTION_1_TCR_GAIN * $1.to_i)
- @sparams[6] += (DPB::PSPDS::OPTION_1_PDR_GAIN * $1.to_i)
- @sparams[7] += (DPB::PSPDS::OPTION_1_MDR_GAIN * $1.to_i)
- @sparams[8] += (DPB::PSPDS::OPTION_1_FDR_GAIN * $1.to_i)
- @sparams[9] += (DPB::PSPDS::OPTION_1_EXR_GAIN * $1.to_i)
- when DPB::REGEXP::EQUIPITEM::INC_STR
- @dpbzparams[1] += $1.to_i
- @params[0] += (DPB::PSPDS::OPTION_2_MaxHP_GAIN * $1.to_i)
- @params[1] += (DPB::PSPDS::OPTION_2_MaxMP_GAIN * $1.to_i)
- @params[2] += (DPB::PSPDS::OPTION_2_ATK_GAIN * $1.to_i)
- @params[3] += (DPB::PSPDS::OPTION_2_DEF_GAIN * $1.to_i)
- @params[4] += (DPB::PSPDS::OPTION_2_MAT_GAIN * $1.to_i)
- @params[5] += (DPB::PSPDS::OPTION_2_MDF_GAIN * $1.to_i)
- @params[6] += (DPB::PSPDS::OPTION_2_AGI_GAIN * $1.to_i)
- @params[7] += (DPB::PSPDS::OPTION_2_LUK_GAIN * $1.to_i)
- #x's
- @xparams[0] += (DPB::PSPDS::OPTION_2_HIT_GAIN * $1.to_i)
- @xparams[1] += (DPB::PSPDS::OPTION_2_EVA_GAIN * $1.to_i)
- @xparams[2] += (DPB::PSPDS::OPTION_2_CRI_GAIN * $1.to_i)
- @xparams[3] += (DPB::PSPDS::OPTION_2_CEV_GAIN * $1.to_i)
- @xparams[4] += (DPB::PSPDS::OPTION_2_MEV_GAIN * $1.to_i)
- @xparams[5] += (DPB::PSPDS::OPTION_2_MRF_GAIN * $1.to_i)
- @xparams[6] += (DPB::PSPDS::OPTION_2_CNT_GAIN * $1.to_i)
- @xparams[7] += (DPB::PSPDS::OPTION_2_HRG_GAIN * $1.to_i)
- @xparams[8] += (DPB::PSPDS::OPTION_2_MRG_GAIN * $1.to_i)
- @xparams[9] += (DPB::PSPDS::OPTION_2_TRG_GAIN * $1.to_i)
- #s's
- @sparams[0] += (DPB::PSPDS::OPTION_2_TGR_GAIN * $1.to_i)
- @sparams[1] += (DPB::PSPDS::OPTION_2_GRD_GAIN * $1.to_i)
- @sparams[2] += (DPB::PSPDS::OPTION_2_REC_GAIN * $1.to_i)
- @sparams[3] += (DPB::PSPDS::OPTION_2_PHA_GAIN * $1.to_i)
- @sparams[4] += (DPB::PSPDS::OPTION_2_MCR_GAIN * $1.to_i)
- @sparams[5] += (DPB::PSPDS::OPTION_2_TCR_GAIN * $1.to_i)
- @sparams[6] += (DPB::PSPDS::OPTION_2_PDR_GAIN * $1.to_i)
- @sparams[7] += (DPB::PSPDS::OPTION_2_MDR_GAIN * $1.to_i)
- @sparams[8] += (DPB::PSPDS::OPTION_2_FDR_GAIN * $1.to_i)
- @sparams[9] += (DPB::PSPDS::OPTION_2_EXR_GAIN * $1.to_i)
- when DPB::REGEXP::EQUIPITEM::INC_DEX
- @dpbzparams[2] += $1.to_i
- @params[0] += (DPB::PSPDS::OPTION_3_MaxHP_GAIN * $1.to_i)
- @params[1] += (DPB::PSPDS::OPTION_3_MaxMP_GAIN * $1.to_i)
- @params[2] += (DPB::PSPDS::OPTION_3_ATK_GAIN * $1.to_i)
- @params[3] += (DPB::PSPDS::OPTION_3_DEF_GAIN * $1.to_i)
- @params[4] += (DPB::PSPDS::OPTION_3_MAT_GAIN * $1.to_i)
- @params[5] += (DPB::PSPDS::OPTION_3_MDF_GAIN * $1.to_i)
- @params[6] += (DPB::PSPDS::OPTION_3_AGI_GAIN * $1.to_i)
- @params[7] += (DPB::PSPDS::OPTION_3_LUK_GAIN * $1.to_i)
- #x's
- @xparams[0] += (DPB::PSPDS::OPTION_3_HIT_GAIN * $1.to_i)
- @xparams[1] += (DPB::PSPDS::OPTION_3_EVA_GAIN * $1.to_i)
- @xparams[2] += (DPB::PSPDS::OPTION_3_CRI_GAIN * $1.to_i)
- @xparams[3] += (DPB::PSPDS::OPTION_3_CEV_GAIN * $1.to_i)
- @xparams[4] += (DPB::PSPDS::OPTION_3_MEV_GAIN * $1.to_i)
- @xparams[5] += (DPB::PSPDS::OPTION_3_MRF_GAIN * $1.to_i)
- @xparams[6] += (DPB::PSPDS::OPTION_3_CNT_GAIN * $1.to_i)
- @xparams[7] += (DPB::PSPDS::OPTION_3_HRG_GAIN * $1.to_i)
- @xparams[8] += (DPB::PSPDS::OPTION_3_MRG_GAIN * $1.to_i)
- @xparams[9] += (DPB::PSPDS::OPTION_3_TRG_GAIN * $1.to_i)
- #s's
- @sparams[0] += (DPB::PSPDS::OPTION_3_TGR_GAIN * $1.to_i)
- @sparams[1] += (DPB::PSPDS::OPTION_3_GRD_GAIN * $1.to_i)
- @sparams[2] += (DPB::PSPDS::OPTION_3_REC_GAIN * $1.to_i)
- @sparams[3] += (DPB::PSPDS::OPTION_3_PHA_GAIN * $1.to_i)
- @sparams[4] += (DPB::PSPDS::OPTION_3_MCR_GAIN * $1.to_i)
- @sparams[5] += (DPB::PSPDS::OPTION_3_TCR_GAIN * $1.to_i)
- @sparams[6] += (DPB::PSPDS::OPTION_3_PDR_GAIN * $1.to_i)
- @sparams[7] += (DPB::PSPDS::OPTION_3_MDR_GAIN * $1.to_i)
- @sparams[8] += (DPB::PSPDS::OPTION_3_FDR_GAIN * $1.to_i)
- @sparams[9] += (DPB::PSPDS::OPTION_3_EXR_GAIN * $1.to_i)
- when DPB::REGEXP::EQUIPITEM::INC_MAG
- @dpbzparams[3] += $1.to_i
- @params[0] += (DPB::PSPDS::OPTION_4_MaxHP_GAIN * $1.to_i)
- @params[1] += (DPB::PSPDS::OPTION_4_MaxMP_GAIN * $1.to_i)
- @params[2] += (DPB::PSPDS::OPTION_4_ATK_GAIN * $1.to_i)
- @params[3] += (DPB::PSPDS::OPTION_4_DEF_GAIN * $1.to_i)
- @params[4] += (DPB::PSPDS::OPTION_4_MAT_GAIN * $1.to_i)
- @params[5] += (DPB::PSPDS::OPTION_4_MDF_GAIN * $1.to_i)
- @params[6] += (DPB::PSPDS::OPTION_4_AGI_GAIN * $1.to_i)
- @params[7] += (DPB::PSPDS::OPTION_4_LUK_GAIN * $1.to_i)
- #x's
- @xparams[0] += (DPB::PSPDS::OPTION_4_HIT_GAIN * $1.to_i)
- @xparams[1] += (DPB::PSPDS::OPTION_4_EVA_GAIN * $1.to_i)
- @xparams[2] += (DPB::PSPDS::OPTION_4_CRI_GAIN * $1.to_i)
- @xparams[3] += (DPB::PSPDS::OPTION_4_CEV_GAIN * $1.to_i)
- @xparams[4] += (DPB::PSPDS::OPTION_4_MEV_GAIN * $1.to_i)
- @xparams[5] += (DPB::PSPDS::OPTION_4_MRF_GAIN * $1.to_i)
- @xparams[6] += (DPB::PSPDS::OPTION_4_CNT_GAIN * $1.to_i)
- @xparams[7] += (DPB::PSPDS::OPTION_4_HRG_GAIN * $1.to_i)
- @xparams[8] += (DPB::PSPDS::OPTION_4_MRG_GAIN * $1.to_i)
- @xparams[9] += (DPB::PSPDS::OPTION_4_TRG_GAIN * $1.to_i)
- #s's
- @sparams[0] += (DPB::PSPDS::OPTION_4_TGR_GAIN * $1.to_i)
- @sparams[1] += (DPB::PSPDS::OPTION_4_GRD_GAIN * $1.to_i)
- @sparams[2] += (DPB::PSPDS::OPTION_4_REC_GAIN * $1.to_i)
- @sparams[3] += (DPB::PSPDS::OPTION_4_PHA_GAIN * $1.to_i)
- @sparams[4] += (DPB::PSPDS::OPTION_4_MCR_GAIN * $1.to_i)
- @sparams[5] += (DPB::PSPDS::OPTION_4_TCR_GAIN * $1.to_i)
- @sparams[6] += (DPB::PSPDS::OPTION_4_PDR_GAIN * $1.to_i)
- @sparams[7] += (DPB::PSPDS::OPTION_4_MDR_GAIN * $1.to_i)
- @sparams[8] += (DPB::PSPDS::OPTION_4_FDR_GAIN * $1.to_i)
- @sparams[9] += (DPB::PSPDS::OPTION_4_EXR_GAIN * $1.to_i)
- #---
- end
- } # self.note.split
- #---
- end
- end # RPG::EquipItem
- #==============================================================================
- class Game_Actor < Game_Battler
- #==============================================================================
- alias game_actor_param_plus_PSPDS dpbzparam_plus
- def dpbzparam_plus(dpbzparam_id)
- n = game_actor_param_plus_PSPDS(dpbzparam_id)
- n += dpbz_parameter_rate(dpbzparam_id)
- return n
- end
- alias game_actor_xparam_plus_PSPDS xparam_plus
- def xparam_plus(xparam_id)
- n = game_actor_xparam_plus_PSPDS(xparam_id)
- n += x_parameter_rate(xparam_id)
- return n
- end
- alias game_actor_sparam_plus_PSPDS sparam_plus
- def sparam_plus(sparam_id)
- n = game_actor_sparam_plus_PSPDS(sparam_id)
- n += s_parameter_rate(sparam_id)
- return n
- end
- def dpbz_parameter_rate(dpbzparam_id)
- rate = 0.0
- rate += equips.compact.inject(0) {|r, i|
- r += i.dpbzparams[dpbzparam_id] rescue 0 }
- return rate
- end
- def x_parameter_rate(xparam_id)
- rate = 0.0
- rate += equips.compact.inject(0) {|r, i|
- r += i.xparams[xparam_id] rescue 0 }
- return rate
- end
- def s_parameter_rate(sparam_id)
- rate = 0.0
- rate += equips.compact.inject(0) {|r, i|
- r += i.sparams[sparam_id] rescue 0 }
- return rate
- end
- end # Game_Actor < Game_BattlerBase
- #
- ## Enemy Stats Add-on
- #
- #==============================================================================
- module DataManager
- #==============================================================================
- class <<self; alias load_database_PSPDS_Enemy_Stats load_database; end
- def self.load_database
- load_database_PSPDS_Enemy_Stats
- load_notetags_PSPDS_Enemy_Stats
- end
- def self.load_notetags_PSPDS_Enemy_Stats
- groups = [$data_enemies]
- for group in groups
- for obj in group
- next if obj.nil?
- obj.load_notetags_PSPDS_Enemy_Stats
- end
- end
- end
- end # DataManager
- #==============================================================================
- module BattleManager
- #==============================================================================
- class <<self; alias battlemanager_display_exp_ptsandatti display_exp; end
- def self.display_exp
- battlemanager_display_exp_ptsandatti
- gain_pts
- end
- def self.gain_pts
- amount = $game_troop.pts_total
- fmt = DPB::PSPDS::GAINED_POINTS_MESSAGE
- if $game_troop.pts_total >= 1
- for member in $game_party.members
- member.gain_lvl_pts(amount)
- value = $game_troop.pts_total
- $game_message.add('\.' + sprintf(fmt, member.name, value, DPB::PSPDS::LVLUPPTSVOCAB))
- end
- wait_for_message
- end
- end
- end # BattleManager
- #==============================================================================
- class RPG::Enemy < RPG::BaseItem
- #==============================================================================
- attr_accessor :dpbzparams
- attr_accessor :xparams
- attr_accessor :sparams
- attr_accessor :pts_gain
- def load_notetags_PSPDS_Enemy_Stats
- @dpbzparams = [0] * 4
- @xparams = [0] * 10
- @sparams = [0] * 10
- @pts_gain = 0
- self.note.split(/[\r\n]+/).each { |line|
- case line
- when DPB::REGEXP::EQUIPITEM::INC_VIT
- @dpbzparams[0] += $1.to_i
- @params[0] += (DPB::PSPDS::OPTION_1_MaxHP_GAIN * $1.to_i)
- @params[1] += (DPB::PSPDS::OPTION_1_MaxMP_GAIN * $1.to_i)
- @params[2] += (DPB::PSPDS::OPTION_1_ATK_GAIN * $1.to_i)
- @params[3] += (DPB::PSPDS::OPTION_1_DEF_GAIN * $1.to_i)
- @params[4] += (DPB::PSPDS::OPTION_1_MAT_GAIN * $1.to_i)
- @params[5] += (DPB::PSPDS::OPTION_1_MDF_GAIN * $1.to_i)
- @params[6] += (DPB::PSPDS::OPTION_1_AGI_GAIN * $1.to_i)
- @params[7] += (DPB::PSPDS::OPTION_1_LUK_GAIN * $1.to_i)
- #x's
- @xparams[0] += (DPB::PSPDS::OPTION_1_HIT_GAIN * $1.to_i)
- @xparams[1] += (DPB::PSPDS::OPTION_1_EVA_GAIN * $1.to_i)
- @xparams[2] += (DPB::PSPDS::OPTION_1_CRI_GAIN * $1.to_i)
- @xparams[3] += (DPB::PSPDS::OPTION_1_CEV_GAIN * $1.to_i)
- @xparams[4] += (DPB::PSPDS::OPTION_1_MEV_GAIN * $1.to_i)
- @xparams[5] += (DPB::PSPDS::OPTION_1_MRF_GAIN * $1.to_i)
- @xparams[6] += (DPB::PSPDS::OPTION_1_CNT_GAIN * $1.to_i)
- @xparams[7] += (DPB::PSPDS::OPTION_1_HRG_GAIN * $1.to_i)
- @xparams[8] += (DPB::PSPDS::OPTION_1_MRG_GAIN * $1.to_i)
- @xparams[9] += (DPB::PSPDS::OPTION_1_TRG_GAIN * $1.to_i)
- #s's
- @sparams[0] += (DPB::PSPDS::OPTION_1_TGR_GAIN * $1.to_i)
- @sparams[1] += (DPB::PSPDS::OPTION_1_GRD_GAIN * $1.to_i)
- @sparams[2] += (DPB::PSPDS::OPTION_1_REC_GAIN * $1.to_i)
- @sparams[3] += (DPB::PSPDS::OPTION_1_PHA_GAIN * $1.to_i)
- @sparams[4] += (DPB::PSPDS::OPTION_1_MCR_GAIN * $1.to_i)
- @sparams[5] += (DPB::PSPDS::OPTION_1_TCR_GAIN * $1.to_i)
- @sparams[6] += (DPB::PSPDS::OPTION_1_PDR_GAIN * $1.to_i)
- @sparams[7] += (DPB::PSPDS::OPTION_1_MDR_GAIN * $1.to_i)
- @sparams[8] += (DPB::PSPDS::OPTION_1_FDR_GAIN * $1.to_i)
- @sparams[9] += (DPB::PSPDS::OPTION_1_EXR_GAIN * $1.to_i)
- when DPB::REGEXP::EQUIPITEM::INC_STR
- @dpbzparams[1] += $1.to_i
- @params[0] += (DPB::PSPDS::OPTION_2_MaxHP_GAIN * $1.to_i)
- @params[1] += (DPB::PSPDS::OPTION_2_MaxMP_GAIN * $1.to_i)
- @params[2] += (DPB::PSPDS::OPTION_2_ATK_GAIN * $1.to_i)
- @params[3] += (DPB::PSPDS::OPTION_2_DEF_GAIN * $1.to_i)
- @params[4] += (DPB::PSPDS::OPTION_2_MAT_GAIN * $1.to_i)
- @params[5] += (DPB::PSPDS::OPTION_2_MDF_GAIN * $1.to_i)
- @params[6] += (DPB::PSPDS::OPTION_2_AGI_GAIN * $1.to_i)
- @params[7] += (DPB::PSPDS::OPTION_2_LUK_GAIN * $1.to_i)
- #x's
- @xparams[0] += (DPB::PSPDS::OPTION_2_HIT_GAIN * $1.to_i)
- @xparams[1] += (DPB::PSPDS::OPTION_2_EVA_GAIN * $1.to_i)
- @xparams[2] += (DPB::PSPDS::OPTION_2_CRI_GAIN * $1.to_i)
- @xparams[3] += (DPB::PSPDS::OPTION_2_CEV_GAIN * $1.to_i)
- @xparams[4] += (DPB::PSPDS::OPTION_2_MEV_GAIN * $1.to_i)
- @xparams[5] += (DPB::PSPDS::OPTION_2_MRF_GAIN * $1.to_i)
- @xparams[6] += (DPB::PSPDS::OPTION_2_CNT_GAIN * $1.to_i)
- @xparams[7] += (DPB::PSPDS::OPTION_2_HRG_GAIN * $1.to_i)
- @xparams[8] += (DPB::PSPDS::OPTION_2_MRG_GAIN * $1.to_i)
- @xparams[9] += (DPB::PSPDS::OPTION_2_TRG_GAIN * $1.to_i)
- #s's
- @sparams[0] += (DPB::PSPDS::OPTION_2_TGR_GAIN * $1.to_i)
- @sparams[1] += (DPB::PSPDS::OPTION_2_GRD_GAIN * $1.to_i)
- @sparams[2] += (DPB::PSPDS::OPTION_2_REC_GAIN * $1.to_i)
- @sparams[3] += (DPB::PSPDS::OPTION_2_PHA_GAIN * $1.to_i)
- @sparams[4] += (DPB::PSPDS::OPTION_2_MCR_GAIN * $1.to_i)
- @sparams[5] += (DPB::PSPDS::OPTION_2_TCR_GAIN * $1.to_i)
- @sparams[6] += (DPB::PSPDS::OPTION_2_PDR_GAIN * $1.to_i)
- @sparams[7] += (DPB::PSPDS::OPTION_2_MDR_GAIN * $1.to_i)
- @sparams[8] += (DPB::PSPDS::OPTION_2_FDR_GAIN * $1.to_i)
- @sparams[9] += (DPB::PSPDS::OPTION_2_EXR_GAIN * $1.to_i)
- when DPB::REGEXP::EQUIPITEM::INC_DEX
- @dpbzparams[2] += $1.to_i
- @params[0] += (DPB::PSPDS::OPTION_3_MaxHP_GAIN * $1.to_i)
- @params[1] += (DPB::PSPDS::OPTION_3_MaxMP_GAIN * $1.to_i)
- @params[2] += (DPB::PSPDS::OPTION_3_ATK_GAIN * $1.to_i)
- @params[3] += (DPB::PSPDS::OPTION_3_DEF_GAIN * $1.to_i)
- @params[4] += (DPB::PSPDS::OPTION_3_MAT_GAIN * $1.to_i)
- @params[5] += (DPB::PSPDS::OPTION_3_MDF_GAIN * $1.to_i)
- @params[6] += (DPB::PSPDS::OPTION_3_AGI_GAIN * $1.to_i)
- @params[7] += (DPB::PSPDS::OPTION_3_LUK_GAIN * $1.to_i)
- #x's
- @xparams[0] += (DPB::PSPDS::OPTION_3_HIT_GAIN * $1.to_i)
- @xparams[1] += (DPB::PSPDS::OPTION_3_EVA_GAIN * $1.to_i)
- @xparams[2] += (DPB::PSPDS::OPTION_3_CRI_GAIN * $1.to_i)
- @xparams[3] += (DPB::PSPDS::OPTION_3_CEV_GAIN * $1.to_i)
- @xparams[4] += (DPB::PSPDS::OPTION_3_MEV_GAIN * $1.to_i)
- @xparams[5] += (DPB::PSPDS::OPTION_3_MRF_GAIN * $1.to_i)
- @xparams[6] += (DPB::PSPDS::OPTION_3_CNT_GAIN * $1.to_i)
- @xparams[7] += (DPB::PSPDS::OPTION_3_HRG_GAIN * $1.to_i)
- @xparams[8] += (DPB::PSPDS::OPTION_3_MRG_GAIN * $1.to_i)
- @xparams[9] += (DPB::PSPDS::OPTION_3_TRG_GAIN * $1.to_i)
- #s's
- @sparams[0] += (DPB::PSPDS::OPTION_3_TGR_GAIN * $1.to_i)
- @sparams[1] += (DPB::PSPDS::OPTION_3_GRD_GAIN * $1.to_i)
- @sparams[2] += (DPB::PSPDS::OPTION_3_REC_GAIN * $1.to_i)
- @sparams[3] += (DPB::PSPDS::OPTION_3_PHA_GAIN * $1.to_i)
- @sparams[4] += (DPB::PSPDS::OPTION_3_MCR_GAIN * $1.to_i)
- @sparams[5] += (DPB::PSPDS::OPTION_3_TCR_GAIN * $1.to_i)
- @sparams[6] += (DPB::PSPDS::OPTION_3_PDR_GAIN * $1.to_i)
- @sparams[7] += (DPB::PSPDS::OPTION_3_MDR_GAIN * $1.to_i)
- @sparams[8] += (DPB::PSPDS::OPTION_3_FDR_GAIN * $1.to_i)
- @sparams[9] += (DPB::PSPDS::OPTION_3_EXR_GAIN * $1.to_i)
- when DPB::REGEXP::EQUIPITEM::INC_MAG
- @dpbzparams[3] += $1.to_i
- @params[0] += (DPB::PSPDS::OPTION_4_MaxHP_GAIN * $1.to_i)
- @params[1] += (DPB::PSPDS::OPTION_4_MaxMP_GAIN * $1.to_i)
- @params[2] += (DPB::PSPDS::OPTION_4_ATK_GAIN * $1.to_i)
- @params[3] += (DPB::PSPDS::OPTION_4_DEF_GAIN * $1.to_i)
- @params[4] += (DPB::PSPDS::OPTION_4_MAT_GAIN * $1.to_i)
- @params[5] += (DPB::PSPDS::OPTION_4_MDF_GAIN * $1.to_i)
- @params[6] += (DPB::PSPDS::OPTION_4_AGI_GAIN * $1.to_i)
- @params[7] += (DPB::PSPDS::OPTION_4_LUK_GAIN * $1.to_i)
- #x's
- @xparams[0] += (DPB::PSPDS::OPTION_4_HIT_GAIN * $1.to_i)
- @xparams[1] += (DPB::PSPDS::OPTION_4_EVA_GAIN * $1.to_i)
- @xparams[2] += (DPB::PSPDS::OPTION_4_CRI_GAIN * $1.to_i)
- @xparams[3] += (DPB::PSPDS::OPTION_4_CEV_GAIN * $1.to_i)
- @xparams[4] += (DPB::PSPDS::OPTION_4_MEV_GAIN * $1.to_i)
- @xparams[5] += (DPB::PSPDS::OPTION_4_MRF_GAIN * $1.to_i)
- @xparams[6] += (DPB::PSPDS::OPTION_4_CNT_GAIN * $1.to_i)
- @xparams[7] += (DPB::PSPDS::OPTION_4_HRG_GAIN * $1.to_i)
- @xparams[8] += (DPB::PSPDS::OPTION_4_MRG_GAIN * $1.to_i)
- @xparams[9] += (DPB::PSPDS::OPTION_4_TRG_GAIN * $1.to_i)
- #s's
- @sparams[0] += (DPB::PSPDS::OPTION_4_TGR_GAIN * $1.to_i)
- @sparams[1] += (DPB::PSPDS::OPTION_4_GRD_GAIN * $1.to_i)
- @sparams[2] += (DPB::PSPDS::OPTION_4_REC_GAIN * $1.to_i)
- @sparams[3] += (DPB::PSPDS::OPTION_4_PHA_GAIN * $1.to_i)
- @sparams[4] += (DPB::PSPDS::OPTION_4_MCR_GAIN * $1.to_i)
- @sparams[5] += (DPB::PSPDS::OPTION_4_TCR_GAIN * $1.to_i)
- @sparams[6] += (DPB::PSPDS::OPTION_4_PDR_GAIN * $1.to_i)
- @sparams[7] += (DPB::PSPDS::OPTION_4_MDR_GAIN * $1.to_i)
- @sparams[8] += (DPB::PSPDS::OPTION_4_FDR_GAIN * $1.to_i)
- @sparams[9] += (DPB::PSPDS::OPTION_4_EXR_GAIN * $1.to_i)
- when DPB::REGEXP::ENEMY::PTS_GAIN
- @pts_gain = $1.to_i
- #---
- end
- } # self.note.split
- #---
- end
- end # RPG::Enemy
- #==============================================================================
- class Game_Enemy < Game_Battler
- #==============================================================================
- alias game_enemy_param_plus_PSPDS dpbzparam_plus
- def dpbzparam_plus(dpbzparam_id)
- n = game_enemy_param_plus_PSPDS(dpbzparam_id)
- n += enemy.dpbzparams[dpbzparam_id]
- return n
- end
- alias game_enemy_xparam_plus_PSPDS xparam_plus
- def xparam_plus(xparam_id)
- n = game_enemy_xparam_plus_PSPDS(xparam_id)
- n += enemy.xparams[xparam_id]
- return n
- end
- alias game_enemy_sparam_plus_PSPDS sparam_plus
- def sparam_plus(sparam_id)
- n = game_enemy_sparam_plus_PSPDS(sparam_id)
- n += enemy.sparams[sparam_id]
- return n
- end
- def pts
- return enemy.pts_gain
- end
- end # Game_Enemy
- #==============================================================================
- class Game_Troop < Game_Unit
- #==============================================================================
- def pts_total
- dead_members.inject(0) {|r, enemy| r += enemy.pts }
- end
- end # Game_Troop
- # $game_actors[ACTOR_ID].reduce_vit(VALUE)
- # $game_actors[ACTOR_ID].reduce_str(VALUE)
- # $game_actors[ACTOR_ID].reduce_dex(VALUE)
- # $game_actors[ACTOR_ID].reduce_mag(VALUE)
- #==============================================================================
- class Game_Actor < Game_Battler
- #==============================================================================
- def reduce_vit(value)
- value.times {||
- add_param(0, -(DPB::PSPDS::OPTION_1_MaxHP_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MaxHP_RAND_MIN, DPB::PSPDS::OP_1_MaxHP_RAND_MAX)))
- add_param(1, -(DPB::PSPDS::OPTION_1_MaxMP_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MaxMP_RAND_MIN, DPB::PSPDS::OP_1_MaxMP_RAND_MAX)))
- add_param(2, -(DPB::PSPDS::OPTION_1_ATK_GAIN + dpbz_randy(DPB::PSPDS::OP_1_ATK_RAND_MIN, DPB::PSPDS::OP_1_ATK_RAND_MAX)))
- add_param(3, -(DPB::PSPDS::OPTION_1_DEF_GAIN + dpbz_randy(DPB::PSPDS::OP_1_DEF_RAND_MIN, DPB::PSPDS::OP_1_DEF_RAND_MAX)))
- add_param(4, -(DPB::PSPDS::OPTION_1_MAT_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MAT_RAND_MIN, DPB::PSPDS::OP_1_MAT_RAND_MAX)))
- add_param(5, -(DPB::PSPDS::OPTION_1_MDF_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MDF_RAND_MIN, DPB::PSPDS::OP_1_MDF_RAND_MAX)))
- add_param(6, -(DPB::PSPDS::OPTION_1_AGI_GAIN + dpbz_randy(DPB::PSPDS::OP_1_AGI_RAND_MIN, DPB::PSPDS::OP_1_AGI_RAND_MAX)))
- add_param(7, -(DPB::PSPDS::OPTION_1_LUK_GAIN + dpbz_randy(DPB::PSPDS::OP_1_LUK_RAND_MIN, DPB::PSPDS::OP_1_LUK_RAND_MAX)))
- #x's
- add_xparam(0, -(DPB::PSPDS::OPTION_1_HIT_GAIN + dpbz_randy(DPB::PSPDS::OP_1_HIT_RAND_MIN, DPB::PSPDS::OP_1_HIT_RAND_MAX)))
- add_xparam(1, -(DPB::PSPDS::OPTION_1_EVA_GAIN + dpbz_randy(DPB::PSPDS::OP_1_EVA_RAND_MIN, DPB::PSPDS::OP_1_EVA_RAND_MAX)))
- add_xparam(2, -(DPB::PSPDS::OPTION_1_CRI_GAIN + dpbz_randy(DPB::PSPDS::OP_1_CRI_RAND_MIN, DPB::PSPDS::OP_1_CRI_RAND_MAX)))
- add_xparam(3, -(DPB::PSPDS::OPTION_1_CEV_GAIN + dpbz_randy(DPB::PSPDS::OP_1_CEV_RAND_MIN, DPB::PSPDS::OP_1_CEV_RAND_MAX)))
- add_xparam(4, -(DPB::PSPDS::OPTION_1_MEV_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MEV_RAND_MIN, DPB::PSPDS::OP_1_MEV_RAND_MAX)))
- add_xparam(5, -(DPB::PSPDS::OPTION_1_MRF_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MRF_RAND_MIN, DPB::PSPDS::OP_1_MRF_RAND_MAX)))
- add_xparam(6, -(DPB::PSPDS::OPTION_1_CNT_GAIN + dpbz_randy(DPB::PSPDS::OP_1_CNT_RAND_MIN, DPB::PSPDS::OP_1_CNT_RAND_MAX)))
- add_xparam(7, -(DPB::PSPDS::OPTION_1_HRG_GAIN + dpbz_randy(DPB::PSPDS::OP_1_HRG_RAND_MIN, DPB::PSPDS::OP_1_HRG_RAND_MAX)))
- add_xparam(8, -(DPB::PSPDS::OPTION_1_MRG_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MRG_RAND_MIN, DPB::PSPDS::OP_1_MRG_RAND_MAX)))
- add_xparam(9, -(DPB::PSPDS::OPTION_1_TRG_GAIN + dpbz_randy(DPB::PSPDS::OP_1_TRG_RAND_MIN, DPB::PSPDS::OP_1_TRG_RAND_MAX)))
- #s's
- add_sparam(0, -(DPB::PSPDS::OPTION_1_TGR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_TGR_RAND_MIN, DPB::PSPDS::OP_1_TGR_RAND_MAX)))
- add_sparam(1, -(DPB::PSPDS::OPTION_1_GRD_GAIN + dpbz_randy(DPB::PSPDS::OP_1_GRD_RAND_MIN, DPB::PSPDS::OP_1_GRD_RAND_MAX)))
- add_sparam(2, -(DPB::PSPDS::OPTION_1_REC_GAIN + dpbz_randy(DPB::PSPDS::OP_1_REC_RAND_MIN, DPB::PSPDS::OP_1_REC_RAND_MAX)))
- add_sparam(3, -(DPB::PSPDS::OPTION_1_PHA_GAIN + dpbz_randy(DPB::PSPDS::OP_1_PHA_RAND_MIN, DPB::PSPDS::OP_1_PHA_RAND_MAX)))
- add_sparam(4, -(DPB::PSPDS::OPTION_1_MCR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MCR_RAND_MIN, DPB::PSPDS::OP_1_MCR_RAND_MAX)))
- add_sparam(5, -(DPB::PSPDS::OPTION_1_TCR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_TCR_RAND_MIN, DPB::PSPDS::OP_1_TCR_RAND_MAX)))
- add_sparam(6, -(DPB::PSPDS::OPTION_1_PDR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_PDR_RAND_MIN, DPB::PSPDS::OP_1_PDR_RAND_MAX)))
- add_sparam(7, -(DPB::PSPDS::OPTION_1_MDR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MDR_RAND_MIN, DPB::PSPDS::OP_1_MDR_RAND_MAX)))
- add_sparam(8, -(DPB::PSPDS::OPTION_1_FDR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_FDR_RAND_MIN, DPB::PSPDS::OP_1_FDR_RAND_MAX)))
- add_sparam(9, -(DPB::PSPDS::OPTION_1_EXR_GAIN + dpbz_randy(DPB::PSPDS::OP_1_EXR_RAND_MIN, DPB::PSPDS::OP_1_EXR_RAND_MAX)))
- #dpbz'
- add_dpbzparam(0, -(1))
- }
- end
- def reduce_str(value)
- value.times{||
- #reg's
- add_param(0, -(DPB::PSPDS::OPTION_2_MaxHP_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MaxHP_RAND_MIN, DPB::PSPDS::OP_1_MaxHP_RAND_MAX)))
- add_param(1, -(DPB::PSPDS::OPTION_2_MaxMP_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MaxMP_RAND_MIN, DPB::PSPDS::OP_1_MaxMP_RAND_MAX)))
- add_param(2, -(DPB::PSPDS::OPTION_2_ATK_GAIN + dpbz_randy(DPB::PSPDS::OP_1_ATK_RAND_MIN, DPB::PSPDS::OP_1_ATK_RAND_MAX)))
- add_param(3, -(DPB::PSPDS::OPTION_2_DEF_GAIN + dpbz_randy(DPB::PSPDS::OP_1_DEF_RAND_MIN, DPB::PSPDS::OP_1_DEF_RAND_MAX)))
- add_param(4, -(DPB::PSPDS::OPTION_2_MAT_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MAT_RAND_MIN, DPB::PSPDS::OP_1_MAT_RAND_MAX)))
- add_param(5, -(DPB::PSPDS::OPTION_2_MDF_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MDF_RAND_MIN, DPB::PSPDS::OP_1_MDF_RAND_MAX)))
- add_param(6, -(DPB::PSPDS::OPTION_2_AGI_GAIN + dpbz_randy(DPB::PSPDS::OP_1_AGI_RAND_MIN, DPB::PSPDS::OP_1_AGI_RAND_MAX)))
- add_param(7, -(DPB::PSPDS::OPTION_2_LUK_GAIN + dpbz_randy(DPB::PSPDS::OP_1_LUK_RAND_MIN, DPB::PSPDS::OP_1_LUK_RAND_MAX)))
- #x's
- add_xparam(0, -(DPB::PSPDS::OPTION_2_HIT_GAIN + dpbz_randy(DPB::PSPDS::OP_1_HIT_RAND_MIN, DPB::PSPDS::OP_1_HIT_RAND_MAX)))
- add_xparam(1, -(DPB::PSPDS::OPTION_2_EVA_GAIN + dpbz_randy(DPB::PSPDS::OP_1_EVA_RAND_MIN, DPB::PSPDS::OP_1_EVA_RAND_MAX)))
- add_xparam(2, -(DPB::PSPDS::OPTION_2_CRI_GAIN + dpbz_randy(DPB::PSPDS::OP_1_CRI_RAND_MIN, DPB::PSPDS::OP_1_CRI_RAND_MAX)))
- add_xparam(3, -(DPB::PSPDS::OPTION_2_CEV_GAIN + dpbz_randy(DPB::PSPDS::OP_1_CEV_RAND_MIN, DPB::PSPDS::OP_1_CEV_RAND_MAX)))
- add_xparam(4, -(DPB::PSPDS::OPTION_2_MEV_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MEV_RAND_MIN, DPB::PSPDS::OP_1_MEV_RAND_MAX)))
- add_xparam(5, -(DPB::PSPDS::OPTION_2_MRF_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MRF_RAND_MIN, DPB::PSPDS::OP_1_MRF_RAND_MAX)))
- add_xparam(6, -(DPB::PSPDS::OPTION_2_CNT_GAIN + dpbz_randy(DPB::PSPDS::OP_1_CNT_RAND_MIN, DPB::PSPDS::OP_1_CNT_RAND_MAX)))
- add_xparam(7, -(DPB::PSPDS::OPTION_2_HRG_GAIN + dpbz_randy(DPB::PSPDS::OP_1_HRG_RAND_MIN, DPB::PSPDS::OP_1_HRG_RAND_MAX)))
- add_xparam(8, -(DPB::PSPDS::OPTION_2_MRG_GAIN + dpbz_randy(DPB::PSPDS::OP_1_MRG_RAND_MIN, DPB::PSPDS::OP_1_MRG_RAND_MAX)))
- add_xparam(9, -(DPB::PSPDS::OPTION_2_TRG_GAIN + dpbz_randy(DPB::PSPDS::OP_1_TRG_RAND_MIN, DPB::PSPDS::OP_1_TRG_RAND_MAX)))
- #s's
- add_sparam(0, -(DPB::PSPDS::OPTION_2_TGR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_TGR_RAND_MIN, DPB::PSPDS::OP_2_TGR_RAND_MAX)))
- add_sparam(1, -(DPB::PSPDS::OPTION_2_GRD_GAIN + dpbz_randy(DPB::PSPDS::OP_2_GRD_RAND_MIN, DPB::PSPDS::OP_2_GRD_RAND_MAX)))
- add_sparam(2, -(DPB::PSPDS::OPTION_2_REC_GAIN + dpbz_randy(DPB::PSPDS::OP_2_REC_RAND_MIN, DPB::PSPDS::OP_2_REC_RAND_MAX)))
- add_sparam(3, -(DPB::PSPDS::OPTION_2_PHA_GAIN + dpbz_randy(DPB::PSPDS::OP_2_PHA_RAND_MIN, DPB::PSPDS::OP_2_PHA_RAND_MAX)))
- add_sparam(4, -(DPB::PSPDS::OPTION_2_MCR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_MCR_RAND_MIN, DPB::PSPDS::OP_2_MCR_RAND_MAX)))
- add_sparam(5, -(DPB::PSPDS::OPTION_2_TCR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_TCR_RAND_MIN, DPB::PSPDS::OP_2_TCR_RAND_MAX)))
- add_sparam(6, -(DPB::PSPDS::OPTION_2_PDR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_PDR_RAND_MIN, DPB::PSPDS::OP_2_PDR_RAND_MAX)))
- add_sparam(7, -(DPB::PSPDS::OPTION_2_MDR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_MDR_RAND_MIN, DPB::PSPDS::OP_2_MDR_RAND_MAX)))
- add_sparam(8, -(DPB::PSPDS::OPTION_2_FDR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_FDR_RAND_MIN, DPB::PSPDS::OP_2_FDR_RAND_MAX)))
- add_sparam(9, -(DPB::PSPDS::OPTION_2_EXR_GAIN + dpbz_randy(DPB::PSPDS::OP_2_EXR_RAND_MIN, DPB::PSPDS::OP_2_EXR_RAND_MAX)))
- #dpbz'
- add_dpbzparam(1, -(1))
- }
- end
- def reduce_dex(value)
- value.times{||
- #reg's
- add_param(0, -(DPB::PSPDS::OPTION_3_MaxHP_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MaxHP_RAND_MIN, DPB::PSPDS::OP_1_MaxHP_RAND_MAX)))
- add_param(1, -(DPB::PSPDS::OPTION_3_MaxMP_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MaxMP_RAND_MIN, DPB::PSPDS::OP_1_MaxMP_RAND_MAX)))
- add_param(2, -(DPB::PSPDS::OPTION_3_ATK_GAIN + dpbz_randy(DPB::PSPDS::OP_3_ATK_RAND_MIN, DPB::PSPDS::OP_3_ATK_RAND_MAX)))
- add_param(3, -(DPB::PSPDS::OPTION_3_DEF_GAIN + dpbz_randy(DPB::PSPDS::OP_3_DEF_RAND_MIN, DPB::PSPDS::OP_3_DEF_RAND_MAX)))
- add_param(4, -(DPB::PSPDS::OPTION_3_MAT_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MAT_RAND_MIN, DPB::PSPDS::OP_3_MAT_RAND_MAX)))
- add_param(5, -(DPB::PSPDS::OPTION_3_MDF_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MDF_RAND_MIN, DPB::PSPDS::OP_3_MDF_RAND_MAX)))
- add_param(6, -(DPB::PSPDS::OPTION_3_AGI_GAIN + dpbz_randy(DPB::PSPDS::OP_3_AGI_RAND_MIN, DPB::PSPDS::OP_3_AGI_RAND_MAX)))
- add_param(7, -(DPB::PSPDS::OPTION_3_LUK_GAIN + dpbz_randy(DPB::PSPDS::OP_3_LUK_RAND_MIN, DPB::PSPDS::OP_3_LUK_RAND_MAX)))
- #x's
- add_xparam(0, -(DPB::PSPDS::OPTION_3_HIT_GAIN + dpbz_randy(DPB::PSPDS::OP_3_HIT_RAND_MIN, DPB::PSPDS::OP_3_HIT_RAND_MAX)))
- add_xparam(1, -(DPB::PSPDS::OPTION_3_EVA_GAIN + dpbz_randy(DPB::PSPDS::OP_3_EVA_RAND_MIN, DPB::PSPDS::OP_3_EVA_RAND_MAX)))
- add_xparam(2, -(DPB::PSPDS::OPTION_3_CRI_GAIN + dpbz_randy(DPB::PSPDS::OP_3_CRI_RAND_MIN, DPB::PSPDS::OP_3_CRI_RAND_MAX)))
- add_xparam(3, -(DPB::PSPDS::OPTION_3_CEV_GAIN + dpbz_randy(DPB::PSPDS::OP_3_CEV_RAND_MIN, DPB::PSPDS::OP_3_CEV_RAND_MAX)))
- add_xparam(4, -(DPB::PSPDS::OPTION_3_MEV_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MEV_RAND_MIN, DPB::PSPDS::OP_3_MEV_RAND_MAX)))
- add_xparam(5, -(DPB::PSPDS::OPTION_3_MRF_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MRF_RAND_MIN, DPB::PSPDS::OP_3_MRF_RAND_MAX)))
- add_xparam(6, -(DPB::PSPDS::OPTION_3_CNT_GAIN + dpbz_randy(DPB::PSPDS::OP_3_CNT_RAND_MIN, DPB::PSPDS::OP_3_CNT_RAND_MAX)))
- add_xparam(7, -(DPB::PSPDS::OPTION_3_HRG_GAIN + dpbz_randy(DPB::PSPDS::OP_3_HRG_RAND_MIN, DPB::PSPDS::OP_3_HRG_RAND_MAX)))
- add_xparam(8, -(DPB::PSPDS::OPTION_3_MRG_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MRG_RAND_MIN, DPB::PSPDS::OP_3_MRG_RAND_MAX)))
- add_xparam(9, -(DPB::PSPDS::OPTION_3_TRG_GAIN + dpbz_randy(DPB::PSPDS::OP_3_TRG_RAND_MIN, DPB::PSPDS::OP_3_TRG_RAND_MAX)))
- #s's
- add_sparam(0, -(DPB::PSPDS::OPTION_3_TGR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_TGR_RAND_MIN, DPB::PSPDS::OP_3_TGR_RAND_MAX)))
- add_sparam(1, -(DPB::PSPDS::OPTION_3_GRD_GAIN + dpbz_randy(DPB::PSPDS::OP_3_GRD_RAND_MIN, DPB::PSPDS::OP_3_GRD_RAND_MAX)))
- add_sparam(2, -(DPB::PSPDS::OPTION_3_REC_GAIN + dpbz_randy(DPB::PSPDS::OP_3_REC_RAND_MIN, DPB::PSPDS::OP_3_REC_RAND_MAX)))
- add_sparam(3, -(DPB::PSPDS::OPTION_3_PHA_GAIN + dpbz_randy(DPB::PSPDS::OP_3_PHA_RAND_MIN, DPB::PSPDS::OP_3_PHA_RAND_MAX)))
- add_sparam(4, -(DPB::PSPDS::OPTION_3_MCR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MCR_RAND_MIN, DPB::PSPDS::OP_3_MCR_RAND_MAX)))
- add_sparam(5, -(DPB::PSPDS::OPTION_3_TCR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_TCR_RAND_MIN, DPB::PSPDS::OP_3_TCR_RAND_MAX)))
- add_sparam(6, -(DPB::PSPDS::OPTION_3_PDR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_PDR_RAND_MIN, DPB::PSPDS::OP_3_PDR_RAND_MAX)))
- add_sparam(7, -(DPB::PSPDS::OPTION_3_MDR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_MDR_RAND_MIN, DPB::PSPDS::OP_3_MDR_RAND_MAX)))
- add_sparam(8, -(DPB::PSPDS::OPTION_3_FDR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_FDR_RAND_MIN, DPB::PSPDS::OP_3_FDR_RAND_MAX)))
- add_sparam(9, -(DPB::PSPDS::OPTION_3_EXR_GAIN + dpbz_randy(DPB::PSPDS::OP_3_EXR_RAND_MIN, DPB::PSPDS::OP_3_EXR_RAND_MAX)))
- #dpbz'
- add_dpbzparam(2, -(1))
- }
- end
- def reduce_mag(value)
- value.times{||
- #reg's
- add_param(0, -(DPB::PSPDS::OPTION_4_MaxHP_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MaxHP_RAND_MIN, DPB::PSPDS::OP_4_MaxHP_RAND_MAX)))
- add_param(1, -(DPB::PSPDS::OPTION_4_MaxMP_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MaxMP_RAND_MIN, DPB::PSPDS::OP_4_MaxMP_RAND_MAX)))
- add_param(2, -(DPB::PSPDS::OPTION_4_ATK_GAIN + dpbz_randy(DPB::PSPDS::OP_4_ATK_RAND_MIN, DPB::PSPDS::OP_4_ATK_RAND_MAX)))
- add_param(3, -(DPB::PSPDS::OPTION_4_DEF_GAIN + dpbz_randy(DPB::PSPDS::OP_4_DEF_RAND_MIN, DPB::PSPDS::OP_4_DEF_RAND_MAX)))
- add_param(4, -(DPB::PSPDS::OPTION_4_MAT_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MAT_RAND_MIN, DPB::PSPDS::OP_4_MAT_RAND_MAX)))
- add_param(5, -(DPB::PSPDS::OPTION_4_MDF_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MDF_RAND_MIN, DPB::PSPDS::OP_4_MDF_RAND_MAX)))
- add_param(6, -(DPB::PSPDS::OPTION_4_AGI_GAIN + dpbz_randy(DPB::PSPDS::OP_4_AGI_RAND_MIN, DPB::PSPDS::OP_4_AGI_RAND_MAX)))
- add_param(7, -(DPB::PSPDS::OPTION_4_LUK_GAIN + dpbz_randy(DPB::PSPDS::OP_4_LUK_RAND_MIN, DPB::PSPDS::OP_4_LUK_RAND_MAX)))
- #x's
- add_xparam(0, -(DPB::PSPDS::OPTION_4_HIT_GAIN + dpbz_randy(DPB::PSPDS::OP_4_HIT_RAND_MIN, DPB::PSPDS::OP_4_HIT_RAND_MAX)))
- add_xparam(1, -(DPB::PSPDS::OPTION_4_EVA_GAIN + dpbz_randy(DPB::PSPDS::OP_4_EVA_RAND_MIN, DPB::PSPDS::OP_4_EVA_RAND_MAX)))
- add_xparam(2, -(DPB::PSPDS::OPTION_4_CRI_GAIN + dpbz_randy(DPB::PSPDS::OP_4_CRI_RAND_MIN, DPB::PSPDS::OP_4_CRI_RAND_MAX)))
- add_xparam(3, -(DPB::PSPDS::OPTION_4_CEV_GAIN + dpbz_randy(DPB::PSPDS::OP_4_CEV_RAND_MIN, DPB::PSPDS::OP_4_CEV_RAND_MAX)))
- add_xparam(4, -(DPB::PSPDS::OPTION_4_MEV_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MEV_RAND_MIN, DPB::PSPDS::OP_4_MEV_RAND_MAX)))
- add_xparam(5, -(DPB::PSPDS::OPTION_4_MRF_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MRF_RAND_MIN, DPB::PSPDS::OP_4_MRF_RAND_MAX)))
- add_xparam(6, -(DPB::PSPDS::OPTION_4_CNT_GAIN + dpbz_randy(DPB::PSPDS::OP_4_CNT_RAND_MIN, DPB::PSPDS::OP_4_CNT_RAND_MAX)))
- add_xparam(7, -(DPB::PSPDS::OPTION_4_HRG_GAIN + dpbz_randy(DPB::PSPDS::OP_4_HRG_RAND_MIN, DPB::PSPDS::OP_4_HRG_RAND_MAX)))
- add_xparam(8, -(DPB::PSPDS::OPTION_4_MRG_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MRG_RAND_MIN, DPB::PSPDS::OP_4_MRG_RAND_MAX)))
- add_xparam(9, -(DPB::PSPDS::OPTION_4_TRG_GAIN + dpbz_randy(DPB::PSPDS::OP_4_TRG_RAND_MIN, DPB::PSPDS::OP_4_TRG_RAND_MAX)))
- #s's
- add_sparam(0, -(DPB::PSPDS::OPTION_4_TGR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_TGR_RAND_MIN, DPB::PSPDS::OP_4_TGR_RAND_MAX)))
- add_sparam(1, -(DPB::PSPDS::OPTION_4_GRD_GAIN + dpbz_randy(DPB::PSPDS::OP_4_GRD_RAND_MIN, DPB::PSPDS::OP_4_GRD_RAND_MAX)))
- add_sparam(2, -(DPB::PSPDS::OPTION_4_REC_GAIN + dpbz_randy(DPB::PSPDS::OP_4_REC_RAND_MIN, DPB::PSPDS::OP_4_REC_RAND_MAX)))
- add_sparam(3, -(DPB::PSPDS::OPTION_4_PHA_GAIN + dpbz_randy(DPB::PSPDS::OP_4_PHA_RAND_MIN, DPB::PSPDS::OP_4_PHA_RAND_MAX)))
- add_sparam(4, -(DPB::PSPDS::OPTION_4_MCR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MCR_RAND_MIN, DPB::PSPDS::OP_4_MCR_RAND_MAX)))
- add_sparam(5, -(DPB::PSPDS::OPTION_4_TCR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_TCR_RAND_MIN, DPB::PSPDS::OP_4_TCR_RAND_MAX)))
- add_sparam(6, -(DPB::PSPDS::OPTION_4_PDR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_PDR_RAND_MIN, DPB::PSPDS::OP_4_PDR_RAND_MAX)))
- add_sparam(7, -(DPB::PSPDS::OPTION_4_MDR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_MDR_RAND_MIN, DPB::PSPDS::OP_4_MDR_RAND_MAX)))
- add_sparam(8, -(DPB::PSPDS::OPTION_4_FDR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_FDR_RAND_MIN, DPB::PSPDS::OP_4_FDR_RAND_MAX)))
- add_sparam(9, -(DPB::PSPDS::OPTION_4_EXR_GAIN + dpbz_randy(DPB::PSPDS::OP_4_EXR_RAND_MIN, DPB::PSPDS::OP_4_EXR_RAND_MAX)))
- #dpbz'
- add_dpbzparam(3, -(1))
- }
- end
- end # Game_Actor
- #===============================================================================#
- # #
- # PSPDS #
- # (Perfect Stat Point Distribution System) #
- # - SCRIPT END - #
- # #
- #===============================================================================#
- # http://dekitarpg.wordpress.com/
- #===============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement