Falcao Pearl ABS Liquid Exp Patch
▼ DescriptionThis script fixes the issue of exp on Falcao Pearl ABS Liquid v.3 where some scripts are not compatible with falcao pearl abs because the method of calculating Exp and gold in falcao pearl abs is different from the original battle system. This script is also compatible with Theo Allen's Difficulty Settings script. now difficulty can affect Exp and Gold that are dropped by enemies. And now players can use Sp-Parameters EXR to calculate the Exp rate of the actor / class / weapon / armor / state.
▼ Script
Code:
#===============================================================================
# * Falcao Pearl ABS Liquid v.3 Exp Patch
#===============================================================================
# Author: IneptAttorney
# Date: 11 January 2020
# Required: Falcao Pearl ABS Liquid v.3
# Theolized Difficulty Settings (Optional)
#...............................................................................
# * Description
# This script fixes the issue of exp on Falcao Pearl ABS Liquid v.3 where some
# scripts are not compatible with falcao pearl abs because the method of
# calculating Exp and gold in falcao pearl abs is different from the original
# battle system.
# This script is also compatible with Theo Allen's Difficulty Settings script.
# now difficulty can affect Exp and Gold that are dropped by enemies.
# And now players can use Sp-Parameters EXR to calculate the Exp rate of the
# actor / class / weapon / armor / state.
#...............................................................................
# * Installation
# Copy-paste this script to your project Script Editor. Place below Script
# Falcao Pearl ABS Liquid v.3
# if you use the Theo Allen's Difficulty Settings, place this script below it.
# and above ▼ Main Process.
#...............................................................................
# * Instruction
# This script is plug n play. but you can set the configuration below.
# To set the Exp rate you can use default features for EXR Sp-Parameters.
#...............................................................................
$imported = {} if $imported.nil?
$imported["InptAttrny-ExpPatch"] = true
#...............................................................................
# * Configuration
#...............................................................................
module INPTATTRNY
module PEARLEXP
CURRENCY_UNIT = 'Gold' # The text that will be displayed when the player or
# followers gained gold.
EXP_DECIMAL = false # false to draw Exp gained in decimal numbers.
# true to draw Exp gained in integers.
end
end
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# Don't edit the text below! or your PC will burn up! 0=0)
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#===============================================================================
if $imported["Theo-DiffSetting"] = true
class Game_Enemy < Game_Battler
#===============================================================================
#--------------------------------------------------------------------------
# * Calculate Total Experience
#--------------------------------------------------------------------------
alias theolized_exp_total exp
def exp
check_var ? theolized_exp_total*@diff_hash[var_value][8]/100 : theolized_exp_total
end
#--------------------------------------------------------------------------
# * Calculate Total Gold
#--------------------------------------------------------------------------
alias theolized_gold_total gold
def gold
check_var ? theolized_gold_total*@diff_hash[var_value][9]/100 : theolized_gold_total
end
end
end
#===============================================================================
class Game_Event < Game_Character
#===============================================================================
#--------------------------------------------------------------------------
# * Kill_enemy
#--------------------------------------------------------------------------
def kill_enemy
@secollapse = nil
@killed = true
@priority_type = 0 if @deadposee
gain_exp
gain_gold
$game_player.followers.each do |follower|
next if follower.actor.nil?
etext = 'Exp ' + follower.actor.gained_exp.to_s if @enemy.exp > 0
follower.pop_damage("#{etext}") if etext
end
g_exp = $game_player.actor.gained_exp
etext = 'Exp ' + g_exp.to_s if g_exp > 0
gtext = INPTATTRNY::PEARLEXP::CURRENCY_UNIT + @enemy.gold.to_s if @enemy.gold > 0
$game_player.pop_damage("#{etext} #{gtext}") if etext || gtext
make_drop_items
run_assigned_commands
end
#-------------------------------------------------------------------------
# * gain_exp
#-------------------------------------------------------------------------
def gain_exp
$game_party.all_members.each do |actor|
actor.gained_exp = actor.exp_from_enemy(@enemy)
actor.gain_exp(actor.gained_exp)
end
end
end
#===============================================================================
class Game_Actor < Game_Battler
#===============================================================================
#-------------------------------------------------------------------------
# * gained_exp
#-------------------------------------------------------------------------
def gained_exp=(exp)
if INPTATTRNY::PEARLEXP::EXP_DECIMAL == false
@gained_exp = (exp * exr).truncate
else
@gained_exp = (exp * exr)
end
end
end
▼ Credits
- Enterbrain
- Ineptattorney
- Falcao
- Theo Allen