Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin =========================================================================
- Dekita's v1.0
- ★ Perfect Series info CORE™ ★
- ================================================================================
- Script Information:
- ====================
- This is quite simply a script to hold all the methods for drawing information
- This script doesnt alias or overwrite any default methods.
- You should place this above all other Dekita scripts.
- You can set the customisation options however you want, but i highly reccomend
- you do NOT change anything below the customisation, as it is very likley to
- change, and you would have to redo your modifications ^_^
- ================================================================================
- ★☆★☆★☆★☆★☆★☆★☆★ 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
- 11/10/2o12 - Started Script,
- ================================================================================
- Credit and Thanks to :
- =======================
- Tsukihime - for a better method to check items features.
- ================================================================================
- Known Bugs:
- ============
- N/A
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- 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.
- Place this script above all other Dekita scripts.
- =end #==========================================================================
- module Dekita__CORE
- #######################
- # Customisation Begin #
- #######################
- N_A_Vocab = "N/A"
- # Draw Gauges ?
- Draw_Param_Gauges = true
- Draw_x_Param_Gauges = true
- Draw_s_Param_Gauges = true
- Draw_Element_Gauges = true
- Draw_Status_Gauges = true
- # Draw Icons ?
- Draw_Param_Icons = true
- Draw_x_Param_Icons = true
- Draw_s_Param_Icons = true
- Draw_Element_Icons = true
- Draw_Status_Icons = true
- # // General Info
- # Name Settings
- Name_Vocab = "Name"
- Name_Icon = 7122
- Draw_Name_Icon = true
- Nickname_Vocab = "Nickname"
- Nickname_Icon = 1750
- Draw_Nickname_Icon = true
- Class_Vocab = "Class"
- Class_Icon = 9004
- Draw_Class_Icon = true
- Level_Vocab = "Level"
- Level_Icon = 4
- Draw_Level_Icon = true
- Exp_Total_Icon = 5
- Draw_Exp_Total_Icon = true
- Exp_To_Next_Icon = 6
- Draw_Exp_To_Next_Icon = true
- Empty_Gauge_Color = Color.new(0, 0, 0, 125)
- Background_Color = Color.new(0, 0, 0, 75)
- # Gauge Height
- Gauge_Height = 4
- # Draw Icons ?
- Draw_Icons = true
- # Dull Icons ?
- Dull_Icons = false
- # This string is shown in between "min" & "max" values
- Seperator = " - "
- # This one is only shown for current / max Values
- Seperator2 = " / "
- # This is the variance for atk, def, mat, mdf, agi & luk
- # if this is 0.10 it will show a 20% variance between
- # the stat. (your real param is the average)
- Variance = 0.10
- Info_Font_Size = 16
- ##########
- # Params #
- ##########
- # MaxHP Settings
- MHP_Vocab = "Health"
- MHP_Icon = 9181
- MHP_Color_1 = Color.new(0, 50, 0, 100)
- MHP_Color_2 = Color.new(0, 255, 0, 150)
- # MaxMP Settings
- MMP_Vocab = "Will"
- MMP_Icon = 9023
- MMP_Color_1 = Color.new(0, 0, 50)
- MMP_Color_2 = Color.new(0, 0, 255)
- # TP Settings
- TP_Vocab = "Rage"
- TP_Icon = 9487#741
- TP_Color_1 = Color.new(50, 0, 0)
- TP_Color_2 = Color.new(255, 0, 0)
- Draw_TP_Gauge = true
- Draw_TP_Icon = true
- # Attack Settings
- ATK_Vocab = "Attack"
- ATK_Icon = 8811
- ATK_Color_1 = Color.new(30, 15, 0)
- ATK_Color_2 = Color.new(255, 100, 0)
- # Defence Settings
- DEF_Vocab = "Defence"
- DEF_Icon = 9886
- DEF_Color_1 = Color.new(15, 10, 0)
- DEF_Color_2 = Color.new(165, 105, 0)
- # Magic Attack Settings
- MAT_Vocab = "Mag Atk"
- MAT_Icon = 9085
- MAT_Color_1 = Color.new(0, 30, 30)
- MAT_Color_2 = Color.new(0, 150, 255)
- # Magic Defence Settings
- MDF_Vocab = "Mag Def"
- MDF_Icon = 9397
- MDF_Color_1 = Color.new(15, 15, 30)
- MDF_Color_2 = Color.new(220, 130, 200)
- # Agility Settings
- AGI_Vocab = "Agility"
- AGI_Icon = 9169
- AGI_Color_1 = Color.new( 15, 40, 10)
- AGI_Color_2 = Color.new(120, 200, 120)
- # Luck Settings
- LUK_Vocab = "Luck"
- LUK_Icon = 9861
- LUK_Color_1 = Color.new(50, 50, 0)
- LUK_Color_2 = Color.new(255, 255, 0)
- ############
- # x-Params #
- ############
- # Hit / Accuracy Rate
- HIT_Vocab = "Accuracy"
- HIT_Icon = 9927
- HIT_Color_1 = Color.new(55, 40, 10)
- HIT_Color_2 = Color.new(255, 250, 200)
- # Evasion Rate
- EVA_Vocab = "Evasion"
- EVA_Icon = 9757
- EVA_Color_1 = Color.new(0, 40, 10)
- EVA_Color_2 = Color.new(0, 250, 200)
- # Critical Hit Rate
- CRI_Vocab = "Critical"
- CRI_Icon = 9454
- CRI_Color_1 = Color.new(55, 0, 0)
- CRI_Color_2 = Color.new(255, 80, 40)
- # Critical Evasion Rate
- CEV_Vocab = "Crit Eva"
- CEV_Icon = 9024
- CEV_Color_1 = Color.new(0, 0, 55)
- CEV_Color_2 = Color.new(40, 80, 255)
- # Magical Evasion Rate
- MEV_Vocab = "Mag Eva"
- MEV_Icon = 9672
- MEV_Color_1 = Color.new(55, 0, 10)
- MEV_Color_2 = Color.new(255, 50, 200)
- # Magic Reflection Rate
- MRF_Vocab = "Mag Reflect"
- MRF_Icon = 9773
- MRF_Color_1 = Color.new(0, 0, 50)
- MRF_Color_2 = Color.new(0, 150, 255)
- # Counter Rate
- CNT_Vocab = "Counter"
- CNT_Icon = 9587
- CNT_Color_1 = Color.new(0, 0, 0)
- CNT_Color_2 = Color.new(200, 0, 50)
- # HP Regeneration Rate
- HRG_Vocab = "HP Regen Rate"
- HRG_Icon = 8919
- HRG_Color_1 = Color.new(0, 20, 0)
- HRG_Color_2 = Color.new(0, 160, 0)
- # MP Regeneration Rate
- MRG_Vocab = "MP Regen Rate"
- MRG_Icon = 9138
- MRG_Color_1 = Color.new(0, 0, 20)
- MRG_Color_2 = Color.new(0, 0, 160)
- # TP Regeneration Rate
- TRG_Vocab = "TP Regen Rate"
- TRG_Icon = 9519
- TRG_Color_1 = Color.new(20, 0, 0)
- TRG_Color_2 = Color.new(160, 0, 0)
- ############
- # s-Params #
- ############
- # Target Rate (Aggro)
- TGR_Vocab = "Aggro Rate"
- TGR_Icon = 9574
- TGR_Color_1 = Color.new(50, 0, 5)
- TGR_Color_2 = Color.new(255, 0, 50)
- # Guard Rate
- GRD_Vocab = "Guard Rate"
- GRD_Icon = 10024
- GRD_Color_1 = Color.new(10, 10, 10)
- GRD_Color_2 = Color.new(125, 125, 125)
- # Recovery Rate
- REC_Vocab = "Recovery"
- REC_Icon = 8698
- REC_Color_1 = Color.new(15, 15, 15)
- REC_Color_2 = Color.new(255, 255, 255)
- # Pharmacology Rate
- PHA_Vocab = "Pharmacology"
- PHA_Icon = 8691
- PHA_Color_1 = Color.new(10, 10, 10)
- PHA_Color_2 = Color.new(125, 125, 200)
- # MP Cost Rate
- MCR_Vocab = "MP Cost Rate"
- MCR_Icon = 9109
- MCR_Color_1 = Color.new(0, 0, 40)
- MCR_Color_2 = Color.new(5, 0, 200)
- # TP Charge Rate
- TCR_Vocab = "TP Charge Rate"
- TCR_Icon = 9499
- TCR_Color_1 = Color.new(40, 0, 10)
- TCR_Color_2 = Color.new(255, 0, 40)
- # Physical Defence Rate
- PDR_Vocab = "Phys Def Rate"
- PDR_Icon = 9871
- PDR_Color_1 = Color.new(45, 22, 0)
- PDR_Color_2 = Color.new(140, 110, 0)
- # Magical Defence Rate
- MDR_Vocab = "Mag Def Rate"
- MDR_Icon = 9620
- MDR_Color_1 = Color.new(30, 0, 20)
- MDR_Color_2 = Color.new(255, 0, 200)
- # Floor Damage Rate
- FDR_Vocab = "Floor Dmg Rate"
- FDR_Icon = 9708
- FDR_Color_1 = Color.new(20, 0, 20)
- FDR_Color_2 = Color.new(160, 0, 60)
- # Experience Rate
- EXR_Vocab = "Exp Rate"
- EXR_Icon = 9272
- EXR_Color_1 = Color.new(0, 20, 0)
- EXR_Color_2 = Color.new(0, 200, 0)
- ####################
- # Element Settings #
- ####################
- # Element slot 1 info
- Element_Slot_1_id = 3
- Element_Slot_1_Icon = 96
- Element_Slot_1_Color_1 = Color.new(50, 0, 0)
- Element_Slot_1_Color_2 = Color.new(255, 250, 200)
- Attack_Element_Slot_1_Color_1 = Color.new(255, 250, 200)
- Attack_Element_Slot_1_Color_2 = Color.new(50, 0, 0)
- # Element slot 2 info
- Element_Slot_2_id = 4
- Element_Slot_2_Icon = 97
- Element_Slot_2_Color_1 = Color.new(0, 0, 50)
- Element_Slot_2_Color_2 = Color.new(200, 250, 255)
- Attack_Element_Slot_2_Color_1 = Color.new(200, 250, 255)
- Attack_Element_Slot_2_Color_2 = Color.new(0, 0, 50)
- # Element slot 3 info
- Element_Slot_3_id = 5
- Element_Slot_3_Icon = 98
- Element_Slot_3_Color_1 = Color.new(55, 55, 0)
- Element_Slot_3_Color_2 = Color.new(255, 255, 200)
- Attack_Element_Slot_3_Color_1 = Color.new(255, 255, 200)
- Attack_Element_Slot_3_Color_2 = Color.new(55, 55, 0)
- # Element slot 4 info
- Element_Slot_4_id = 6
- Element_Slot_4_Icon = 99
- Element_Slot_4_Color_1 = Color.new(0, 0, 100)
- Element_Slot_4_Color_2 = Color.new(150, 150, 200)
- Attack_Element_Slot_4_Color_1 = Color.new(150, 150, 200)
- Attack_Element_Slot_4_Color_2 = Color.new(0, 0, 100)
- # Element slot 5 info
- Element_Slot_5_id = 7
- Element_Slot_5_Icon = 100
- Element_Slot_5_Color_1 = Color.new(80, 20, 0)
- Element_Slot_5_Color_2 = Color.new(140, 110, 100)
- Attack_Element_Slot_5_Color_1 = Color.new(140, 110, 100)
- Attack_Element_Slot_5_Color_2 = Color.new(80, 20, 0)
- # Element slot 6 info
- Element_Slot_6_id = 8
- Element_Slot_6_Icon = 101
- Element_Slot_6_Color_1 = Color.new(0, 100, 0)
- Element_Slot_6_Color_2 = Color.new(200, 250, 200)
- Attack_Element_Slot_6_Color_1 = Color.new(200, 250, 200)
- Attack_Element_Slot_6_Color_2 = Color.new(0, 100, 0)
- # Element slot 7 info
- Element_Slot_7_id = 9
- Element_Slot_7_Icon = 102
- Element_Slot_7_Color_1 = Color.new(55, 55, 55, 100)
- Element_Slot_7_Color_2 = Color.new(255, 255, 255)
- Attack_Element_Slot_7_Color_1 = Color.new(255, 255, 255)
- Attack_Element_Slot_7_Color_2 = Color.new(55, 55, 55, 100)
- # Element slot 8 info
- Element_Slot_8_id = 10
- Element_Slot_8_Icon = 103
- Element_Slot_8_Color_1 = Color.new(0, 0, 0)
- Element_Slot_8_Color_2 = Color.new(111, 111, 111)
- Attack_Element_Slot_8_Color_1 = Color.new(111, 111, 111)
- Attack_Element_Slot_8_Color_2 = Color.new(10, 10, 10)
- # Element slot 9 info
- Element_Slot_9_id = 2
- Element_Slot_9_Icon = 104
- Element_Slot_9_Color_1 = Color.new(0, 0, 255, 100)
- Element_Slot_9_Color_2 = Color.new(255, 0, 0, 100)
- Attack_Element_Slot_9_Color_1 = Color.new(255, 0, 0, 100)
- Attack_Element_Slot_9_Color_2 = Color.new(0, 0, 255, 100)
- ###################
- # Status Settings #
- ###################
- # Status slot 1 info
- Status_Slot_1_id = 2
- Status_Slot_1_Color_1 = Color.new(55, 20, 0)
- Status_Slot_1_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Slot_1_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Slot_1_Color_2 = Color.new(255, 250, 200)
- # Status slot 2 info
- Status_Slot_2_id = 3
- Status_Slot_2_Color_1 = Color.new(55, 20, 0)
- Status_Slot_2_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Slot_2_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Slot_2_Color_2 = Color.new(255, 250, 200)
- # Status slot 3 info
- Status_Slot_3_id = 4
- Status_Slot_3_Color_1 = Color.new(55, 20, 0)
- Status_Slot_3_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Slot_3_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Slot_3_Color_2 = Color.new(255, 250, 200)
- # Status slot 4 info
- Status_Slot_4_id = 5
- Status_Slot_4_Color_1 = Color.new(55, 20, 0)
- Status_Slot_4_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Slot_4_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Slot_4_Color_2 = Color.new(255, 250, 200)
- # Status slot 5 info
- Status_Slot_5_id = 6
- Status_Slot_5_Color_1 = Color.new(55, 20, 0)
- Status_Slot_5_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Slot_5_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Slot_5_Color_2 = Color.new(255, 250, 200)
- # Status slot 6 info
- Status_Slot_6_id = 7
- Status_Slot_6_Color_1 = Color.new(55, 20, 0)
- Status_Slot_6_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Slot_6_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Slot_6_Color_2 = Color.new(255, 250, 200)
- # Status slot 7 info
- Status_Slot_7_id = 8
- Status_Slot_7_Color_1 = Color.new(55, 20, 0)
- Status_Slot_7_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Slot_7_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Slot_7_Color_2 = Color.new(255, 250, 200)
- # Status slot 8 info
- Status_Slot_8_id = 9
- Status_Slot_8_Color_1 = Color.new(55, 20, 0)
- Status_Slot_8_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Slot_8_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Slot_8_Color_2 = Color.new(255, 250, 200)
- # Status slot 9 info
- Status_Slot_9_id = 10
- Status_Slot_9_Color_1 = Color.new(55, 20, 0)
- Status_Slot_9_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Slot_9_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Slot_9_Color_2 = Color.new(255, 250, 200)
- # Status Row 2 slot 1 info
- Status_Row_2_Slot_1_id = 11
- Status_Row_2_Slot_1_Color_1 = Color.new(55, 20, 0)
- Status_Row_2_Slot_1_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Row_2_Slot_1_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Row_2_Slot_1_Color_2 = Color.new(255, 250, 200)
- # Status_Row_2 slot 2 info
- Status_Row_2_Slot_2_id = 12
- Status_Row_2_Slot_2_Color_1 = Color.new(55, 20, 0)
- Status_Row_2_Slot_2_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Row_2_Slot_2_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Row_2_Slot_2_Color_2 = Color.new(255, 250, 200)
- # Status_Row_2 slot 3 info
- Status_Row_2_Slot_3_id = 13
- Status_Row_2_Slot_3_Color_1 = Color.new(55, 20, 0)
- Status_Row_2_Slot_3_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Row_2_Slot_3_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Row_2_Slot_3_Color_2 = Color.new(255, 250, 200)
- # Status_Row_2 slot 4 info
- Status_Row_2_Slot_4_id = 14
- Status_Row_2_Slot_4_Color_1 = Color.new(55, 20, 0)
- Status_Row_2_Slot_4_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Row_2_Slot_4_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Row_2_Slot_4_Color_2 = Color.new(255, 250, 200)
- # Status_Row_2 slot 5 info
- Status_Row_2_Slot_5_id = 15
- Status_Row_2_Slot_5_Color_1 = Color.new(55, 20, 0)
- Status_Row_2_Slot_5_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Row_2_Slot_5_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Row_2_Slot_5_Color_2 = Color.new(255, 250, 200)
- # Status_Row_2 slot 6 info
- Status_Row_2_Slot_6_id = 16
- Status_Row_2_Slot_6_Color_1 = Color.new(55, 20, 0)
- Status_Row_2_Slot_6_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Row_2_Slot_6_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Row_2_Slot_6_Color_2 = Color.new(255, 250, 200)
- # Status_Row_2 slot 7 info
- Status_Row_2_Slot_7_id = 17
- Status_Row_2_Slot_7_Color_1 = Color.new(55, 20, 0)
- Status_Row_2_Slot_7_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Row_2_Slot_7_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Row_2_Slot_7_Color_2 = Color.new(255, 250, 200)
- # Status_Row_2 slot 8 info
- Status_Row_2_Slot_8_id = 18
- Status_Row_2_Slot_8_Color_1 = Color.new(55, 20, 0)
- Status_Row_2_Slot_8_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Row_2_Slot_8_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Row_2_Slot_8_Color_2 = Color.new(255, 250, 200)
- # Status_Row_2 slot 9 info
- Status_Row_2_Slot_9_id = 19
- Status_Row_2_Slot_9_Color_1 = Color.new(55, 20, 0)
- Status_Row_2_Slot_9_Color_2 = Color.new(255, 125, 0)
- Attack_Status_Row_2_Slot_9_Color_1 = Color.new(50, 0, 0)
- Attack_Status_Row_2_Slot_9_Color_2 = Color.new(255, 250, 200)
- ###########################################################################
- ## CUSTOMISATION OPTIONS END DO NOT MODIFY ANYTHING! BEYOND THIS POINT ##
- # Do NOT Modify ANYTHING beyond this point as it will be subject to #
- # regular change in forthcoming updates ! #
- ###########################################################################
- def self.Param_Gauge_Rate(target, stat)
- if target.is_a?(RPG::EquipItem)
- gauge_rate = self.Get_Equip_Param_Gauge_Rate(target, stat)
- return gauge_rate
- elsif target == false
- return 0
- else
- gauge_rate = self.Get_Actor_Param_Gauge_Rate(target, stat)
- return gauge_rate
- end
- end
- def self.Get_Actor_Param_Gauge_Rate(target, stat)
- fmt = "%1.2f%%"
- return target.hp_rate if stat == :mhp
- return target.mp_rate if stat == :mmp
- return target.tp.to_f / target.max_tp if stat == :mtp
- par_id = self.GET_PARAM_ID(stat)
- ele_id = self.Get_Elemt_ID(stat)
- sta_id = self.Get_State_ID(stat)
- case stat
- when :atk, :def, :mat, :mdf, :agi, :luk
- return((target.param(par_id).to_f-1)/(target.param_max(par_id)-1).to_f)
- when :hit, :eva
- return(target.xparam(par_id).to_f/10)
- when :cri, :cev, :mev, :mrf, :cnt, :hrg, :mrg, :trg
- return(target.xparam(par_id).to_f/1)
- when :tgr, :grd
- return(target.sparam(par_id).to_f/10)
- when :rec, :pha, :mcr, :tcr, :pdr, :mdr, :fdr, :exr
- return(target.sparam(par_id).to_f/1)
- when :element_slot_1, :element_slot_2, :element_slot_3, :element_slot_4,
- :element_slot_5, :element_slot_6, :element_slot_7, :element_slot_8, :element_slot_9,
- :atk_element_slot_1, :atk_element_slot_2, :atk_element_slot_3, :atk_element_slot_4,
- :atk_element_slot_5, :atk_element_slot_6, :atk_element_slot_7, :atk_element_slot_8,
- :atk_element_slot_9
- return(target.element_rate(ele_id) / 2)
- when :status_slot_1, :status_slot_2, :status_slot_3, :status_slot_4,
- :status_slot_5, :status_slot_6, :status_slot_7, :status_slot_8,
- :status_slot_9, :status_slot_1_row_2, :status_slot_2_row_2, :status_slot_3_row_2,
- :status_slot_4_row_2, :status_slot_5_row_2, :status_slot_6_row_2,
- :status_slot_7_row_2, :status_slot_8_row_2, :status_slot_9_row_2
- return (target.state_rate(sta_id) / 1)
- when :atk_status_slot_1, :atk_status_slot_2, :atk_status_slot_3, :atk_status_slot_4,
- :atk_status_slot_5, :atk_status_slot_6, :atk_status_slot_7, :atk_status_slot_8, :atk_status_slot_9,
- :atk_status_slot_1_row_2, :atk_status_slot_2_row_2, :atk_status_slot_3_row_2,
- :atk_status_slot_4_row_2, :atk_status_slot_5_row_2, :atk_status_slot_6_row_2,
- :atk_status_slot_7_row_2, :atk_status_slot_8_row_2, :atk_status_slot_9_row_2
- return (target.atk_states_rate(sta_id) / 1)
- else
- return N_A_Vocab
- end
- end
- def self.Get_Equip_Param_Gauge_Rate(target, stat)
- par_id = self.GET_PARAM_ID(stat)
- case stat
- when :mhp, :mmp, :atk, :def, :mat, :mdf, :agi, :luk
- return (target.params[par_id].to_f / 99).to_f
- when :mtp
- return target.max_tp_boost_DPBz.to_f / 100 if $imported[:Dekita__TP_Limits]
- when :hit, :eva, :cri, :cev, :mev, :mrf, :cnt, :hrg, :mrg, :trg
- return target.item_features_sum(target, 22, par_id)
- when :tgr, :grd, :rec, :pha, :mcr, :tcr, :pdr, :mdr, :fdr, :exr
- return target.item_features_pi(target, 23, par_id)
- else
- return 0
- end
- end
- def self.C_M_STAT_Value(target, stat)
- if target.is_a?(RPG::EquipItem)
- stat_id = self.GET_PARAM_ID(stat)
- case stat
- when :mhp, :mmp, :atk, :def, :mat, :mdf, :agi, :luk
- return target.params[stat_id].to_i
- when :mtp
- return target.max_tp_boost_DPBz.to_i if $imported[:Dekita__TP_Limits]
- when :hit, :eva, :cri, :cev, :mev, :mrf, :cnt, :hrg, :mrg, :trg
- return(target.xparam(par_id).to_f/10)
- when :tgr, :grd, :rec, :pha, :mcr, :tcr, :pdr, :mdr, :fdr, :exr
- return (target.sparam(par_id).to_f/10)
- else
- end
- elsif target == false
- return N_A_Vocab
- else
- value = self.Cur_Max_PARAM_VALUE(target, stat)
- return value
- end
- end
- def self.Cur_Max_PARAM_VALUE(target, stat)
- return "#{target.hp.to_i}#{Seperator2}#{target.mhp.to_i}" if stat == :mhp
- return "#{target.mp.to_i}#{Seperator2}#{target.mmp.to_i}" if stat == :mmp
- return "#{target.tp.to_i}#{Seperator2}#{target.max_tp.to_i}" if stat == :mtp# if $imported[:Dekita__TP_Limits]
- return N_A_Vocab if nil || false
- end
- def self.STAT_Value(target, stat)
- if target.is_a?(RPG::EquipItem)
- value = self.Get_Equip_Stat_Value(target, stat)
- return value
- elsif target == false
- return N_A_Vocab
- else
- value = self.GET_PARAM_VALUE(target, stat)
- case stat
- when :atk , :def , :mat , :mdf , :agi , :luk
- return "#{value-(value * Variance).to_i}#{Seperator}#{value+(value * Variance).to_i}"
- when :hit , :eva , :cri , :cev , :mev , :mrf , :cnt , :hrg , :mrg , :trg
- return value
- when :tgr, :grd, :rec, :pha, :mcr, :tcr, :pdr, :mdr, :fdr, :exr
- return value
- when :element_slot_1, :element_slot_2, :element_slot_3, :element_slot_4,
- :element_slot_5, :element_slot_6, :element_slot_7, :element_slot_8, :element_slot_9,
- :atk_element_slot_1, :atk_element_slot_2, :atk_element_slot_3, :atk_element_slot_4,
- :atk_element_slot_5, :atk_element_slot_6, :atk_element_slot_7, :atk_element_slot_8,
- :atk_element_slot_9
- return value
- when :status_slot_1, :status_slot_2, :status_slot_3, :status_slot_4,
- :status_slot_5, :status_slot_6, :status_slot_7, :status_slot_8,
- :status_slot_9, :status_slot_1_row_2, :status_slot_2_row_2, :status_slot_3_row_2,
- :status_slot_4_row_2, :status_slot_5_row_2, :status_slot_6_row_2,
- :status_slot_7_row_2, :status_slot_8_row_2, :status_slot_9_row_2,
- :atk_status_slot_1, :atk_status_slot_2, :atk_status_slot_3, :atk_status_slot_4,
- :atk_status_slot_5, :atk_status_slot_6, :atk_status_slot_7, :atk_status_slot_8, :atk_status_slot_9,
- :atk_status_slot_1_row_2, :atk_status_slot_2_row_2, :atk_status_slot_3_row_2,
- :atk_status_slot_4_row_2, :atk_status_slot_5_row_2, :atk_status_slot_6_row_2,
- :atk_status_slot_7_row_2, :atk_status_slot_8_row_2, :atk_status_slot_9_row_2
- return value
- end
- end
- end
- def self.GET_PARAM_ID(stat)
- return 0 if stat == :mhp
- return 1 if stat == :mmp
- return 2 if stat == :atk
- return 3 if stat == :def
- return 4 if stat == :mat
- return 5 if stat == :mdf
- return 6 if stat == :agi
- return 7 if stat == :luk
- return 0 if stat == :hit
- return 1 if stat == :eva
- return 2 if stat == :cri
- return 3 if stat == :cev
- return 4 if stat == :mev
- return 5 if stat == :mrf
- return 6 if stat == :cnt
- return 7 if stat == :hrg
- return 8 if stat == :mrg
- return 9 if stat == :trg
- return 0 if stat == :tgr
- return 1 if stat == :grd
- return 2 if stat == :rec
- return 3 if stat == :pha
- return 4 if stat == :mcr
- return 5 if stat == :tcr
- return 6 if stat == :pdr
- return 7 if stat == :mdr
- return 8 if stat == :fdr
- return 9 if stat == :exr
- return nil
- end
- def self.Get_Elemt_ID(stat)
- return Element_Slot_1_id if stat == :element_slot_1
- return Element_Slot_2_id if stat == :element_slot_2
- return Element_Slot_3_id if stat == :element_slot_3
- return Element_Slot_4_id if stat == :element_slot_4
- return Element_Slot_5_id if stat == :element_slot_5
- return Element_Slot_6_id if stat == :element_slot_6
- return Element_Slot_7_id if stat == :element_slot_7
- return Element_Slot_8_id if stat == :element_slot_8
- return Element_Slot_9_id if stat == :element_slot_9
- return Element_Slot_1_id if stat == :atk_element_slot_1
- return Element_Slot_2_id if stat == :atk_element_slot_2
- return Element_Slot_3_id if stat == :atk_element_slot_3
- return Element_Slot_4_id if stat == :atk_element_slot_4
- return Element_Slot_5_id if stat == :atk_element_slot_5
- return Element_Slot_6_id if stat == :atk_element_slot_6
- return Element_Slot_7_id if stat == :atk_element_slot_7
- return Element_Slot_8_id if stat == :atk_element_slot_8
- return Element_Slot_9_id if stat == :atk_element_slot_9
- return nil
- end
- def self.Get_State_ID(stat)
- return Status_Slot_1_id if stat == :status_slot_1
- return Status_Slot_2_id if stat == :status_slot_2
- return Status_Slot_3_id if stat == :status_slot_3
- return Status_Slot_4_id if stat == :status_slot_4
- return Status_Slot_5_id if stat == :status_slot_5
- return Status_Slot_6_id if stat == :status_slot_6
- return Status_Slot_7_id if stat == :status_slot_7
- return Status_Slot_8_id if stat == :status_slot_8
- return Status_Slot_9_id if stat == :status_slot_9
- return Status_Row_2_Slot_1_id if stat == :status_slot_1_row_2
- return Status_Row_2_Slot_2_id if stat == :status_slot_2_row_2
- return Status_Row_2_Slot_3_id if stat == :status_slot_3_row_2
- return Status_Row_2_Slot_4_id if stat == :status_slot_4_row_2
- return Status_Row_2_Slot_5_id if stat == :status_slot_5_row_2
- return Status_Row_2_Slot_6_id if stat == :status_slot_6_row_2
- return Status_Row_2_Slot_7_id if stat == :status_slot_7_row_2
- return Status_Row_2_Slot_8_id if stat == :status_slot_8_row_2
- return Status_Row_2_Slot_9_id if stat == :status_slot_9_row_2
- return Status_Slot_1_id if stat == :atk_status_slot_1
- return Status_Slot_2_id if stat == :atk_status_slot_2
- return Status_Slot_3_id if stat == :atk_status_slot_3
- return Status_Slot_4_id if stat == :atk_status_slot_4
- return Status_Slot_5_id if stat == :atk_status_slot_5
- return Status_Slot_6_id if stat == :atk_status_slot_6
- return Status_Slot_7_id if stat == :atk_status_slot_7
- return Status_Slot_8_id if stat == :atk_status_slot_8
- return Status_Slot_9_id if stat == :atk_status_slot_9
- return Status_Row_2_Slot_1_id if stat == :atk_status_slot_1_row_2
- return Status_Row_2_Slot_2_id if stat == :atk_status_slot_2_row_2
- return Status_Row_2_Slot_3_id if stat == :atk_status_slot_3_row_2
- return Status_Row_2_Slot_4_id if stat == :atk_status_slot_4_row_2
- return Status_Row_2_Slot_5_id if stat == :atk_status_slot_5_row_2
- return Status_Row_2_Slot_6_id if stat == :atk_status_slot_6_row_2
- return Status_Row_2_Slot_7_id if stat == :atk_status_slot_7_row_2
- return Status_Row_2_Slot_8_id if stat == :atk_status_slot_8_row_2
- return Status_Row_2_Slot_9_id if stat == :atk_status_slot_9_row_2
- return nil
- end
- def self.GET_PARAM_VALUE(target, stat)
- fmt = "%1.2f%%"
- return target.atk if stat == :atk
- return target.def if stat == :def
- return target.mat if stat == :mat
- return target.mdf if stat == :mdf
- return target.agi if stat == :agi
- return target.luk if stat == :luk
- return sprintf(fmt, target.hit * 100) if stat == :hit
- return sprintf(fmt, target.eva * 100) if stat == :eva
- return sprintf(fmt, target.cri * 100) if stat == :cri
- return sprintf(fmt, target.cev * 100) if stat == :cev
- return sprintf(fmt, target.mev * 100) if stat == :mev
- return sprintf(fmt, target.mrf * 100) if stat == :mrf
- return sprintf(fmt, target.cnt * 100) if stat == :cnt
- return sprintf(fmt, target.hrg * 100) if stat == :hrg
- return sprintf(fmt, target.mrg * 100) if stat == :mrg
- return sprintf(fmt, target.trg * 100) if stat == :trg
- return sprintf(fmt, target.tgr * 100) if stat == :tgr
- return sprintf(fmt, target.grd * 100) if stat == :grd
- return sprintf(fmt, target.rec * 100) if stat == :rec
- return sprintf(fmt, target.pha * 100) if stat == :pha
- return sprintf(fmt, target.mcr * 100) if stat == :mcr
- return sprintf(fmt, target.tcr * 100) if stat == :tcr
- return sprintf(fmt, target.pdr * 100) if stat == :pdr
- return sprintf(fmt, target.mdr * 100) if stat == :mdr
- return sprintf(fmt, target.fdr * 100) if stat == :fdr
- return sprintf(fmt, target.exr * 100) if stat == :exr
- return sprintf(fmt, (target.element_rate(Element_Slot_1_id) * 100)) if stat == :element_slot_1
- return sprintf(fmt, (target.element_rate(Element_Slot_2_id) * 100)) if stat == :element_slot_2
- return sprintf(fmt, (target.element_rate(Element_Slot_3_id) * 100)) if stat == :element_slot_3
- return sprintf(fmt, (target.element_rate(Element_Slot_4_id) * 100)) if stat == :element_slot_4
- return sprintf(fmt, (target.element_rate(Element_Slot_5_id) * 100)) if stat == :element_slot_5
- return sprintf(fmt, (target.element_rate(Element_Slot_6_id) * 100)) if stat == :element_slot_6
- return sprintf(fmt, (target.element_rate(Element_Slot_7_id) * 100)) if stat == :element_slot_7
- return sprintf(fmt, (target.element_rate(Element_Slot_8_id) * 100)) if stat == :element_slot_8
- return sprintf(fmt, (target.element_rate(Element_Slot_9_id) * 100)) if stat == :element_slot_9
- return sprintf(fmt, (target.atk_element_rate(Element_Slot_1_id) * 100)) if stat == :atk_element_slot_1
- return sprintf(fmt, (target.atk_element_rate(Element_Slot_2_id) * 100)) if stat == :atk_element_slot_2
- return sprintf(fmt, (target.atk_element_rate(Element_Slot_3_id) * 100)) if stat == :atk_element_slot_3
- return sprintf(fmt, (target.atk_element_rate(Element_Slot_4_id) * 100)) if stat == :atk_element_slot_4
- return sprintf(fmt, (target.atk_element_rate(Element_Slot_5_id) * 100)) if stat == :atk_element_slot_5
- return sprintf(fmt, (target.atk_element_rate(Element_Slot_6_id) * 100)) if stat == :atk_element_slot_6
- return sprintf(fmt, (target.atk_element_rate(Element_Slot_7_id) * 100)) if stat == :atk_element_slot_7
- return sprintf(fmt, (target.atk_element_rate(Element_Slot_8_id) * 100)) if stat == :atk_element_slot_8
- return sprintf(fmt, (target.atk_element_rate(Element_Slot_9_id) * 100)) if stat == :atk_element_slot_9
- return (sprintf(fmt, target.state_rate(Status_Slot_1_id) * 100)) if stat == :status_slot_1
- return (sprintf(fmt, target.state_rate(Status_Slot_2_id) * 100)) if stat == :status_slot_2
- return (sprintf(fmt, target.state_rate(Status_Slot_3_id) * 100)) if stat == :status_slot_3
- return (sprintf(fmt, target.state_rate(Status_Slot_4_id) * 100)) if stat == :status_slot_4
- return (sprintf(fmt, target.state_rate(Status_Slot_5_id) * 100)) if stat == :status_slot_5
- return (sprintf(fmt, target.state_rate(Status_Slot_6_id) * 100)) if stat == :status_slot_6
- return (sprintf(fmt, target.state_rate(Status_Slot_7_id) * 100)) if stat == :status_slot_7
- return (sprintf(fmt, target.state_rate(Status_Slot_8_id) * 100)) if stat == :status_slot_8
- return (sprintf(fmt, target.state_rate(Status_Slot_9_id) * 100)) if stat == :status_slot_9
- return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_1_id) * 100)) if stat == :status_slot_1_row_2
- return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_2_id) * 100)) if stat == :status_slot_2_row_2
- return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_3_id) * 100)) if stat == :status_slot_3_row_2
- return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_4_id) * 100)) if stat == :status_slot_4_row_2
- return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_5_id) * 100)) if stat == :status_slot_5_row_2
- return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_6_id) * 100)) if stat == :status_slot_6_row_2
- return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_7_id) * 100)) if stat == :status_slot_7_row_2
- return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_8_id) * 100)) if stat == :status_slot_8_row_2
- return (sprintf(fmt, target.state_rate(Status_Row_2_Slot_9_id) * 100)) if stat == :status_slot_9_row_2
- return sprintf(fmt, (target.atk_states_rate(Status_Slot_1_id) * 100)) if stat == :atk_status_slot_1
- return sprintf(fmt, (target.atk_states_rate(Status_Slot_2_id) * 100)) if stat == :atk_status_slot_2
- return sprintf(fmt, (target.atk_states_rate(Status_Slot_3_id) * 100)) if stat == :atk_status_slot_3
- return sprintf(fmt, (target.atk_states_rate(Status_Slot_4_id) * 100)) if stat == :atk_status_slot_4
- return sprintf(fmt, (target.atk_states_rate(Status_Slot_5_id) * 100)) if stat == :atk_status_slot_5
- return sprintf(fmt, (target.atk_states_rate(Status_Slot_6_id) * 100)) if stat == :atk_status_slot_6
- return sprintf(fmt, (target.atk_states_rate(Status_Slot_7_id) * 100)) if stat == :atk_status_slot_7
- return sprintf(fmt, (target.atk_states_rate(Status_Slot_8_id) * 100)) if stat == :atk_status_slot_8
- return sprintf(fmt, (target.atk_states_rate(Status_Slot_9_id) * 100)) if stat == :atk_status_slot_9
- return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_1_id) * 100)) if stat == :atk_status_slot_1_row_2
- return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_2_id) * 100)) if stat == :atk_status_slot_2_row_2
- return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_3_id) * 100)) if stat == :atk_status_slot_3_row_2
- return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_4_id) * 100)) if stat == :atk_status_slot_4_row_2
- return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_5_id) * 100)) if stat == :atk_status_slot_5_row_2
- return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_6_id) * 100)) if stat == :atk_status_slot_6_row_2
- return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_7_id) * 100)) if stat == :atk_status_slot_7_row_2
- return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_8_id) * 100)) if stat == :atk_status_slot_8_row_2
- return sprintf(fmt, (target.atk_states_rate(Status_Row_2_Slot_9_id) * 100)) if stat == :atk_status_slot_9_row_2
- return nil
- end
- def self.Get_Equip_Stat_Value(target, stat)
- fmt = "%1.2f%%"
- stat_id = self.GET_PARAM_ID(stat)
- return target.params[stat_id].to_i if stat == :mhp
- return target.params[stat_id].to_i if stat == :mmp
- return target.max_tp_boost_DPBz.to_i if stat == :mtp if $imported[:Dekita__TP_Limits]
- return target.params[stat_id].to_i if stat == :atk
- return target.params[stat_id].to_i if stat == :def
- return target.params[stat_id].to_i if stat == :mat
- return target.params[stat_id].to_i if stat == :mdf
- return target.params[stat_id].to_i if stat == :agi
- return target.params[stat_id].to_i if stat == :luk
- return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
- (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :hit if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
- (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :eva if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
- (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :cri if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
- (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :cev if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
- (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :mev if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
- (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :mrf if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
- (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :cnt if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
- (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :hrg if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
- (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :mrg if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.xparams[stat_id].to_f * 100) +
- (target.item_features_sum(target, 22, stat_id) * 100))) if stat == :trg if $imported[:Dekita__PSPDS]
- return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :hit
- return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :eva
- return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :cri
- return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :cev
- return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :mev
- return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :mrf
- return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :cnt
- return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :hrg
- return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :mrg
- return sprintf(fmt, target.item_features_sum(target, 22, stat_id) * 100) if stat == :trg
- return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
- (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :tgr if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
- (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :grd if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
- (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :rec if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
- (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :pha if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
- (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :mcr if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
- (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :tcr if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
- (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :pdr if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
- (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :mdr if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
- (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :fdr if $imported[:Dekita__PSPDS]
- return sprintf(fmt, ((target.sparams[stat_id].to_f * 100) +
- (target.item_features_pi(target, 23, stat_id) * 100) - 100)) if stat == :exr if $imported[:Dekita__PSPDS]
- return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :tgr
- return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :grd
- return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :rec
- return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :pha
- return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :mcr
- return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :tcr
- return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :pdr
- return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :mdr
- return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :fdr
- return sprintf(fmt, (target.item_features_pi(target, 23, stat_id) * 100) - 100) if stat == :exr
- return nil
- end
- def self.Get_Info_Vocab(stat)
- return MHP_Vocab if stat == :mhp
- return MMP_Vocab if stat == :mmp
- return ATK_Vocab if stat == :atk
- return DEF_Vocab if stat == :def
- return MAT_Vocab if stat == :mat
- return MDF_Vocab if stat == :mdf
- return AGI_Vocab if stat == :agi
- return LUK_Vocab if stat == :luk
- return TP_Vocab if stat == :mtp
- return HIT_Vocab if stat == :hit
- return EVA_Vocab if stat == :eva
- return CRI_Vocab if stat == :cri
- return CEV_Vocab if stat == :cev
- return MEV_Vocab if stat == :mev
- return MRF_Vocab if stat == :mrf
- return CNT_Vocab if stat == :cnt
- return HRG_Vocab if stat == :hrg
- return MRG_Vocab if stat == :mrg
- return TRG_Vocab if stat == :trg
- return TGR_Vocab if stat == :tgr
- return GRD_Vocab if stat == :grd
- return REC_Vocab if stat == :rec
- return PHA_Vocab if stat == :pha
- return MCR_Vocab if stat == :mcr
- return TCR_Vocab if stat == :tcr
- return PDR_Vocab if stat == :pdr
- return MDR_Vocab if stat == :mdr
- return FDR_Vocab if stat == :fdr
- return EXR_Vocab if stat == :exr
- return $data_system.elements[Element_Slot_1_id] if stat == :element_slot_1
- return $data_system.elements[Element_Slot_2_id] if stat == :element_slot_2
- return $data_system.elements[Element_Slot_3_id] if stat == :element_slot_3
- return $data_system.elements[Element_Slot_4_id] if stat == :element_slot_4
- return $data_system.elements[Element_Slot_5_id] if stat == :element_slot_5
- return $data_system.elements[Element_Slot_6_id] if stat == :element_slot_6
- return $data_system.elements[Element_Slot_7_id] if stat == :element_slot_7
- return $data_system.elements[Element_Slot_8_id] if stat == :element_slot_8
- return $data_system.elements[Element_Slot_9_id] if stat == :element_slot_9
- return $data_system.elements[Element_Slot_1_id] if stat == :atk_element_slot_1
- return $data_system.elements[Element_Slot_2_id] if stat == :atk_element_slot_2
- return $data_system.elements[Element_Slot_3_id] if stat == :atk_element_slot_3
- return $data_system.elements[Element_Slot_4_id] if stat == :atk_element_slot_4
- return $data_system.elements[Element_Slot_5_id] if stat == :atk_element_slot_5
- return $data_system.elements[Element_Slot_6_id] if stat == :atk_element_slot_6
- return $data_system.elements[Element_Slot_7_id] if stat == :atk_element_slot_7
- return $data_system.elements[Element_Slot_8_id] if stat == :atk_element_slot_8
- return $data_system.elements[Element_Slot_9_id] if stat == :atk_element_slot_9
- return $data_states[Status_Slot_1_id].name if stat == :status_slot_1
- return $data_states[Status_Slot_2_id].name if stat == :status_slot_2
- return $data_states[Status_Slot_3_id].name if stat == :status_slot_3
- return $data_states[Status_Slot_4_id].name if stat == :status_slot_4
- return $data_states[Status_Slot_5_id].name if stat == :status_slot_5
- return $data_states[Status_Slot_6_id].name if stat == :status_slot_6
- return $data_states[Status_Slot_7_id].name if stat == :status_slot_7
- return $data_states[Status_Slot_8_id].name if stat == :status_slot_8
- return $data_states[Status_Slot_9_id].name if stat == :status_slot_9
- return $data_states[Status_Row_2_Slot_1_id].name if stat == :status_slot_1_row_2
- return $data_states[Status_Row_2_Slot_2_id].name if stat == :status_slot_2_row_2
- return $data_states[Status_Row_2_Slot_3_id].name if stat == :status_slot_3_row_2
- return $data_states[Status_Row_2_Slot_4_id].name if stat == :status_slot_4_row_2
- return $data_states[Status_Row_2_Slot_5_id].name if stat == :status_slot_5_row_2
- return $data_states[Status_Row_2_Slot_6_id].name if stat == :status_slot_6_row_2
- return $data_states[Status_Row_2_Slot_7_id].name if stat == :status_slot_7_row_2
- return $data_states[Status_Row_2_Slot_8_id].name if stat == :status_slot_8_row_2
- return $data_states[Status_Row_2_Slot_9_id].name if stat == :status_slot_9_row_2
- return $data_states[Status_Slot_1_id].name if stat == :atk_status_slot_1
- return $data_states[Status_Slot_2_id].name if stat == :atk_status_slot_2
- return $data_states[Status_Slot_3_id].name if stat == :atk_status_slot_3
- return $data_states[Status_Slot_4_id].name if stat == :atk_status_slot_4
- return $data_states[Status_Slot_5_id].name if stat == :atk_status_slot_5
- return $data_states[Status_Slot_6_id].name if stat == :atk_status_slot_6
- return $data_states[Status_Slot_7_id].name if stat == :atk_status_slot_7
- return $data_states[Status_Slot_8_id].name if stat == :atk_status_slot_8
- return $data_states[Status_Slot_9_id].name if stat == :atk_status_slot_9
- return $data_states[Status_Row_2_Slot_1_id].name if stat == :atk_status_slot_1_row_2
- return $data_states[Status_Row_2_Slot_2_id].name if stat == :atk_status_slot_2_row_2
- return $data_states[Status_Row_2_Slot_3_id].name if stat == :atk_status_slot_3_row_2
- return $data_states[Status_Row_2_Slot_4_id].name if stat == :atk_status_slot_4_row_2
- return $data_states[Status_Row_2_Slot_5_id].name if stat == :atk_status_slot_5_row_2
- return $data_states[Status_Row_2_Slot_6_id].name if stat == :atk_status_slot_6_row_2
- return $data_states[Status_Row_2_Slot_7_id].name if stat == :atk_status_slot_7_row_2
- return $data_states[Status_Row_2_Slot_8_id].name if stat == :atk_status_slot_8_row_2
- return $data_states[Status_Row_2_Slot_9_id].name if stat == :atk_status_slot_9_row_2
- return "NuLL"
- end
- def self.Get_Info_Icons(stat)
- return MHP_Icon if stat == :mhp
- return MMP_Icon if stat == :mmp
- return ATK_Icon if stat == :atk
- return DEF_Icon if stat == :def
- return MAT_Icon if stat == :mat
- return MDF_Icon if stat == :mdf
- return AGI_Icon if stat == :agi
- return LUK_Icon if stat == :luk
- return TP_Icon if stat == :mtp
- return HIT_Icon if stat == :hit
- return EVA_Icon if stat == :eva
- return CRI_Icon if stat == :cri
- return CEV_Icon if stat == :cev
- return MEV_Icon if stat == :mev
- return MRF_Icon if stat == :mrf
- return CNT_Icon if stat == :cnt
- return HRG_Icon if stat == :hrg
- return MRG_Icon if stat == :mrg
- return TRG_Icon if stat == :trg
- return TGR_Icon if stat == :tgr
- return GRD_Icon if stat == :grd
- return REC_Icon if stat == :rec
- return PHA_Icon if stat == :pha
- return MCR_Icon if stat == :mcr
- return TCR_Icon if stat == :tcr
- return PDR_Icon if stat == :pdr
- return MDR_Icon if stat == :mdr
- return FDR_Icon if stat == :fdr
- return EXR_Icon if stat == :exr
- return Element_Slot_1_Icon if stat == :element_slot_1
- return Element_Slot_2_Icon if stat == :element_slot_2
- return Element_Slot_3_Icon if stat == :element_slot_3
- return Element_Slot_4_Icon if stat == :element_slot_4
- return Element_Slot_5_Icon if stat == :element_slot_5
- return Element_Slot_6_Icon if stat == :element_slot_6
- return Element_Slot_7_Icon if stat == :element_slot_7
- return Element_Slot_8_Icon if stat == :element_slot_8
- return Element_Slot_9_Icon if stat == :element_slot_9
- return Element_Slot_1_Icon if stat == :atk_element_slot_1
- return Element_Slot_2_Icon if stat == :atk_element_slot_2
- return Element_Slot_3_Icon if stat == :atk_element_slot_3
- return Element_Slot_4_Icon if stat == :atk_element_slot_4
- return Element_Slot_5_Icon if stat == :atk_element_slot_5
- return Element_Slot_6_Icon if stat == :atk_element_slot_6
- return Element_Slot_7_Icon if stat == :atk_element_slot_7
- return Element_Slot_8_Icon if stat == :atk_element_slot_8
- return Element_Slot_9_Icon if stat == :atk_element_slot_9
- return $data_states[Status_Slot_1_id].icon_index if stat == :status_slot_1
- return $data_states[Status_Slot_2_id].icon_index if stat == :status_slot_2
- return $data_states[Status_Slot_3_id].icon_index if stat == :status_slot_3
- return $data_states[Status_Slot_4_id].icon_index if stat == :status_slot_4
- return $data_states[Status_Slot_5_id].icon_index if stat == :status_slot_5
- return $data_states[Status_Slot_6_id].icon_index if stat == :status_slot_6
- return $data_states[Status_Slot_7_id].icon_index if stat == :status_slot_7
- return $data_states[Status_Slot_8_id].icon_index if stat == :status_slot_8
- return $data_states[Status_Slot_9_id].icon_index if stat == :status_slot_9
- return $data_states[Status_Row_2_Slot_1_id].icon_index if stat == :status_slot_1_row_2
- return $data_states[Status_Row_2_Slot_2_id].icon_index if stat == :status_slot_2_row_2
- return $data_states[Status_Row_2_Slot_3_id].icon_index if stat == :status_slot_3_row_2
- return $data_states[Status_Row_2_Slot_4_id].icon_index if stat == :status_slot_4_row_2
- return $data_states[Status_Row_2_Slot_5_id].icon_index if stat == :status_slot_5_row_2
- return $data_states[Status_Row_2_Slot_6_id].icon_index if stat == :status_slot_6_row_2
- return $data_states[Status_Row_2_Slot_7_id].icon_index if stat == :status_slot_7_row_2
- return $data_states[Status_Row_2_Slot_8_id].icon_index if stat == :status_slot_8_row_2
- return $data_states[Status_Row_2_Slot_9_id].icon_index if stat == :status_slot_9_row_2
- return $data_states[Status_Slot_1_id].icon_index if stat == :atk_status_slot_1
- return $data_states[Status_Slot_2_id].icon_index if stat == :atk_status_slot_2
- return $data_states[Status_Slot_3_id].icon_index if stat == :atk_status_slot_3
- return $data_states[Status_Slot_4_id].icon_index if stat == :atk_status_slot_4
- return $data_states[Status_Slot_5_id].icon_index if stat == :atk_status_slot_5
- return $data_states[Status_Slot_6_id].icon_index if stat == :atk_status_slot_6
- return $data_states[Status_Slot_7_id].icon_index if stat == :atk_status_slot_7
- return $data_states[Status_Slot_8_id].icon_index if stat == :atk_status_slot_8
- return $data_states[Status_Slot_9_id].icon_index if stat == :atk_status_slot_9
- return $data_states[Status_Row_2_Slot_1_id].icon_index if stat == :atk_status_slot_1_row_2
- return $data_states[Status_Row_2_Slot_2_id].icon_index if stat == :atk_status_slot_2_row_2
- return $data_states[Status_Row_2_Slot_3_id].icon_index if stat == :atk_status_slot_3_row_2
- return $data_states[Status_Row_2_Slot_4_id].icon_index if stat == :atk_status_slot_4_row_2
- return $data_states[Status_Row_2_Slot_5_id].icon_index if stat == :atk_status_slot_5_row_2
- return $data_states[Status_Row_2_Slot_6_id].icon_index if stat == :atk_status_slot_6_row_2
- return $data_states[Status_Row_2_Slot_7_id].icon_index if stat == :atk_status_slot_7_row_2
- return $data_states[Status_Row_2_Slot_8_id].icon_index if stat == :atk_status_slot_8_row_2
- return $data_states[Status_Row_2_Slot_9_id].icon_index if stat == :atk_status_slot_9_row_2
- return 0
- end
- def self.Get_Gauge_Color_1(stat)
- return MHP_Color_1 if stat == :mhp
- return MMP_Color_1 if stat == :mmp
- return TP_Color_1 if stat == :mtp
- return ATK_Color_1 if stat == :atk
- return DEF_Color_1 if stat == :def
- return MAT_Color_1 if stat == :mat
- return MDF_Color_1 if stat == :mdf
- return AGI_Color_1 if stat == :agi
- return LUK_Color_1 if stat == :luk
- return HIT_Color_1 if stat == :hit
- return EVA_Color_1 if stat == :eva
- return CRI_Color_1 if stat == :cri
- return CEV_Color_1 if stat == :cev
- return MEV_Color_1 if stat == :mev
- return MRF_Color_1 if stat == :mrf
- return CNT_Color_1 if stat == :cnt
- return HRG_Color_1 if stat == :hrg
- return MRG_Color_1 if stat == :mrg
- return TRG_Color_1 if stat == :trg
- return TGR_Color_1 if stat == :tgr
- return GRD_Color_1 if stat == :grd
- return REC_Color_1 if stat == :rec
- return PHA_Color_1 if stat == :pha
- return MCR_Color_1 if stat == :mcr
- return TCR_Color_1 if stat == :tcr
- return PDR_Color_1 if stat == :pdr
- return MDR_Color_1 if stat == :mdr
- return FDR_Color_1 if stat == :fdr
- return EXR_Color_1 if stat == :exr
- return Element_Slot_1_Color_1 if stat == :element_slot_1
- return Element_Slot_2_Color_1 if stat == :element_slot_2
- return Element_Slot_3_Color_1 if stat == :element_slot_3
- return Element_Slot_4_Color_1 if stat == :element_slot_4
- return Element_Slot_5_Color_1 if stat == :element_slot_5
- return Element_Slot_6_Color_1 if stat == :element_slot_6
- return Element_Slot_7_Color_1 if stat == :element_slot_7
- return Element_Slot_8_Color_1 if stat == :element_slot_8
- return Element_Slot_9_Color_1 if stat == :element_slot_9
- return Attack_Element_Slot_1_Color_1 if stat == :atk_element_slot_1
- return Attack_Element_Slot_2_Color_1 if stat == :atk_element_slot_2
- return Attack_Element_Slot_3_Color_1 if stat == :atk_element_slot_3
- return Attack_Element_Slot_4_Color_1 if stat == :atk_element_slot_4
- return Attack_Element_Slot_5_Color_1 if stat == :atk_element_slot_5
- return Attack_Element_Slot_6_Color_1 if stat == :atk_element_slot_6
- return Attack_Element_Slot_7_Color_1 if stat == :atk_element_slot_7
- return Attack_Element_Slot_8_Color_1 if stat == :atk_element_slot_8
- return Attack_Element_Slot_9_Color_1 if stat == :atk_element_slot_9
- return Status_Slot_1_Color_1 if stat == :status_slot_1
- return Status_Slot_2_Color_1 if stat == :status_slot_2
- return Status_Slot_3_Color_1 if stat == :status_slot_3
- return Status_Slot_4_Color_1 if stat == :status_slot_4
- return Status_Slot_5_Color_1 if stat == :status_slot_5
- return Status_Slot_6_Color_1 if stat == :status_slot_6
- return Status_Slot_7_Color_1 if stat == :status_slot_7
- return Status_Slot_8_Color_1 if stat == :status_slot_8
- return Status_Slot_9_Color_1 if stat == :status_slot_9
- return Status_Row_2_Slot_1_Color_1 if stat == :status_slot_1_row_2
- return Status_Row_2_Slot_2_Color_1 if stat == :status_slot_2_row_2
- return Status_Row_2_Slot_3_Color_1 if stat == :status_slot_3_row_2
- return Status_Row_2_Slot_4_Color_1 if stat == :status_slot_4_row_2
- return Status_Row_2_Slot_5_Color_1 if stat == :status_slot_5_row_2
- return Status_Row_2_Slot_6_Color_1 if stat == :status_slot_6_row_2
- return Status_Row_2_Slot_7_Color_1 if stat == :status_slot_7_row_2
- return Status_Row_2_Slot_8_Color_1 if stat == :status_slot_8_row_2
- return Status_Row_2_Slot_9_Color_1 if stat == :status_slot_9_row_2
- return Attack_Status_Slot_1_Color_1 if stat == :atk_status_slot_1
- return Attack_Status_Slot_2_Color_1 if stat == :atk_status_slot_2
- return Attack_Status_Slot_3_Color_1 if stat == :atk_status_slot_3
- return Attack_Status_Slot_4_Color_1 if stat == :atk_status_slot_4
- return Attack_Status_Slot_5_Color_1 if stat == :atk_status_slot_5
- return Attack_Status_Slot_6_Color_1 if stat == :atk_status_slot_6
- return Attack_Status_Slot_7_Color_1 if stat == :atk_status_slot_7
- return Attack_Status_Slot_8_Color_1 if stat == :atk_status_slot_8
- return Attack_Status_Slot_9_Color_1 if stat == :atk_status_slot_9
- return Attack_Status_Row_2_Slot_1_Color_1 if stat == :atk_status_slot_1_row_2
- return Attack_Status_Row_2_Slot_2_Color_1 if stat == :atk_status_slot_2_row_2
- return Attack_Status_Row_2_Slot_3_Color_1 if stat == :atk_status_slot_3_row_2
- return Attack_Status_Row_2_Slot_4_Color_1 if stat == :atk_status_slot_4_row_2
- return Attack_Status_Row_2_Slot_5_Color_1 if stat == :atk_status_slot_5_row_2
- return Attack_Status_Row_2_Slot_6_Color_1 if stat == :atk_status_slot_6_row_2
- return Attack_Status_Row_2_Slot_7_Color_1 if stat == :atk_status_slot_7_row_2
- return Attack_Status_Row_2_Slot_8_Color_1 if stat == :atk_status_slot_8_row_2
- return Attack_Status_Row_2_Slot_9_Color_1 if stat == :atk_status_slot_9_row_2
- return Color.new(0, 0, 0)
- end
- def self.Get_Gauge_Color_2(stat)
- return MHP_Color_2 if stat == :mhp
- return MMP_Color_2 if stat == :mmp
- return TP_Color_2 if stat == :mtp
- return ATK_Color_2 if stat == :atk
- return DEF_Color_2 if stat == :def
- return MAT_Color_2 if stat == :mat
- return MDF_Color_2 if stat == :mdf
- return AGI_Color_2 if stat == :agi
- return LUK_Color_2 if stat == :luk
- return HIT_Color_2 if stat == :hit
- return EVA_Color_2 if stat == :eva
- return CRI_Color_2 if stat == :cri
- return CEV_Color_2 if stat == :cev
- return MEV_Color_2 if stat == :mev
- return MRF_Color_2 if stat == :mrf
- return CNT_Color_2 if stat == :cnt
- return HRG_Color_2 if stat == :hrg
- return MRG_Color_2 if stat == :mrg
- return TRG_Color_2 if stat == :trg
- return TGR_Color_2 if stat == :tgr
- return GRD_Color_2 if stat == :grd
- return REC_Color_2 if stat == :rec
- return PHA_Color_2 if stat == :pha
- return MCR_Color_2 if stat == :mcr
- return TCR_Color_2 if stat == :tcr
- return PDR_Color_2 if stat == :pdr
- return MDR_Color_2 if stat == :mdr
- return FDR_Color_2 if stat == :fdr
- return EXR_Color_2 if stat == :exr
- return Element_Slot_1_Color_2 if stat == :element_slot_1
- return Element_Slot_2_Color_2 if stat == :element_slot_2
- return Element_Slot_3_Color_2 if stat == :element_slot_3
- return Element_Slot_4_Color_2 if stat == :element_slot_4
- return Element_Slot_5_Color_2 if stat == :element_slot_5
- return Element_Slot_6_Color_2 if stat == :element_slot_6
- return Element_Slot_7_Color_2 if stat == :element_slot_7
- return Element_Slot_8_Color_2 if stat == :element_slot_8
- return Element_Slot_9_Color_2 if stat == :element_slot_9
- return Attack_Element_Slot_1_Color_2 if stat == :atk_element_slot_1
- return Attack_Element_Slot_2_Color_2 if stat == :atk_element_slot_2
- return Attack_Element_Slot_3_Color_2 if stat == :atk_element_slot_3
- return Attack_Element_Slot_4_Color_2 if stat == :atk_element_slot_4
- return Attack_Element_Slot_5_Color_2 if stat == :atk_element_slot_5
- return Attack_Element_Slot_6_Color_2 if stat == :atk_element_slot_6
- return Attack_Element_Slot_7_Color_2 if stat == :atk_element_slot_7
- return Attack_Element_Slot_8_Color_2 if stat == :atk_element_slot_8
- return Attack_Element_Slot_9_Color_2 if stat == :atk_element_slot_9
- return Status_Slot_1_Color_2 if stat == :status_slot_1
- return Status_Slot_2_Color_2 if stat == :status_slot_2
- return Status_Slot_3_Color_2 if stat == :status_slot_3
- return Status_Slot_4_Color_2 if stat == :status_slot_4
- return Status_Slot_5_Color_2 if stat == :status_slot_5
- return Status_Slot_6_Color_2 if stat == :status_slot_6
- return Status_Slot_7_Color_2 if stat == :status_slot_7
- return Status_Slot_8_Color_2 if stat == :status_slot_8
- return Status_Slot_9_Color_2 if stat == :status_slot_9
- return Status_Row_2_Slot_1_Color_2 if stat == :status_slot_1_row_2
- return Status_Row_2_Slot_2_Color_2 if stat == :status_slot_2_row_2
- return Status_Row_2_Slot_3_Color_2 if stat == :status_slot_3_row_2
- return Status_Row_2_Slot_4_Color_2 if stat == :status_slot_4_row_2
- return Status_Row_2_Slot_5_Color_2 if stat == :status_slot_5_row_2
- return Status_Row_2_Slot_6_Color_2 if stat == :status_slot_6_row_2
- return Status_Row_2_Slot_7_Color_2 if stat == :status_slot_7_row_2
- return Status_Row_2_Slot_8_Color_2 if stat == :status_slot_8_row_2
- return Status_Row_2_Slot_9_Color_2 if stat == :status_slot_9_row_2
- return Attack_Status_Slot_1_Color_2 if stat == :atk_status_slot_1
- return Attack_Status_Slot_2_Color_2 if stat == :atk_status_slot_2
- return Attack_Status_Slot_3_Color_2 if stat == :atk_status_slot_3
- return Attack_Status_Slot_4_Color_2 if stat == :atk_status_slot_4
- return Attack_Status_Slot_5_Color_2 if stat == :atk_status_slot_5
- return Attack_Status_Slot_6_Color_2 if stat == :atk_status_slot_6
- return Attack_Status_Slot_7_Color_2 if stat == :atk_status_slot_7
- return Attack_Status_Slot_8_Color_2 if stat == :atk_status_slot_8
- return Attack_Status_Slot_9_Color_2 if stat == :atk_status_slot_9
- return Attack_Status_Row_2_Slot_1_Color_2 if stat == :atk_status_slot_1_row_2
- return Attack_Status_Row_2_Slot_2_Color_2 if stat == :atk_status_slot_2_row_2
- return Attack_Status_Row_2_Slot_3_Color_2 if stat == :atk_status_slot_3_row_2
- return Attack_Status_Row_2_Slot_4_Color_2 if stat == :atk_status_slot_4_row_2
- return Attack_Status_Row_2_Slot_5_Color_2 if stat == :atk_status_slot_5_row_2
- return Attack_Status_Row_2_Slot_6_Color_2 if stat == :atk_status_slot_6_row_2
- return Attack_Status_Row_2_Slot_7_Color_2 if stat == :atk_status_slot_7_row_2
- return Attack_Status_Row_2_Slot_8_Color_2 if stat == :atk_status_slot_8_row_2
- return Attack_Status_Row_2_Slot_9_Color_2 if stat == :atk_status_slot_9_row_2
- return Color.new(0, 0, 0)
- end
- def self.String_Value_Color_Settings(value)
- return Color.new(0, 0, 0, 0) if value.nil?
- return Color.new(111, 111, 111) if value == N_A_Vocab
- return Color.new(222, 222, 222)
- end
- def self.Value_Color_Settings(value)
- val = value.to_f
- if val == 0.0
- return Color.new(111, 111, 111)
- elsif val < 0.0
- return Color.new(222, 111, 111)
- elsif val > 0.0
- return Color.new(222, 222, 222)
- end
- end
- def self.Name_Value(target)
- if target == false
- return N_A_Vocab
- else
- return "#{target.name}"
- end
- end
- # Do Not Remove This.
- p 'Loaded : DPBz - CORE'
- end # module Dekita__CORE
- $imported = {} if $imported.nil?
- $imported[:Dekita__CORE] = true
- #==============================================================================
- class Object
- #==============================================================================
- def dpbz_randy(min, max)
- min + rand(max - min + 1)
- end
- def dup!
- Marshal.load(Marshal.dump(self))
- end
- end # class Object
- #==============================================================================
- #class Window_Base < Window
- #==============================================================================
- module Dekita__CORE__Module
- # // Draws Stat Information
- def draw_stat_info_DPBz(stat_info, target, dx, dy, dw)
- dpbz_target = target
- fmt = "%1.2f%%"
- gh = Dekita__CORE::Gauge_Height
- case stat_info[0]
- when :vit, :str, :dex, :mag
- return dy unless $imported[:Dekita__PSPDS]
- text = DPB::PSPDS.PSPDS_Vocab(stat_info[0])
- value = DPB::PSPDS.PSPDS_Value(target, stat_info[0])
- icon_ = DPB::PSPDS.PSPDS_Icons(stat_info[0])
- rate = DPB::PSPDS.PWIs_Gauge_Rate(target, stat_info[0])
- color1 = DPB::PSPDS.PSPDS_Gauge_Color_1(stat_info[0])
- color2 = DPB::PSPDS.PSPDS_Gauge_Color_2(stat_info[0])
- gauge = DPB::PSPDS::Draw_Vit_Str_Dex_Mag_Gauges
- draw_icons = DPB::PSPDS::Draw_Vit_Str_Dex_Mag_Icons
- value_color = Dekita__CORE.Value_Color_Settings(value)
- when :atl, :dfl
- return dy unless $imported[:Dekita__ATL_AND_DFL]
- text = DPB::ATLANDDFL.atls_Vocab(stat_info[0])
- value = DPB::ATLANDDFL.atls_Value(target, stat_info[0])
- icon_ = DPB::ATLANDDFL.atls_Icons(stat_info[0])
- rate = DPB::ATLANDDFL.atls_Gauge_Rate(target, stat_info[0])
- color1 = DPB::ATLANDDFL.Get_Gauge_Color_1(stat_info[0])
- color2 = DPB::ATLANDDFL.Get_Gauge_Color_2(stat_info[0])
- gauge = DPB::ATLANDDFL::Draw_Atl_And_Dfl_Gauges
- draw_icons = DPB::ATLANDDFL::Draw_Atl_And_Dfl_Icons
- value_color = Dekita__CORE.Value_Color_Settings(value)
- when :mhp , :mmp , :mtp
- text = Dekita__CORE.Get_Info_Vocab(stat_info[0])
- value = Dekita__CORE.C_M_STAT_Value(dpbz_target, stat_info[0])
- icon_ = Dekita__CORE.Get_Info_Icons(stat_info[0])
- rate = Dekita__CORE.Param_Gauge_Rate(dpbz_target, stat_info[0])
- color1 = Dekita__CORE.Get_Gauge_Color_1(stat_info[0])
- color2 = Dekita__CORE.Get_Gauge_Color_2(stat_info[0])
- gauge = Dekita__CORE::Draw_Param_Gauges
- draw_icons = Dekita__CORE::Draw_Param_Icons
- value_color = Dekita__CORE.Value_Color_Settings(value)
- when :atk, :def, :mat, :mdf, :agi, :luk, :hit, :eva, :cri, :cev, :mev, :mrf,
- :cnt, :hrg, :mrg, :trg, :tgr, :grd, :rec, :pha, :mcr, :tcr, :pdr, :mdr,
- :fdr, :exr
- text = Dekita__CORE.Get_Info_Vocab(stat_info[0])
- value = Dekita__CORE::STAT_Value(dpbz_target, stat_info[0])
- icon_ = Dekita__CORE.Get_Info_Icons(stat_info[0])
- rate = Dekita__CORE.Param_Gauge_Rate(dpbz_target, stat_info[0])
- color1 = Dekita__CORE.Get_Gauge_Color_1(stat_info[0])
- color2 = Dekita__CORE.Get_Gauge_Color_2(stat_info[0])
- gauge = Dekita__CORE::Draw_Param_Gauges
- draw_icons = Dekita__CORE::Draw_Param_Icons
- value_color = Dekita__CORE.Value_Color_Settings(value)
- when :element_slot_1, :element_slot_2, :element_slot_3, :element_slot_4,
- :element_slot_5, :element_slot_6, :element_slot_7, :element_slot_8, :element_slot_9,
- :atk_element_slot_1, :atk_element_slot_2, :atk_element_slot_3, :atk_element_slot_4,
- :atk_element_slot_5, :atk_element_slot_6, :atk_element_slot_7, :atk_element_slot_8,
- :atk_element_slot_9
- return dy if $data_system.elements[Dekita__CORE::Element_Slot_1_id].nil?
- text = Dekita__CORE.Get_Info_Vocab(stat_info[0])
- value = Dekita__CORE::STAT_Value(dpbz_target, stat_info[0])
- icon_ = Dekita__CORE.Get_Info_Icons(stat_info[0])
- rate = Dekita__CORE.Param_Gauge_Rate(dpbz_target, stat_info[0])
- color1 = Dekita__CORE.Get_Gauge_Color_1(stat_info[0])
- color2 = Dekita__CORE.Get_Gauge_Color_2(stat_info[0])
- gauge = Dekita__CORE::Draw_Element_Gauges
- draw_icons = Dekita__CORE::Draw_Element_Icons
- value_color = Dekita__CORE.Value_Color_Settings(value)
- when :status_slot_1, :status_slot_2, :status_slot_3, :status_slot_4,
- :status_slot_5, :status_slot_6, :status_slot_7, :status_slot_8,
- :status_slot_9, :status_slot_1_row_2, :status_slot_2_row_2, :status_slot_3_row_2,
- :status_slot_4_row_2, :status_slot_5_row_2, :status_slot_6_row_2,
- :status_slot_7_row_2, :status_slot_8_row_2, :status_slot_9_row_2,
- :atk_status_slot_1, :atk_status_slot_2, :atk_status_slot_3, :atk_status_slot_4,
- :atk_status_slot_5, :atk_status_slot_6, :atk_status_slot_7, :atk_status_slot_8, :atk_status_slot_9,
- :atk_status_slot_1_row_2, :atk_status_slot_2_row_2, :atk_status_slot_3_row_2,
- :atk_status_slot_4_row_2, :atk_status_slot_5_row_2, :atk_status_slot_6_row_2,
- :atk_status_slot_7_row_2, :atk_status_slot_8_row_2, :atk_status_slot_9_row_2
- return dy if $data_states[Dekita__CORE::Status_Slot_1_id].nil?
- text = Dekita__CORE.Get_Info_Vocab(stat_info[0])
- value = Dekita__CORE::STAT_Value(dpbz_target, stat_info[0])
- icon_ = Dekita__CORE.Get_Info_Icons(stat_info[0])
- rate = Dekita__CORE.Param_Gauge_Rate(dpbz_target, stat_info[0])
- color1 = Dekita__CORE.Get_Gauge_Color_1(stat_info[0])
- color2 = Dekita__CORE.Get_Gauge_Color_2(stat_info[0])
- gauge = Dekita__CORE::Draw_Status_Gauges
- draw_icons = Dekita__CORE::Draw_Status_Icons
- value_color = Dekita__CORE.Value_Color_Settings(value)
- when :name
- text = Dekita__CORE::Name_Vocab
- value = Dekita__CORE.Name_Value(dpbz_target)
- icon_ = Dekita__CORE::Name_Icon
- gauge = false
- draw_icons = Dekita__CORE::Draw_Name_Icon
- value_color = Dekita__CORE.String_Value_Color_Settings(value)
- when :nickname
- return dy if dpbz_target.is_a?(RPG::EquipItem)
- return dy if dpbz_target.is_a?(RPG::Enemy)
- return dy if dpbz_target == false
- text = Dekita__CORE::Nickname_Vocab#"Nickname"
- value = dpbz_target.nickname
- icon_ = Dekita__CORE::Nickname_Icon
- gauge = false
- draw_icons = Dekita__CORE::Draw_Nickname_Icon
- value_color = Dekita__CORE.String_Value_Color_Settings(value)
- when :class
- return dy if dpbz_target.is_a?(RPG::EquipItem)
- return dy if dpbz_target.is_a?(RPG::Enemy)
- return dy if dpbz_target == false
- text = Dekita__CORE::Class_Vocab#"Class"
- value = dpbz_target.class.name
- icon_ = Dekita__CORE::Class_Icon
- gauge = false
- draw_icons = Dekita__CORE::Draw_Class_Icon
- value_color = Dekita__CORE.String_Value_Color_Settings(value)
- when :level
- return dy if dpbz_target == false
- return dy if dpbz_target.is_a?(RPG::EquipItem)
- text = Dekita__CORE::Level_Vocab#"Level"
- value = dpbz_target.level
- icon_ = Dekita__CORE::Level_Icon
- gauge = false
- draw_icons = Dekita__CORE::Draw_Level_Icon
- value_color = Dekita__CORE.Value_Color_Settings(value)
- when :exp_total
- return dy if dpbz_target == false
- return dy if dpbz_target.is_a?(RPG::EquipItem)
- text = "Exp Total"
- value = dpbz_target.exp
- icon_ = Dekita__CORE::Exp_Total_Icon
- gauge = false
- draw_icons = Dekita__CORE::Draw_Exp_Total_Icon
- value_color = Dekita__CORE.Value_Color_Settings(value)
- when :exp_to_next
- return dy if dpbz_target == false
- return dy if dpbz_target.is_a?(RPG::EquipItem)
- return dy if dpbz_target.is_a?(RPG::Enemy)
- text = "Exp To Next"
- value = dpbz_target.max_level? ? "----" : dpbz_target.next_level_exp - dpbz_target.exp
- icon_ = Dekita__CORE::Exp_To_Next_Icon
- gauge = false
- draw_icons = Dekita__CORE::Draw_Exp_To_Next_Icon
- value_color = Dekita__CORE.Value_Color_Settings(value)
- when :req_lvl, :req_vit, :req_str, :req_dex, :req_mag, :req_atl, :req_dfl, :req_adc
- return dy unless $imported[:Dekita__Equip_Requirements]
- return dy unless $imported[:Dekita__PSPDS]
- text = DPB::EQUIPREQZ.Requirements_For_Equip_Vocab(stat_info[0])
- value = DPB::EQUIPREQZ.Requirements_For_Equip_Value(dpbz_target, stat_info[0])
- icon_ = DPB::EQUIPREQZ.Requirements_For_Equip_Icons(stat_info[0])
- gauge = false
- draw_icons = DPB::EQUIPREQZ::Use_Equip_Reqz_Icons
- value_color = Dekita__CORE.Value_Color_Settings(value)
- when :death_counter
- return dy if dpbz_target == false
- return dy unless $imported[:Dekita__Status_Screen]
- return dy unless $imported[:Dekita__Actors_Death_Counter]
- return dy if dpbz_target.is_a?(RPG::EquipItem)
- text = Dekita__Actors_Death_Counter::Death_Counter_Vocab
- value = Dekita__Actors_Death_Counter.Death_Counter_Value(dpbz_target)
- icon_ = Dekita__Actors_Death_Counter::Death_Counter_Icon
- gauge = false#Dekita__Actors_Death_Counter::Draw_Death_Counter_Gauge
- draw_icons = Dekita__Actors_Death_Counter::Draw_Death_Counter_Icon
- value_color = Dekita__CORE.Value_Color_Settings(value)
- else ; return dy ; end
- contents.font.size = Dekita__CORE::Info_Font_Size
- colour = Dekita__CORE::Background_Color
- rect = Rect.new(dx+1, dy+1, dw-2, line_height-2)
- contents.fill_rect(rect, colour)
- change_color(Color.new(255, 255, 255))
- if draw_icons
- draw_icon(icon_, dx, dy, enable_DPBz_icons?)
- draw_gauge_DPBz(dx+25, dy+1, dw-27, gh, rate, color1, color2) if gauge
- draw_text(dx+25, dy, dw-8, line_height, text, 0)
- else
- draw_gauge_DPBz(dx+5, dy+1, dw-4, gh, rate, color1, color2) if gauge
- draw_text(dx+4, dy, dw-8, line_height, text, 0)
- end
- change_color(value_color)
- draw_text(dx+4, dy, dw-8, line_height, value, 2)
- return dy + line_height
- end
- def draw_points_info_DPBz(stat_info, target, dx, dy, dw)
- dpbz_target = target
- fmt = "%1.2f%%"
- case stat_info[0]
- when :points
- return dy unless $imported[:Dekita__PSPDS]
- text = DPB::PSPDS::LVLUPPTSVOCAB
- value = dpbz_target.level_up_pts
- icon_ = DPB::PSPDS::Points_Icon
- draw_icons = DPB::PSPDS::Draw_Vit_Str_Dex_Mag_Icons
- value_color = Dekita__CORE.Value_Color_Settings(value)
- else ; return dy ; end
- contents.font.size = Dekita__CORE::Info_Font_Size
- colour = Dekita__CORE::Background_Color
- rect = Rect.new(dx+1, dy+1, dw-2, line_height-2)
- contents.fill_rect(rect, colour)
- change_color(Color.new(255, 255, 255))
- if draw_icons
- draw_icon(icon_, dx, dy, enable_DPBz_icons?)
- draw_text(dx+25, dy, dw-8, line_height, text, 0)
- else
- draw_text(dx+4, dy, dw-8, line_height, text, 0)
- end
- change_color(value_color)
- draw_text(dx+4, dy, dw-8, line_height, value, 2)
- return dy + line_height
- end
- def check_more_stat_info_DPBz(stat_info, target, dx, dy, dw)
- return dy if stat_info.nil?
- # // For Future Add-on's
- end
- # // Enable Icon Lights ?
- def enable_DPBz_icons?
- return false if Dekita__CORE::Dull_Icons
- return true
- end
- # // Method to Draw a Gauge with height
- def draw_gauge_DPBz(dx, dy, dw, dh, rate, color1, color2)
- empty_gauge_color = Dekita__CORE::Empty_Gauge_Color
- fill_w = [(dw * rate).to_i, dw].min
- gauge_h = dh
- gauge_y = dy + line_height - 2 - gauge_h
- contents.fill_rect(dx, gauge_y, dw, gauge_h, empty_gauge_color)
- contents.gradient_fill_rect(dx, gauge_y, fill_w, gauge_h, color1, color2)
- end
- end # class Window_Base < Window
- #==============================================================================
- class Window_Base < Window
- #==============================================================================
- include Dekita__CORE__Module
- end # Window_Base < Window
- #==============================================================================
- class RPG::BaseItem
- # Credits to Tsukihime for these methods.
- #==============================================================================
- # Returns features for item filtered by code
- def item_features(item, code)
- item.features.select {|ft| ft.code == code}
- end
- # Returns features for item filtered by code and data ID
- def item_features_with_id(item, code, data_id)
- item.features.select {|ft| ft.code == code && ft.data_id == data_id}
- end
- # Returns sum of all features for item, by code and data ID
- def item_features_sum(item, code, data_id)
- item_features_with_id(item, code, data_id).inject(0.0) {|r, ft| r += ft.value }
- end
- def item_features_pi(item, code, data_id)
- item_features_with_id(item, code, data_id).inject(1.0) {|r, ft| r *= ft.value }
- end
- end # RPG::BaseItem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement