じ☆ve冰风 发表于 2026-8-2 12:53:14

Falcao Pearl ABS Liquid Exp Patch

Falcao Pearl ABS Liquid Exp Patch​
▼ 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 nowplayers can use Sp-Parameters EXR to calculate the Exp rate of the actor / class / weapon / armor / state.
▼ Script
Spoiler                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 nowplayers 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/100 : theolized_exp_total
end
#--------------------------------------------------------------------------
# * Calculate Total Gold
#--------------------------------------------------------------------------
alias theolized_gold_total gold
def gold
    check_var ? theolized_gold_total*@diff_hash/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



本贴来自国际rpgmaker官方论坛作者:IneptAttoney处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/falcao-pearl-abs-liquid-exp-patch.117154/
页: [1]
查看完整版本: Falcao Pearl ABS Liquid Exp Patch